|
1 | | -/** |
2 | | - * SearchByIdPanel Styles |
3 | | - * Styling for the Animal ID search panel with filter modes |
4 | | - */ |
5 | | - |
6 | 1 | .search-by-id-panel { |
7 | 2 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; |
8 | 3 | max-width: 900px; |
|
15 | 10 | margin-bottom: 20px; |
16 | 11 | } |
17 | 12 |
|
18 | | - // ID Search Section - conditionally displayed in ID Search mode |
19 | | - .id-search-section { |
20 | | - background-color: #f8f9fa; |
21 | | - padding: 16px; |
22 | | - border-radius: 8px; |
23 | | - margin-bottom: 20px; |
24 | | - |
25 | | - label { |
26 | | - display: block; |
27 | | - margin-bottom: 8px; |
28 | | - font-weight: 500; |
29 | | - color: #333; |
30 | | - } |
31 | | - |
32 | | - .animal-id-input { |
33 | | - width: 100%; |
34 | | - min-height: 80px; |
35 | | - padding: 10px; |
36 | | - font-size: 14px; |
37 | | - font-family: monospace; |
38 | | - border: 1px solid #ccc; |
39 | | - border-radius: 4px; |
40 | | - resize: vertical; |
41 | | - box-sizing: border-box; |
42 | | - margin-bottom: 12px; |
43 | | - |
44 | | - &:focus { |
45 | | - outline: none; |
46 | | - border-color: #0066cc; |
47 | | - box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1); |
48 | | - } |
49 | | - } |
50 | | - |
51 | | - .validation-error { |
52 | | - padding: 10px; |
53 | | - margin-bottom: 12px; |
54 | | - background-color: #ffebee; |
55 | | - border: 1px solid #f5c6cb; |
56 | | - border-radius: 4px; |
57 | | - color: #721c24; |
58 | | - font-size: 14px; |
59 | | - } |
60 | | - |
61 | | - .update-report-button { |
62 | | - padding: 10px 20px; |
63 | | - background-color: #0066cc; |
64 | | - color: white; |
65 | | - border: none; |
66 | | - border-radius: 4px; |
67 | | - cursor: pointer; |
68 | | - font-size: 14px; |
69 | | - font-weight: 500; |
70 | | - transition: background-color 0.2s; |
71 | | - |
72 | | - &:hover:not(:disabled) { |
73 | | - background-color: #0052a3; |
74 | | - } |
75 | | - |
76 | | - &:disabled { |
77 | | - background-color: #ccc; |
78 | | - cursor: not-allowed; |
79 | | - } |
80 | | - } |
81 | | - } |
82 | | - |
83 | | - // Filter Mode Section - always displayed |
84 | | - .filter-mode-section { |
85 | | - background-color: #f8f9fa; |
86 | | - padding: 16px; |
87 | | - border-radius: 8px; |
88 | | - margin-bottom: 20px; |
89 | | - |
90 | | - > label { |
91 | | - display: block; |
92 | | - margin-bottom: 10px; |
93 | | - font-weight: 500; |
94 | | - color: #333; |
95 | | - } |
96 | | - |
97 | | - .filter-toggle-buttons { |
98 | | - display: flex; |
99 | | - gap: 8px; |
100 | | - flex-wrap: wrap; |
101 | | - |
102 | | - button { |
103 | | - padding: 10px 20px; |
104 | | - background-color: #6c757d; |
105 | | - color: white; |
106 | | - border: none; |
107 | | - border-radius: 4px; |
108 | | - cursor: pointer; |
109 | | - font-size: 14px; |
110 | | - transition: background-color 0.2s; |
111 | | - |
112 | | - &:hover:not(:disabled) { |
113 | | - background-color: #5a6268; |
114 | | - } |
115 | | - |
116 | | - &.active { |
117 | | - background-color: #28a745; |
118 | | - |
119 | | - &:hover { |
120 | | - background-color: #218838; |
121 | | - } |
122 | | - } |
123 | | - |
124 | | - &:disabled { |
125 | | - background-color: #ccc; |
126 | | - cursor: not-allowed; |
127 | | - opacity: 0.6; |
128 | | - } |
129 | | - } |
130 | | - } |
131 | | - } |
132 | | - |
133 | | - // Error message for unsupported filters |
134 | | - .error-message { |
135 | | - padding: 10px; |
136 | | - margin-bottom: 12px; |
137 | | - background-color: #fff3cd; |
138 | | - border: 1px solid #ffeeba; |
139 | | - border-radius: 4px; |
140 | | - color: #856404; |
141 | | - font-size: 14px; |
142 | | - } |
143 | | - |
144 | 13 | // URL Params mode (read-only) |
145 | 14 | &--url-params { |
146 | 15 | background-color: #f8f9fa; |
147 | 16 | padding: 16px; |
148 | 17 | border-radius: 8px; |
149 | 18 | margin-bottom: 20px; |
150 | 19 |
|
151 | | - .read-only-summary { |
152 | | - margin-bottom: 12px; |
153 | | - font-size: 14px; |
154 | | - color: #333; |
155 | | - padding: 10px; |
156 | | - background-color: #e3f2fd; |
157 | | - border: 1px solid #90caf9; |
158 | | - border-radius: 4px; |
159 | | - } |
160 | | - |
161 | 20 | button { |
162 | 21 | padding: 10px 20px; |
163 | 22 | background-color: #0066cc; |
|
175 | 34 | } |
176 | 35 | } |
177 | 36 |
|
178 | | - // Additional inline styles |
179 | 37 | &__label { |
180 | 38 | display: block; |
181 | 39 | margin-bottom: 8px; |
|
210 | 68 | flex-wrap: wrap; |
211 | 69 | } |
212 | 70 |
|
213 | | - .search-button { |
| 71 | + &__search-button { |
214 | 72 | padding: 10px 20px; |
215 | 73 | color: white; |
216 | 74 | border: none; |
217 | 75 | border-radius: 4px; |
218 | 76 | font-size: 14px; |
219 | 77 | font-weight: 500; |
220 | 78 |
|
221 | | - &.active { |
| 79 | + &--active { |
222 | 80 | background-color: #0066cc; |
223 | 81 | cursor: pointer; |
224 | 82 |
|
|
227 | 85 | } |
228 | 86 | } |
229 | 87 |
|
230 | | - &.inactive { |
| 88 | + &--inactive { |
231 | 89 | background-color: #6c757d; |
232 | 90 | cursor: pointer; |
233 | 91 | } |
|
238 | 96 | } |
239 | 97 | } |
240 | 98 |
|
241 | | - .filter-button { |
| 99 | + &__filter-button { |
242 | 100 | padding: 10px 20px; |
243 | 101 | color: white; |
244 | 102 | border: none; |
245 | 103 | border-radius: 4px; |
246 | 104 | cursor: pointer; |
247 | 105 | font-size: 14px; |
248 | 106 |
|
249 | | - &.all-animals { |
250 | | - &.active { |
251 | | - background-color: #28a745; |
| 107 | + &--active { |
| 108 | + background-color: #28a745; |
252 | 109 |
|
253 | | - &:hover { |
254 | | - background-color: #218838; |
255 | | - } |
| 110 | + &:hover { |
| 111 | + background-color: #218838; |
256 | 112 | } |
| 113 | + } |
257 | 114 |
|
258 | | - &.inactive { |
259 | | - background-color: #6c757d; |
260 | | - } |
| 115 | + &--inactive { |
| 116 | + background-color: #6c757d; |
261 | 117 | } |
262 | 118 |
|
263 | | - &.alive-at-center { |
264 | | - &.active { |
| 119 | + &--alive-at-center { |
| 120 | + &.search-by-id-panel__filter-button--active { |
265 | 121 | background-color: #17a2b8; |
266 | 122 |
|
267 | 123 | &:hover { |
268 | 124 | background-color: #138496; |
269 | 125 | } |
270 | 126 | } |
271 | 127 |
|
272 | | - &.inactive { |
273 | | - background-color: #6c757d; |
274 | | - } |
275 | | - |
276 | 128 | &:disabled { |
277 | 129 | background-color: #ccc; |
278 | 130 | cursor: not-allowed; |
|
0 commit comments