Debian Codegraph @

ivette/src/dome/renderer/controls/style.css

raw
1 /* -------------------------------------------------------------------------- */
2 /* --- Styling Labels --- */
3 /* -------------------------------------------------------------------------- */
4
5 .dome-xLabel {
6 padding: 2px ;
7 margin: 2px 4px ;
8 overflow: hidden ;
9 white-space: nowrap ;
10 }
11
12 .dome-xLabel .dome-xIcon {
13 margin-right: 4px ;
14 fill: var(--info-text-discrete);
15 }
16
17 .dome-xLabel.dome-text-descr {
18 overflow: auto ;
19 white-space: wrap ;
20 }
21
22 /* -------------------------------------------------------------------------- */
23 /* --- Styling Icons --- */
24 /* -------------------------------------------------------------------------- */
25
26 .dome-xIcon {
27 flex: 0 0 auto ;
28 display: inline ;
29 margin: 1px ;
30 padding: 1px 0px 0px 0px ;
31 }
32
33 .dome-xIcon svg {
34 position:relative ;
35 }
36
37 .dome-xBadge {
38 flex: 0 0 auto ;
39 display: inline ;
40 margin: 1px ;
41 padding: 1px 6px 1px 6px ;
42 height: 16px ;
43 fill: var(--background-intense) ;
44 color: var(--background-intense) ;
45 font-family: sans-serif ;
46 font-size: smaller ;
47 font-weight: bold ;
48 border-radius: 8px ;
49 background: var(--info-text) ;
50 }
51
52 .dome-disabled .dome-xBadge {
53 background: var(--background-profound) ;
54 color: var(--background-intense) ;
55 fill: var(--background-intense) ;
56 }
57
58 .dome-xBadge label {
59 position: relative ;
60 bottom: -1px ;
61 }
62 /* -------------------------------------------------------------------------- */
63 /* --- Base Styling --- */
64 /* -------------------------------------------------------------------------- */
65
66 .dome-control-enabled {
67 font-weight: normal ;
68 }
69
70 .dome-control-disabled {
71 color: var(--disabled-text) ;
72 fill: var(--disabled-text) ;
73 font-weight: lighter ;
74 }
75
76 .dome-control-hidden {
77 visibility: hidden ;
78 }
79
80 .dome-control-erased {
81 display: none ;
82 }
83
84 /* -------------------------------------------------------------------------- */
85 /* --- Styling Buttons (may be factorized with xToolBar) --- */
86 /* -------------------------------------------------------------------------- */
87
88 /* Layout */
89
90 .dome-xButton {
91 flex: 0 0 auto ;
92 align-self: baseline ;
93 }
94
95 .dome-xBoxButton {
96 padding: 3px 8px ;
97 margin: 2px 4px ;
98 line-height: 1.4;
99 cursor: default;
100 border: 1px solid transparent;
101 border-radius: 6px;
102 box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
103 }
104
105 .dome-xCircButton {
106 padding: 2px ;
107 margin: 2px 4px ;
108 cursor: default;
109 border: 1px solid transparent;
110 border-radius: 20px;
111 box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
112 }
113
114 /* Disabled */
115
116 .dome-xButton:disabled, .dome-xButton:active:disabled {
117 fill: var(--disabled-text);
118 color: var(--disabled-text);
119 border-color: var(--border-discrete) ;
120 background-image: none;
121 }
122
123 /* Selected */
124
125 .dome-xButton-selected {
126 fill: var(--info-text);
127 color: var(--info-text);
128 border: 1px solid transparent ;
129 background-color: var(--selected-button-img);
130 background-image: none;
131 }
132
133 .dome-xButton-selected:hover:not(:disabled) {
134 background-color: var(--selected-button-hover) ;
135 background-image: none ;
136 }
137
138 /* Selected & Disabled */
139
140 .dome-xButton-selected:disabled {
141 fill: var(--info-text) ;
142 color: var(--info-text) ;
143 border: 1px solid var(--border-discrete) ;
144 }
145
146 /* Default button behaviors */
147
148 .dome-xButton-default:not(:disabled) {
149 color: var(--text);
150 border-color: var(--border);
151 background-image: var(--default-button-img);
152 }
153
154 .dome-xButton-default:hover:not(:disabled) {
155 background-color: var(--default-button-hover);
156 background-image: none;
157 }
158
159 .dome-xButton-default:active:not(:disabled) {
160 background-color: var(--default-button-active);
161 background-image: none;
162 }
163
164 /* Primary button behaviors */
165
166 .dome-xButton-primary:not(:disabled) {
167 color: var(--text);
168 border-color: var(--border);
169 background-image: var(--primary-button-img);
170 }
171
172 .dome-xButton-primary:hover:not(:disabled) {
173 background-color: var(--primary-button-hover);
174 background-image: none ;
175 }
176
177 .dome-xButton-primary:active:not(:disabled) {
178 background-color: var(--primary-button-active);
179 background-image: none;
180 }
181
182 /* Positive button behaviors */
183
184 .dome-xButton-positive:not(:disabled) {
185 color: var(--text);
186 border-color: var(--border);
187 background-image: var(--positive-button-img);
188 }
189
190 .dome-xButton-positive:hover:not(:disabled) {
191 background-color: var(--positive-button-hover);
192 background-image: none ;
193 }
194
195 .dome-xButton-positive:active:not(:disabled) {
196 background-color: var(--positive-button-active);
197 background-image: none;
198 }
199
200 /* Negative button behaviors */
201
202 .dome-xButton-negative:not(:disabled) {
203 color: var(--text);
204 border-color: var(--border);
205 background-image: var(--negative-button-img);
206 }
207
208 .dome-xButton-negative:hover:not(:disabled) {
209 background-color: var(--negative-button-hover);
210 background-image: none ;
211 }
212
213 .dome-xButton-negative:active:not(:disabled) {
214 background-color: var(--negative-button-active);
215 background-image: none;
216 }
217
218 /* Warning button behaviors */
219
220 .dome-xButton-warning:not(:disabled) {
221 color: var(--text);
222 border-color: var(--border);
223 background-image: var(--warning-button-img);
224 }
225
226 .dome-xButton-warning:hover:not(:disabled) {
227 background-color: var(--warning-button-hover);
228 background-image: none ;
229 }
230
231 .dome-xButton-warning:active:not(:disabled) {
232 background-color: var(--warning-button-active);
233 background-image: none;
234 }
235
236 /* Buttons' labels */
237
238 .dome-xButton-label {
239 position: relative ;
240 padding: 2px ;
241 display: inline ;
242 font-size: 12px ;
243 }
244
245 .dome-xButton-label.dome-control-enabled {
246 position: absolute ; left: 0 ; top: 0 ; width: 100% ;
247 /* font is smaller than disabled => absolute position */
248 }
249
250 .dome-xButton-label.dome-control-disabled {
251 position: relative ; width: 100% ;
252 /* font is larger than enabled => relative position */
253 }
254
255 /* -------------------------------------------------------------------------- */
256 /* --- Styling LED & LCD --- */
257 /* -------------------------------------------------------------------------- */
258
259 .dome-xButton-lcd {
260 text-align: right ;
261 color: var(--lcd-button-color) ;
262 background-color: var(--lcd-button-background) ;
263 border-color: var(--border) ;
264 }
265
266 .dome-xButton-led {
267 display: inline ;
268 position: relative ;
269 border-color: var(--border) ;
270 border-style: solid ;
271 border-width: 1px ;
272 border-radius: 50% ;
273 margin: 2px 4px 2px 4px ;
274 padding: 2px ;
275 width: 11px ;
276 height: 11px ;
277 }
278
279 .dome-xButton-led-inactive {
280 background: none ;
281 }
282
283 .dome-xButton-led-active {
284 background: var(--default-led-img);
285 }
286
287 .dome-xButton-led-positive {
288 background: var(--positive-led-img);
289 }
290
291 .dome-xButton-led-negative {
292 background: var(--negative-led-img);
293 }
294
295 .dome-xButton-led-warning {
296 background: var(--warning-led-img);
297 }
298
299 /* -------------------------------------------------------------------------- */
300 /* --- Styling Meters --- */
301 /* -------------------------------------------------------------------------- */
302
303 meter::-webkit-meter-bar {
304 height: 14px;
305 width: 70px;
306 border: 1px solid var(--border);
307 border-radius: 2px;
308 background: none;
309 box-shadow: 0px 3px 2px -3px var(--text) inset;
310 }
311
312 meter::-webkit-meter-optimum-value {
313 background: var(--meter-optimum);
314 }
315
316 meter::-webkit-meter-suboptimum-value {
317 background: var(--meter-subopti);
318 }
319
320 meter::-webkit-meter-even-less-good-value {
321 background: var(--meter-evenless);
322 }
323
324 /* -------------------------------------------------------------------------- */
325 /* --- Styling Checkbox --- */
326 /* -------------------------------------------------------------------------- */
327
328 .dome-xCheckbox {
329 padding: 0 ;
330 margin: 1px 4px ;
331 }
332
333 .dome-xCheckbox input {
334 margin-right: 8px ;
335 position: relative ;
336 left: 2px ;
337 }
338
339 .dome-xRadio-group {
340 display: flex ;
341 overflow: hidden ;
342 flex-flow: column nowrap ;
343 align-items: flex-start ;
344 justify-contents: flex-start ;
345 }
346
347 /* -------------------------------------------------------------------------- */
348 /* --- Styling IconButton --- */
349 /* -------------------------------------------------------------------------- */
350
351 .dome-xIconButton {
352 margin: 2px ;
353 padding: 2px ;
354 background: transparent ;
355 }
356
357 .dome-xIconButton:hover {
358 fill: var(--text) ;
359 background: var(--background-profound-hover) ;
360 }
361
362 .dome-xIconButton-default { fill: var(--info-text) ; }
363
364 .dome-xIconButton-selected:not(:hover) { fill: var(--activated-button-color) ; }
365 .dome-xIconButton-selected:hover { fill: var(--activated-button-hover) ; }
366
367 .dome-xIconButton-positive { fill: var(--positive-button-color) ; }
368
369 .dome-xIconButton-negative { fill: var(--negative-button-color) ; }
370
371 .dome-xIconButton-warning { fill: var(--warning-button-color) ; }
372
373 .dome-xIconButton.dome-control-disabled,
374 .dome-xIconButton.dome-control-disabled:hover {
375 fill: var(--disabled-text) ;
376 background: inherit ;
377 }
378
379 .dome-xIconButton.dome-control-hidden {
380 visibility: hidden ;
381 }
382
383 .dome-xIconButton.dome-control-erased {
384 display: none ;
385 }
386
387 /* -------------------------------------------------------------------------- */
388 /* --- Styling Switches --- */
389 /* -------------------------------------------------------------------------- */
390
391 .dome-xSwitch {
392 flex: 0 0 auto ;
393 padding: 0px ;
394 margin: 1px 4px ;
395 }
396
397 .dome-xSwitch .dome-xIcon {
398 position: relative ;
399 height: 0px ;
400 top: 2px ;
401 margin-right: 3px ;
402 }
403
404 .dome-xSwitch.dome-control-enabled:hover:not(:disabled) {
405 fill: blue ;
406 }
407
408 /* -------------------------------------------------------------------------- */
409 /* --- Styling Select --- */
410 /* -------------------------------------------------------------------------- */
411
412 .dome-xSelect {
413 width: max-content ;
414 }
415
416 /* -------------------------------------------------------------------------- */
417 /* --- Styling Field --- */
418 /* -------------------------------------------------------------------------- */
419
420 .dome-xField {
421 font-size: 10pt ;
422 width: 120px ;
423 padding-top: 1px ;
424 padding-bottom: 1px ;
425 padding-right: 4px ;
426 padding-left: 4px ;
427 }
428
429 /* -------------------------------------------------------------------------- */
430 /* --- Blinker
431 /* -------------------------------------------------------------------------- */
432
433 .dome-xButton-blink {
434 animation: dome-xButton-blinker 1s linear infinite;
435 }
436
437 @keyframes dome-xButton-blinker {
438 50% {
439 background: none;
440 }
441 }
442
443 /* -------------------------------------------------------------------------- */