1
+ @use " base" ;
2
+
1
3
// file: iot.scss
2
4
// Element and card rules for iot dashboards
3
5
// This is part of the micro css implementation.
23
25
display : flex ;
24
26
flex-direction : column ;
25
27
background-color : var (--card-back );
26
- border : $u-card-border ;
27
- border-radius : $u-card-radius ;
28
+ border : base . $u-card-border ;
29
+ border-radius : base . $u-card-radius ;
28
30
29
31
@media print {
30
- border : 1px solid $u-text ;
32
+ border : 1px solid base . $u-text ;
31
33
}
32
34
33
35
& .small {
45
47
46
48
& .active {
47
49
.border {
48
- border-color : $u-border-color-active ;
50
+ border-color : base . $u-border-color-active ;
49
51
}
50
52
51
53
.band ::-webkit-slider-thumb {
52
- border-color : $u-border-color-active transparent ;
54
+ border-color : base . $u-border-color-active transparent ;
53
55
}
54
56
55
57
>.block.header {
61
63
width : 2.75rem ;
62
64
height : 2.75rem ;
63
65
float : left ;
64
- margin-right : $u-gutter ;
66
+ margin-right : base . $u-gutter ;
65
67
overflow : hidden ;
66
68
}
67
69
75
77
>.block {
76
78
position : relative ;
77
79
flex : 1 1 auto ;
78
- padding : $u-padding-block ;
80
+ padding : base . $u-padding-block ;
79
81
min-height : 2rem ;
80
82
81
83
& .header {
82
84
background-color : var (--card-head );
83
- border-top-right-radius : $u-card-radius ;
84
- border-top-left-radius : $u-card-radius ;
85
+ border-top-right-radius : base . $u-card-radius ;
86
+ border-top-left-radius : base . $u-card-radius ;
85
87
min-height : 2.75em ; // with or without icon
86
88
max-height : 4rem ;
87
89
@@ -158,11 +160,11 @@ button,
158
160
min-width : 6.5ch ;
159
161
160
162
// height: 1.4em;
161
- padding : calc ($u-padding-text / 2 ) $u-padding-text ;
162
- border-radius : $u-btn-radius ;
163
- border-color : $u-primary ;
164
- background-color : $u-primary ;
165
- color : $u-primary-text ;
163
+ padding : calc (base . $u-padding-text / 2 ) base . $u-padding-text ;
164
+ border-radius : base . $u-btn-radius ;
165
+ border-color : base . $u-primary ;
166
+ background-color : base . $u-primary ;
167
+ color : base . $u-primary-text ;
166
168
cursor : pointer ;
167
169
user-select : none ;
168
170
@@ -172,8 +174,8 @@ button,
172
174
173
175
& :disabled ,
174
176
& :disabled:focus {
175
- border-color : $u-disabled ;
176
- background-color : $u-disabled ;
177
+ border-color : base . $u-disabled ;
178
+ background-color : base . $u-disabled ;
177
179
}
178
180
179
181
& .active {
@@ -190,7 +192,7 @@ button,
190
192
// standard input elements
191
193
192
194
option [disabled ] {
193
- color : $u-disabled ;
195
+ color : base . $u-disabled ;
194
196
}
195
197
196
198
// slider implemented using input[type=range] element
@@ -244,13 +246,13 @@ input.switch[type='range'] {
244
246
}
245
247
246
248
>* :first-child {
247
- border-top-left-radius : $u-btn-radius ;
248
- border-bottom-left-radius : $u-btn-radius ;
249
+ border-top-left-radius : base . $u-btn-radius ;
250
+ border-bottom-left-radius : base . $u-btn-radius ;
249
251
}
250
252
251
253
>* :last-child {
252
- border-top-right-radius : $u-btn-radius ;
253
- border-bottom-right-radius : $u-btn-radius ;
254
+ border-top-right-radius : base . $u-btn-radius ;
255
+ border-bottom-right-radius : base . $u-btn-radius ;
254
256
}
255
257
}
256
258
@@ -285,7 +287,7 @@ input.switch[type='range'] {
285
287
.form-actions {
286
288
display : flex ;
287
289
flex-flow : row wrap ;
288
- gap : $u-gutter2 ;
290
+ gap : base . $u-gutter2 ;
289
291
}
290
292
291
293
@@ -344,17 +346,17 @@ input.switch[type='range'] {
344
346
}
345
347
346
348
.u-bool [value = ' 1' ] {
347
- background-image : linear-gradient (145deg , color .adjust ($u-on , $lightness : 30% ), $u-on );
349
+ background-image : linear-gradient (145deg , color .adjust (base . $u-on , $lightness : 30% ), base . $u-on );
348
350
}
349
351
350
352
.u-bool [value = ' 0' ] {
351
- background-image : linear-gradient (145deg , color .adjust ($u-off , $lightness : 30% ), $u-off );
353
+ background-image : linear-gradient (145deg , color .adjust (base . $u-off , $lightness : 30% ), base . $u-off );
352
354
}
353
355
354
356
// visualizing the output level 0...max
355
357
.ux-levelbar {
356
358
display : inline-block ;
357
- border-color : $u-primary ;
359
+ border-color : base . $u-primary ;
358
360
border-style : solid ;
359
361
border-width : 1px ;
360
362
width : 32px ;
@@ -402,7 +404,7 @@ input.switch[type='range'] {
402
404
}
403
405
404
406
.border {
405
- border : $u-border ;
407
+ border : base . $u-border ;
406
408
}
407
409
408
410
/* === Display Element === */
@@ -414,7 +416,7 @@ input.switch[type='range'] {
414
416
line-height : 10px ;
415
417
font-size : 10px ;
416
418
font-family : Verdana , Geneva, sans-serif ;
417
- border : 2px solid $u-border-color ;
419
+ border : 2px solid base . $u-border-color ;
418
420
419
421
>span {
420
422
box-sizing : border-box ;
@@ -427,7 +429,7 @@ input.switch[type='range'] {
427
429
background-color : transparent ;
428
430
429
431
& .text {
430
- color : $u-text ;
432
+ color : base . $u-text ;
431
433
}
432
434
433
435
& .dot {
@@ -450,7 +452,7 @@ input.switch[type='range'] {
450
452
height : 10px ;
451
453
overflow : hidden ;
452
454
background-color : pink ;
453
- color : $u-text ;
455
+ color : base . $u-text ;
454
456
border-radius : 0.4em ;
455
457
}
456
458
0 commit comments