File size: 3,871 Bytes
70ceb8b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | /**
* Preset List Renderer Styles
* Renders the preset list view with categories and presets
* Note: Variables are defined in css-variables.css
* Common styles (edit category button, preset items, cards) are in common-components.css
*/
/* Stats Header */
.resolution-master-preset-list-stats {
background: var(--bg-primary-10);
border: 1px solid var(--bg-primary-30);
border-radius: var(--radius-lg);
padding: var(--spacing-12);
margin-bottom: var(--spacing-20);
color: var(--color-primary);
font-size: var(--font-base);
}
/* Empty State */
.resolution-master-preset-list-empty {
text-align: center;
padding: 40px var(--spacing-20);
color: var(--color-gray-500);
}
.resolution-master-preset-list-empty-icon {
font-size: 48px;
margin-bottom: var(--spacing-16);
}
.resolution-master-preset-list-empty-title {
font-size: var(--font-xl);
margin-bottom: var(--spacing-8);
}
.resolution-master-preset-list-empty-subtitle {
font-size: var(--font-base);
}
/* Category Section */
.resolution-master-preset-list-category-section {
padding-bottom: var(--spacing-24);
}
/* Category Header */
.resolution-master-preset-list-category-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: var(--spacing-12);
padding-bottom: var(--spacing-8);
border-bottom: 1px solid var(--color-gray-800);
cursor: move;
transition: var(--transition-all);
}
.resolution-master-preset-list-category-header.dragging {
opacity: 0.5;
}
/* Category Title */
.resolution-master-preset-list-category-title {
display: flex;
align-items: center;
flex-wrap: nowrap;
color: var(--color-primary);
font-size: var(--font-lg);
font-weight: bold;
user-select: none;
flex: 1;
}
.resolution-master-preset-list-category-icon {
margin-left: var(--spacing-6);
vertical-align: middle;
}
/* Preset Item - Dragging State */
.resolution-master-preset-list-item.dragging {
opacity: 0.5;
}
/* Bulk Delete Checkbox */
.resolution-master-preset-list-checkbox {
width: var(--spacing-16);
height: var(--spacing-16);
cursor: pointer;
margin-right: var(--spacing-8);
}
/* Keyboard focus accessibility for checkbox */
.resolution-master-preset-list-checkbox:focus-visible {
outline: 2px solid var(--color-primary);
outline-offset: 2px;
}
/* Preset Info */
.resolution-master-preset-list-info {
flex: 1;
display: flex;
align-items: center;
gap: var(--spacing-6);
}
.resolution-master-preset-list-name-container {
color: var(--color-white);
font-size: var(--font-base);
}
.resolution-master-preset-list-name {
cursor: pointer;
user-select: none;
}
.resolution-master-preset-list-dims {
color: var(--color-gray-500);
font-size: var(--font-md);
}
/* Clone Handle */
.resolution-master-preset-list-clone-handle {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
background: var(--overlay-light-10);
border: 1px solid var(--color-gray-600);
border-radius: 4px;
color: var(--color-gray-100);
font-size: 16px;
font-weight: bold;
cursor: grab;
user-select: none;
transition: all 0.2s ease;
flex-shrink: 0;
}
.resolution-master-preset-list-clone-handle:hover {
background: var(--overlay-light-20);
border-color: var(--color-gray-500);
transform: scale(1.1);
}
.resolution-master-preset-list-clone-handle:active {
cursor: grabbing;
transform: scale(0.95);
}
/* Action Buttons */
.resolution-master-preset-list-actions {
display: flex;
gap: var(--spacing-3);
}
/* Keyboard focus accessibility for action buttons */
.resolution-master-preset-list-actions button:focus-visible {
outline: 2px solid var(--color-primary);
outline-offset: 2px;
}
|