|
1 | | -/* Filter Bar Styles */ |
| 1 | +/* Filter Sidebar Styles */ |
2 | 2 |
|
3 | 3 | .filter-bar { |
4 | 4 | background: var(--ifm-card-background-color); |
5 | | - border-bottom: 1px solid var(--ifm-color-emphasis-200); |
6 | | - position: sticky; |
7 | | - top: 60px; |
8 | | - z-index: 100; |
| 5 | + border: 1px solid var(--ifm-color-emphasis-200); |
| 6 | + border-radius: 12px; |
| 7 | + padding: 1.5rem; |
9 | 8 | box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); |
10 | 9 | } |
11 | 10 |
|
12 | 11 | .filter-bar-container { |
13 | | - max-width: 1400px; |
14 | | - margin: 0 auto; |
15 | | - padding: 1.5rem 2rem; |
16 | 12 | display: flex; |
17 | | - justify-content: space-between; |
18 | | - align-items: center; |
| 13 | + flex-direction: column; |
19 | 14 | gap: 2rem; |
20 | | - flex-wrap: wrap; |
21 | 15 | } |
22 | 16 |
|
23 | 17 | /* Filter Section */ |
24 | 18 | .filter-section { |
25 | | - flex: 1; |
26 | | - min-width: 300px; |
| 19 | + width: 100%; |
27 | 20 | } |
28 | 21 |
|
29 | 22 | .filter-header { |
|
44 | 37 | /* Category Filters */ |
45 | 38 | .category-filters { |
46 | 39 | display: flex; |
| 40 | + flex-direction: column; |
47 | 41 | gap: 0.75rem; |
48 | | - flex-wrap: wrap; |
49 | 42 | } |
50 | 43 |
|
51 | 44 | .category-button { |
52 | 45 | display: flex; |
53 | 46 | align-items: center; |
54 | | - gap: 0.5rem; |
55 | | - padding: 0.5rem 1rem; |
56 | | - background: var(--ifm-color-emphasis-100); |
57 | | - border: 2px solid transparent; |
| 47 | + gap: 0.75rem; |
| 48 | + padding: 0.75rem 1rem; |
| 49 | + background: #f5f5f5; |
| 50 | + border: 2px solid #e0e0e0; |
58 | 51 | border-radius: 8px; |
59 | 52 | font-size: 0.875rem; |
60 | 53 | font-weight: 500; |
61 | 54 | color: #2d3748; |
62 | 55 | cursor: pointer; |
63 | 56 | transition: all 0.2s ease; |
| 57 | + width: 100%; |
| 58 | + text-align: left; |
64 | 59 | } |
65 | 60 |
|
66 | 61 | .category-button:hover { |
67 | | - background: var(--ifm-color-emphasis-200); |
68 | | - transform: translateY(-2px); |
| 62 | + background: #ffffff; |
| 63 | + border-color: #cccccc; |
| 64 | + transform: translateX(4px); |
| 65 | + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); |
| 66 | + color: #1a1a1a; |
| 67 | +} |
| 68 | + |
| 69 | +.category-button:active { |
| 70 | + transform: translateX(2px); |
69 | 71 | } |
70 | 72 |
|
71 | 73 | .category-button.active { |
72 | | - background: var(--ifm-color-primary); |
73 | | - border-color: var(--ifm-color-primary); |
| 74 | + background: linear-gradient(135deg, #667eea 0%, #5b47d6 100%); |
| 75 | + border-color: #667eea; |
74 | 76 | color: #ffffff !important; |
75 | 77 | font-weight: 600; |
| 78 | + box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3); |
| 79 | +} |
| 80 | + |
| 81 | +.category-button.active:hover { |
| 82 | + background: linear-gradient(135deg, #818cf8 0%, #06b6d4 100%); |
| 83 | + border-color: #818cf8; |
| 84 | + transform: translateX(4px); |
| 85 | + box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); |
76 | 86 | } |
77 | 87 |
|
78 | 88 | .category-icon { |
|
85 | 95 |
|
86 | 96 | /* Sort Section */ |
87 | 97 | .sort-section { |
88 | | - min-width: 200px; |
| 98 | + width: 100%; |
89 | 99 | } |
90 | 100 |
|
91 | 101 | .sort-select { |
92 | 102 | width: 100%; |
93 | 103 | padding: 0.625rem 1rem; |
94 | | - background: var(--ifm-color-emphasis-100); |
95 | | - border: 2px solid var(--ifm-color-emphasis-200); |
| 104 | + background: #f5f5f5; |
| 105 | + border: 2px solid #e0e0e0; |
96 | 106 | border-radius: 8px; |
97 | 107 | font-size: 0.875rem; |
98 | 108 | font-weight: 500; |
99 | 109 | color: var(--ifm-font-color-base); |
100 | 110 | cursor: pointer; |
101 | | - transition: all 0.2s ease; |
| 111 | + transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); |
102 | 112 | appearance: none; |
103 | 113 | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E"); |
104 | 114 | background-repeat: no-repeat; |
|
107 | 117 | } |
108 | 118 |
|
109 | 119 | .sort-select:hover { |
110 | | - border-color: var(--ifm-color-primary); |
| 120 | + background-color: #ffffff; |
| 121 | + border-color: #999999; |
| 122 | + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); |
111 | 123 | } |
112 | 124 |
|
113 | 125 | .sort-select:focus { |
114 | 126 | outline: none; |
115 | | - border-color: var(--ifm-color-primary); |
116 | | - box-shadow: 0 0 0 3px var(--ifm-color-primary-lightest); |
| 127 | + border-color: #667eea; |
| 128 | + background-color: #ffffff; |
| 129 | + box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 2px 8px rgba(102, 126, 234, 0.2); |
117 | 130 | } |
118 | 131 |
|
119 | 132 | /* Responsive Design */ |
120 | | -@media (max-width: 768px) { |
121 | | - .filter-bar-container { |
122 | | - padding: 1rem; |
123 | | - flex-direction: column; |
124 | | - align-items: stretch; |
125 | | - } |
126 | | - |
127 | | - .filter-section { |
128 | | - min-width: 100%; |
| 133 | +@media (max-width: 992px) { |
| 134 | + .filter-bar { |
| 135 | + margin-bottom: 2rem; |
129 | 136 | } |
130 | 137 |
|
131 | 138 | .category-filters { |
132 | | - gap: 0.5rem; |
| 139 | + flex-direction: row; |
| 140 | + flex-wrap: wrap; |
133 | 141 | } |
134 | 142 |
|
135 | 143 | .category-button { |
136 | | - padding: 0.5rem 0.75rem; |
137 | | - font-size: 0.8125rem; |
| 144 | + width: auto; |
138 | 145 | } |
| 146 | +} |
139 | 147 |
|
140 | | - .category-icon { |
141 | | - font-size: 1rem; |
| 148 | +@media (max-width: 768px) { |
| 149 | + .filter-bar-container { |
| 150 | + padding: 1rem; |
| 151 | + gap: 1.5rem; |
142 | 152 | } |
143 | 153 |
|
144 | | - .sort-section { |
145 | | - min-width: 100%; |
| 154 | + .category-filters { |
| 155 | + gap: 0.5rem; |
146 | 156 | } |
147 | 157 |
|
148 | | - .filter-bar { |
149 | | - top: 0; |
| 158 | + .category-button { |
| 159 | + padding: 0.5rem 0.75rem; |
| 160 | + font-size: 0.8125rem; |
150 | 161 | } |
151 | 162 | } |
152 | 163 |
|
|
157 | 168 | } |
158 | 169 |
|
159 | 170 | [data-theme="dark"] .category-button { |
160 | | - background: var(--ifm-color-emphasis-200); |
| 171 | + background: #2a2a2a; |
| 172 | + border-color: #404040; |
161 | 173 | color: var(--ifm-font-color-base); |
162 | 174 | } |
163 | 175 |
|
| 176 | +[data-theme="dark"] .category-button:hover { |
| 177 | + background: #3a3a3a; |
| 178 | + border-color: #555555; |
| 179 | + box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1); |
| 180 | +} |
| 181 | + |
164 | 182 | [data-theme="dark"] .category-button.active { |
165 | | - background: rgba(16, 185, 129, 0.15); |
166 | | - border-color: var(--ifm-color-primary); |
167 | | - color: #10b981 !important; |
| 183 | + background: rgba(255, 255, 255, 0.15); |
| 184 | + border-color: #ffffff; |
| 185 | + color: #ffffff !important; |
| 186 | + box-shadow: 0 6px 12px rgba(255, 255, 255, 0.15); |
168 | 187 | } |
169 | 188 |
|
170 | | -[data-theme="dark"] .category-button:hover { |
171 | | - background: var(--ifm-color-emphasis-300); |
| 189 | +[data-theme="dark"] .category-button.active:hover { |
| 190 | + background: rgba(255, 255, 255, 0.25); |
| 191 | + border-color: #ffffff; |
| 192 | + box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2); |
172 | 193 | } |
173 | 194 |
|
174 | 195 | [data-theme="dark"] .sort-select { |
175 | | - background: var(--ifm-color-emphasis-200); |
176 | | - border-color: var(--ifm-color-emphasis-300); |
| 196 | + background: #2a2a2a; |
| 197 | + border-color: #404040; |
| 198 | +} |
| 199 | + |
| 200 | +[data-theme="dark"] .sort-select:hover { |
| 201 | + background: #3a3a3a; |
| 202 | + border-color: #555555; |
| 203 | + box-shadow: 0 6px 12px rgba(255, 255, 255, 0.08); |
| 204 | +} |
| 205 | + |
| 206 | +[data-theme="dark"] .sort-select:focus { |
| 207 | + border-color: #ffffff; |
| 208 | + background: #3a3a3a; |
| 209 | + box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 6px 12px rgba(255, 255, 255, 0.08); |
177 | 210 | } |
0 commit comments