Skip to content

Commit 26cd12e

Browse files
committed
scss update
1 parent 78e2d9e commit 26cd12e

File tree

5 files changed

+39
-35
lines changed

5 files changed

+39
-35
lines changed

css/iot.scss

+31-29
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "base";
2+
13
// file: iot.scss
24
// Element and card rules for iot dashboards
35
// This is part of the micro css implementation.
@@ -23,11 +25,11 @@
2325
display: flex;
2426
flex-direction: column;
2527
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;
2830

2931
@media print {
30-
border: 1px solid $u-text;
32+
border: 1px solid base.$u-text;
3133
}
3234

3335
&.small {
@@ -45,11 +47,11 @@
4547

4648
&.active {
4749
.border {
48-
border-color: $u-border-color-active;
50+
border-color: base.$u-border-color-active;
4951
}
5052

5153
.band::-webkit-slider-thumb {
52-
border-color: $u-border-color-active transparent;
54+
border-color: base.$u-border-color-active transparent;
5355
}
5456

5557
>.block.header {
@@ -61,7 +63,7 @@
6163
width: 2.75rem;
6264
height: 2.75rem;
6365
float: left;
64-
margin-right: $u-gutter;
66+
margin-right: base.$u-gutter;
6567
overflow: hidden;
6668
}
6769

@@ -75,13 +77,13 @@
7577
>.block {
7678
position: relative;
7779
flex: 1 1 auto;
78-
padding: $u-padding-block;
80+
padding: base.$u-padding-block;
7981
min-height: 2rem;
8082

8183
&.header {
8284
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;
8587
min-height: 2.75em; // with or without icon
8688
max-height: 4rem;
8789

@@ -158,11 +160,11 @@ button,
158160
min-width: 6.5ch;
159161

160162
// 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;
166168
cursor: pointer;
167169
user-select: none;
168170

@@ -172,8 +174,8 @@ button,
172174

173175
&:disabled,
174176
&:disabled:focus {
175-
border-color: $u-disabled;
176-
background-color: $u-disabled;
177+
border-color: base.$u-disabled;
178+
background-color: base.$u-disabled;
177179
}
178180

179181
&.active {
@@ -190,7 +192,7 @@ button,
190192
// standard input elements
191193

192194
option[disabled] {
193-
color: $u-disabled;
195+
color: base.$u-disabled;
194196
}
195197

196198
// slider implemented using input[type=range] element
@@ -244,13 +246,13 @@ input.switch[type='range'] {
244246
}
245247

246248
>*: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;
249251
}
250252

251253
>*: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;
254256
}
255257
}
256258

@@ -285,7 +287,7 @@ input.switch[type='range'] {
285287
.form-actions {
286288
display: flex;
287289
flex-flow: row wrap;
288-
gap: $u-gutter2;
290+
gap: base.$u-gutter2;
289291
}
290292

291293

@@ -344,17 +346,17 @@ input.switch[type='range'] {
344346
}
345347

346348
.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);
348350
}
349351

350352
.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);
352354
}
353355

354356
// visualizing the output level 0...max
355357
.ux-levelbar {
356358
display: inline-block;
357-
border-color: $u-primary;
359+
border-color: base.$u-primary;
358360
border-style: solid;
359361
border-width: 1px;
360362
width: 32px;
@@ -402,7 +404,7 @@ input.switch[type='range'] {
402404
}
403405

404406
.border {
405-
border: $u-border;
407+
border: base.$u-border;
406408
}
407409

408410
/* === Display Element === */
@@ -414,7 +416,7 @@ input.switch[type='range'] {
414416
line-height: 10px;
415417
font-size: 10px;
416418
font-family: Verdana, Geneva, sans-serif;
417-
border: 2px solid $u-border-color;
419+
border: 2px solid base.$u-border-color;
418420

419421
>span {
420422
box-sizing: border-box;
@@ -427,7 +429,7 @@ input.switch[type='range'] {
427429
background-color: transparent;
428430

429431
&.text {
430-
color: $u-text;
432+
color: base.$u-text;
431433
}
432434

433435
&.dot {
@@ -450,7 +452,7 @@ input.switch[type='range'] {
450452
height: 10px;
451453
overflow: hidden;
452454
background-color: pink;
453-
color: $u-text;
455+
color: base.$u-text;
454456
border-radius: 0.4em;
455457
}
456458

docstyle.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// file: iotstyle.scss
22

3-
@import './css/base';
4-
@import './css/doc';
3+
@use 'css/base';
4+
@use 'css/doc';

iotstyle.css

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

iotstyle.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

iotstyle.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// file: iotstyle.scss
22

3-
@import './css/base';
4-
@import './css/iot';
3+
@use 'css/base';
4+
@use 'css/iot';

0 commit comments

Comments
 (0)