@kws3/ui 4.4.0-alpha.2 → 4.4.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/controls/FileUpload.svelte +7 -4
- package/controls/RangeSlider.svelte +1 -1
- package/controls/Toggle.svelte +0 -6
- package/controls/ToggleButtons.svelte +2 -43
- package/forms/AutoComplete.svelte +1 -1
- package/forms/actions.d.ts +28 -5
- package/forms/actions.d.ts.map +1 -1
- package/forms/actions.js +21 -7
- package/forms/colorpicker/Colorpicker.svelte +1 -1
- package/helpers/Skeleton.svelte +3 -3
- package/helpers/Timeline/TimelineItem.svelte +2 -2
- package/package.json +2 -2
- package/styles/ActionSheet.scss +7 -6
- package/styles/AutoComplete.scss +45 -51
- package/styles/Canvas.scss +3 -4
- package/styles/Chart.scss +5 -5
- package/styles/CheckRadio.scss +32 -36
- package/styles/Colorpicker.scss +31 -9
- package/styles/DataSearch.scss +14 -7
- package/styles/DataSort.scss +4 -2
- package/styles/Datepicker.scss +36 -31
- package/styles/Divider.scss +16 -16
- package/styles/FileUpload.scss +37 -53
- package/styles/FloatingUI.scss +73 -31
- package/styles/Grid.scss +44 -44
- package/styles/Loader.scss +28 -26
- package/styles/Pagination.scss +52 -34
- package/styles/Panel.scss +16 -14
- package/styles/RangeSlider.scss +56 -56
- package/styles/Select.scss +38 -39
- package/styles/Skeleton.scss +56 -22
- package/styles/SlidingPane.scss +3 -1
- package/styles/Timeline.scss +25 -17
- package/styles/Timepicker.scss +18 -29
- package/styles/Toggle.scss +29 -32
- package/styles/ToggleButtons.scss +50 -0
- package/styles/Tooltip.scss +26 -24
- package/types/type-defs/index.d.ts +1 -1
package/styles/RangeSlider.scss
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
@use "bulma/sass/utilities/css-variables" as cv;
|
|
2
2
|
@use "bulma/sass/utilities/derived-variables" as dv;
|
|
3
|
-
@use "bulma/sass/utilities/functions" as fn;
|
|
4
3
|
|
|
5
|
-
$
|
|
6
|
-
$
|
|
7
|
-
$
|
|
8
|
-
$
|
|
9
|
-
$
|
|
10
|
-
$
|
|
11
|
-
$
|
|
12
|
-
$
|
|
13
|
-
$
|
|
14
|
-
$
|
|
15
|
-
$
|
|
16
|
-
$
|
|
17
|
-
$
|
|
18
|
-
$
|
|
19
|
-
$
|
|
4
|
+
$theme-colors: dv.$colors !default;
|
|
5
|
+
$radius: cv.getVar("radius") !default;
|
|
6
|
+
$track-background: cv.getVar("border") !default;
|
|
7
|
+
$track-radius: cv.getVar("radius") !default;
|
|
8
|
+
$track-border: 0px solid cv.getVar("border") !default;
|
|
9
|
+
$track-shadow: cv.getVar("input-shadow") !default;
|
|
10
|
+
$thumb-background: cv.getVar("text-invert") !default;
|
|
11
|
+
$thumb-radius: cv.getVar("radius-small") !default;
|
|
12
|
+
$thumb-border: 1px solid cv.getVar("border") !default;
|
|
13
|
+
$thumb-shadow: none !default;
|
|
14
|
+
$thumb-to-track-ratio: 2 !default;
|
|
15
|
+
$output-width: 3rem !default;
|
|
16
|
+
$output-background: cv.getVar("scheme-invert-ter") !default;
|
|
17
|
+
$output-color: cv.getVar("text-invert") !default;
|
|
18
|
+
$output-radius: cv.getVar("radius-small") !default;
|
|
20
19
|
|
|
21
20
|
@use "sass:math";
|
|
22
21
|
|
|
23
22
|
@mixin slider-size($size) {
|
|
24
|
-
$track-height: $size / $
|
|
23
|
+
$track-height: calc($size / $thumb-to-track-ratio);
|
|
25
24
|
$thumb-size: $size;
|
|
26
25
|
|
|
27
26
|
min-height: calc((#{$size} + 2px) * 1.25);
|
|
@@ -51,7 +50,7 @@ $kws-slider-output-radius: #{cv.getVar("radius")} !default;
|
|
|
51
50
|
margin-top: 0;
|
|
52
51
|
}
|
|
53
52
|
&::-webkit-slider-thumb {
|
|
54
|
-
margin-top:
|
|
53
|
+
margin-top: calc($thumb-size / 4 * -1);
|
|
55
54
|
}
|
|
56
55
|
}
|
|
57
56
|
|
|
@@ -85,16 +84,16 @@ $kws-slider-output-radius: #{cv.getVar("radius")} !default;
|
|
|
85
84
|
&.has-output,
|
|
86
85
|
&.has-output-tooltip {
|
|
87
86
|
+ output {
|
|
88
|
-
width: $
|
|
89
|
-
background: $
|
|
90
|
-
border-radius: $
|
|
87
|
+
width: $output-width;
|
|
88
|
+
background: $output-background;
|
|
89
|
+
border-radius: $output-radius;
|
|
91
90
|
padding: 0.4rem 0.8rem;
|
|
92
91
|
font-size: cv.getVar("size-7");
|
|
93
92
|
line-height: cv.getVar("size-7");
|
|
94
93
|
text-align: center;
|
|
95
94
|
text-overflow: ellipsis;
|
|
96
95
|
white-space: nowrap;
|
|
97
|
-
color: $
|
|
96
|
+
color: $output-color;
|
|
98
97
|
overflow: hidden;
|
|
99
98
|
pointer-events: none;
|
|
100
99
|
z-index: 200;
|
|
@@ -106,7 +105,7 @@ $kws-slider-output-radius: #{cv.getVar("radius")} !default;
|
|
|
106
105
|
&.has-output {
|
|
107
106
|
display: inline-block;
|
|
108
107
|
vertical-align: middle;
|
|
109
|
-
width: calc(100% - (#{$
|
|
108
|
+
width: calc(100% - (#{$output-width + 1.2rem}));
|
|
110
109
|
|
|
111
110
|
+ output {
|
|
112
111
|
display: inline-block;
|
|
@@ -121,57 +120,58 @@ $kws-slider-output-radius: #{cv.getVar("radius")} !default;
|
|
|
121
120
|
position: absolute;
|
|
122
121
|
left: 0;
|
|
123
122
|
top: -1.8rem;
|
|
123
|
+
margin: 0;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
&::-webkit-slider-runnable-track {
|
|
128
128
|
cursor: pointer;
|
|
129
|
-
box-shadow: $
|
|
130
|
-
background: $
|
|
131
|
-
border-radius: $
|
|
132
|
-
border: $
|
|
129
|
+
box-shadow: $track-shadow;
|
|
130
|
+
background: $track-background;
|
|
131
|
+
border-radius: $track-radius;
|
|
132
|
+
border: $track-border;
|
|
133
133
|
}
|
|
134
134
|
&::-moz-range-track {
|
|
135
135
|
cursor: pointer;
|
|
136
|
-
box-shadow: $
|
|
137
|
-
background: $
|
|
138
|
-
border-radius: $
|
|
139
|
-
border: $
|
|
136
|
+
box-shadow: $track-shadow;
|
|
137
|
+
background: $track-background;
|
|
138
|
+
border-radius: $track-radius;
|
|
139
|
+
border: $track-border;
|
|
140
140
|
}
|
|
141
141
|
&::-ms-track {
|
|
142
142
|
cursor: pointer;
|
|
143
|
-
box-shadow: $
|
|
144
|
-
background: $
|
|
145
|
-
border-radius: $
|
|
146
|
-
border: $
|
|
143
|
+
box-shadow: $track-shadow;
|
|
144
|
+
background: $track-background;
|
|
145
|
+
border-radius: $track-radius;
|
|
146
|
+
border: $track-border;
|
|
147
147
|
}
|
|
148
148
|
&::-ms-fill-lower {
|
|
149
|
-
background:
|
|
150
|
-
border-radius: $
|
|
149
|
+
background: $track-background;
|
|
150
|
+
border-radius: $radius;
|
|
151
151
|
}
|
|
152
152
|
&::-ms-fill-upper {
|
|
153
|
-
background:
|
|
154
|
-
border-radius: $
|
|
153
|
+
background: $track-background;
|
|
154
|
+
border-radius: $radius;
|
|
155
155
|
}
|
|
156
156
|
&::-webkit-slider-thumb {
|
|
157
|
-
box-shadow: $
|
|
158
|
-
border: $
|
|
159
|
-
border-radius: $
|
|
160
|
-
background: $
|
|
157
|
+
box-shadow: $thumb-shadow;
|
|
158
|
+
border: $thumb-border;
|
|
159
|
+
border-radius: $thumb-radius;
|
|
160
|
+
background: $thumb-background;
|
|
161
161
|
cursor: pointer;
|
|
162
162
|
}
|
|
163
163
|
&::-moz-range-thumb {
|
|
164
|
-
box-shadow: $
|
|
165
|
-
border: $
|
|
166
|
-
border-radius: $
|
|
167
|
-
background: $
|
|
164
|
+
box-shadow: $thumb-shadow;
|
|
165
|
+
border: $thumb-border;
|
|
166
|
+
border-radius: $thumb-radius;
|
|
167
|
+
background: $thumb-background;
|
|
168
168
|
cursor: pointer;
|
|
169
169
|
}
|
|
170
170
|
&::-ms-thumb {
|
|
171
|
-
box-shadow: $
|
|
172
|
-
border: $
|
|
173
|
-
border-radius: $
|
|
174
|
-
background: $
|
|
171
|
+
box-shadow: $thumb-shadow;
|
|
172
|
+
border: $thumb-border;
|
|
173
|
+
border-radius: $thumb-radius;
|
|
174
|
+
background: $thumb-background;
|
|
175
175
|
cursor: pointer;
|
|
176
176
|
}
|
|
177
177
|
&::-webkit-slider-thumb {
|
|
@@ -227,11 +227,11 @@ $kws-slider-output-radius: #{cv.getVar("radius")} !default;
|
|
|
227
227
|
&.is-large {
|
|
228
228
|
@include slider-size(cv.getVar("size-large"));
|
|
229
229
|
}
|
|
230
|
-
@each $name, $pair in $
|
|
231
|
-
$color:
|
|
232
|
-
$color-invert:
|
|
233
|
-
$color-light:
|
|
234
|
-
$color-dark:
|
|
230
|
+
@each $name, $pair in $theme-colors {
|
|
231
|
+
$color: cv.getVar($name);
|
|
232
|
+
$color-invert: cv.getVar($name, "", "-invert");
|
|
233
|
+
$color-light: cv.getVar($name, "", "-light");
|
|
234
|
+
$color-dark: cv.getVar($name, "", "-dark");
|
|
235
235
|
&.is-#{$name} {
|
|
236
236
|
&::-moz-range-track {
|
|
237
237
|
background: $color !important;
|
package/styles/Select.scss
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
@use "bulma/sass/utilities/css-variables" as cv;
|
|
2
2
|
@use "bulma/sass/utilities/derived-variables" as dv;
|
|
3
3
|
|
|
4
|
-
$
|
|
5
|
-
$
|
|
6
|
-
$
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
$theme-colors: dv.$colors !default;
|
|
5
|
+
$radius: cv.getVar("radius") !default;
|
|
6
|
+
$focus-border-color: hsl(
|
|
7
|
+
cv.getVar("input-focus-h"),
|
|
8
|
+
cv.getVar("input-focus-s"),
|
|
9
|
+
cv.getVar("input-focus-l")
|
|
10
10
|
) !default;
|
|
11
|
-
$
|
|
12
|
-
$
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
$focus-box-shadow-size: cv.getVar("input-focus-shadow-size") !default;
|
|
12
|
+
$focus-box-shadow-color: hsl(
|
|
13
|
+
cv.getVar("input-focus-h"),
|
|
14
|
+
cv.getVar("input-focus-s"),
|
|
15
|
+
cv.getVar("input-focus-l"),
|
|
16
|
+
cv.getVar("input-focus-shadow-alpha")
|
|
17
17
|
) !default;
|
|
18
|
-
$
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
$
|
|
22
|
-
$
|
|
23
|
-
$
|
|
24
|
-
$
|
|
25
|
-
$
|
|
26
|
-
$
|
|
27
|
-
$
|
|
18
|
+
$disabled-background-color: cv.getVar(
|
|
19
|
+
"input-disabled-background-color"
|
|
20
|
+
) !default;
|
|
21
|
+
$disabled-border-color: cv.getVar("input-disabled-border-color") !default;
|
|
22
|
+
$disabled-color: cv.getVar("input-disabled-color") !default;
|
|
23
|
+
$selecting-color: cv.getVar("primary-invert") !default;
|
|
24
|
+
$selecting-background: cv.getVar("primary") !default;
|
|
25
|
+
$selected-color: cv.getVar("primary-dark") !default;
|
|
26
|
+
$selected-background: cv.getVar("primary-light") !default;
|
|
27
|
+
$options-background: cv.getVar("scheme-main-ter") !default;
|
|
28
28
|
|
|
29
29
|
$__modal-z: 41 !default;
|
|
30
30
|
@if variable-exists("modal-z") {
|
|
31
31
|
$__modal-z: $modal-z;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
$
|
|
34
|
+
$options-z-index: $__modal-z + 1 !default;
|
|
35
35
|
|
|
36
36
|
.kws-searchableselect {
|
|
37
37
|
position: relative;
|
|
@@ -43,14 +43,13 @@ $kws-select-options-z-index: $__modal-z + 1 !default;
|
|
|
43
43
|
padding-top: calc(0.4em - 1px);
|
|
44
44
|
padding-bottom: calc(0.4em - 1px);
|
|
45
45
|
&:focus-within {
|
|
46
|
-
border-color: $
|
|
47
|
-
box-shadow: $
|
|
48
|
-
$kws-select-focus-box-shadow-color;
|
|
46
|
+
border-color: $focus-border-color;
|
|
47
|
+
box-shadow: $focus-box-shadow-size $focus-box-shadow-color;
|
|
49
48
|
}
|
|
50
49
|
&.is-disabled {
|
|
51
|
-
background-color: $
|
|
52
|
-
border-color: $
|
|
53
|
-
color: $
|
|
50
|
+
background-color: $disabled-background-color;
|
|
51
|
+
border-color: $disabled-border-color;
|
|
52
|
+
color: $disabled-color;
|
|
54
53
|
cursor: not-allowed;
|
|
55
54
|
}
|
|
56
55
|
&.is-readonly {
|
|
@@ -110,14 +109,14 @@ $kws-select-options-z-index: $__modal-z + 1 !default;
|
|
|
110
109
|
max-height: 50vh;
|
|
111
110
|
padding: 0;
|
|
112
111
|
cursor: pointer;
|
|
113
|
-
border-radius: 0 0 $
|
|
112
|
+
border-radius: 0 0 $radius $radius;
|
|
114
113
|
overflow: auto;
|
|
115
|
-
background: $
|
|
114
|
+
background: $options-background;
|
|
116
115
|
box-shadow: 0 3px 9px rgba(0, 0, 0, 0.4);
|
|
117
116
|
position: relative;
|
|
118
117
|
z-index: 4;
|
|
119
118
|
&[data-popper-placement="top"] {
|
|
120
|
-
border-radius: $
|
|
119
|
+
border-radius: $radius $radius 0 0;
|
|
121
120
|
box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.4);
|
|
122
121
|
}
|
|
123
122
|
&.hidden {
|
|
@@ -156,16 +155,16 @@ $kws-select-options-z-index: $__modal-z + 1 !default;
|
|
|
156
155
|
}
|
|
157
156
|
}
|
|
158
157
|
&.selected {
|
|
159
|
-
color: $
|
|
160
|
-
background: $
|
|
158
|
+
color: $selected-color;
|
|
159
|
+
background: $selected-background;
|
|
161
160
|
.kws-selected-icon {
|
|
162
161
|
display: inline-flex;
|
|
163
162
|
}
|
|
164
163
|
}
|
|
165
164
|
&.active {
|
|
166
165
|
// keyboard focused item
|
|
167
|
-
color: $
|
|
168
|
-
background: $
|
|
166
|
+
color: $selecting-color;
|
|
167
|
+
background: $selecting-background;
|
|
169
168
|
}
|
|
170
169
|
}
|
|
171
170
|
|
|
@@ -198,12 +197,12 @@ $kws-select-options-z-index: $__modal-z + 1 !default;
|
|
|
198
197
|
}
|
|
199
198
|
}
|
|
200
199
|
|
|
201
|
-
@each $name, $pair in $
|
|
200
|
+
@each $name, $pair in $theme-colors {
|
|
202
201
|
.kws-searchableselect {
|
|
203
202
|
&.is-#{$name} {
|
|
204
203
|
border-color: cv.getVar($name);
|
|
205
204
|
&:focus-within {
|
|
206
|
-
box-shadow: $
|
|
205
|
+
box-shadow: $focus-box-shadow-size
|
|
207
206
|
hsla(
|
|
208
207
|
cv.getVar($name, "", "-h"),
|
|
209
208
|
cv.getVar($name, "", "-s"),
|
|
@@ -230,6 +229,6 @@ $kws-select-options-z-index: $__modal-z + 1 !default;
|
|
|
230
229
|
#kws-overlay-root {
|
|
231
230
|
.kws-searchableselect {
|
|
232
231
|
position: absolute;
|
|
233
|
-
z-index: $
|
|
232
|
+
z-index: $options-z-index;
|
|
234
233
|
}
|
|
235
234
|
}
|
package/styles/Skeleton.scss
CHANGED
|
@@ -1,38 +1,72 @@
|
|
|
1
1
|
@use "bulma/sass/utilities/css-variables" as cv;
|
|
2
2
|
@use "bulma/sass/utilities/derived-variables" as dv;
|
|
3
|
-
@use "bulma/sass/utilities/functions" as fn;
|
|
4
3
|
|
|
5
|
-
$
|
|
6
|
-
$
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
$theme-colors: dv.$colors !default;
|
|
5
|
+
$color: hsla(
|
|
6
|
+
cv.getVar("text-h"),
|
|
7
|
+
cv.getVar("text-s"),
|
|
8
|
+
cv.getVar("text-weak-l"),
|
|
9
|
+
0.1
|
|
10
|
+
) !default;
|
|
11
|
+
$hilight-color: hsla(
|
|
12
|
+
cv.getVar("text-h"),
|
|
13
|
+
cv.getVar("text-s"),
|
|
14
|
+
cv.getVar("text-80-l"),
|
|
15
|
+
0.2
|
|
16
|
+
) !default;
|
|
9
17
|
|
|
10
18
|
.kws-skeleton {
|
|
11
19
|
width: 100%;
|
|
12
20
|
line-height: 1;
|
|
13
21
|
display: inline-block;
|
|
14
|
-
background-color: $
|
|
15
|
-
background-image: linear-gradient(
|
|
16
|
-
90deg,
|
|
17
|
-
$kws-skeleton-color,
|
|
18
|
-
$kws-skeleton-hilight-color,
|
|
19
|
-
$kws-skeleton-color
|
|
20
|
-
);
|
|
22
|
+
background-color: $color;
|
|
23
|
+
background-image: linear-gradient(90deg, $color, $hilight-color, $color);
|
|
21
24
|
background-size: 200px 100%;
|
|
22
25
|
background-repeat: no-repeat;
|
|
23
26
|
animation: kws-skeleton-shine 1.2s infinite;
|
|
24
27
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
&.input {
|
|
29
|
+
background-color: hsl(
|
|
30
|
+
cv.getVar("input-h"),
|
|
31
|
+
cv.getVar("input-s"),
|
|
32
|
+
calc(
|
|
33
|
+
cv.getVar("input-background-l") + cv.getVar("input-background-l-delta")
|
|
34
|
+
)
|
|
35
|
+
);
|
|
36
|
+
background-image: linear-gradient(
|
|
37
|
+
90deg,
|
|
38
|
+
hsla(
|
|
39
|
+
cv.getVar("input-h"),
|
|
40
|
+
cv.getVar("input-s"),
|
|
41
|
+
cv.getVar("input-color-l"),
|
|
42
|
+
0.1
|
|
43
|
+
),
|
|
44
|
+
hsla(
|
|
45
|
+
cv.getVar("input-h"),
|
|
46
|
+
cv.getVar("input-s"),
|
|
47
|
+
cv.getVar("input-color-l"),
|
|
48
|
+
0.2
|
|
49
|
+
),
|
|
50
|
+
hsla(
|
|
51
|
+
cv.getVar("input-h"),
|
|
52
|
+
cv.getVar("input-s"),
|
|
53
|
+
cv.getVar("input-color-l"),
|
|
54
|
+
0.1
|
|
55
|
+
)
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@each $name, $pair in $theme-colors {
|
|
60
|
+
$_color-light: cv.getVar($name, "", "-90");
|
|
61
|
+
$_color-dark: cv.getVar($name, "", "-60");
|
|
62
|
+
&.is-#{$name},
|
|
63
|
+
&.is-#{$name}.input {
|
|
64
|
+
background-color: $_color-light;
|
|
31
65
|
background-image: linear-gradient(
|
|
32
66
|
90deg,
|
|
33
|
-
$
|
|
34
|
-
$
|
|
35
|
-
$
|
|
67
|
+
$_color-light,
|
|
68
|
+
$_color-dark,
|
|
69
|
+
$_color-light
|
|
36
70
|
);
|
|
37
71
|
}
|
|
38
72
|
}
|
|
@@ -42,7 +76,7 @@ $kws-skeleton-hilight-color: fn.bulmaLighten(dv.$text, 65%) !default;
|
|
|
42
76
|
background-image: linear-gradient(
|
|
43
77
|
90deg,
|
|
44
78
|
transparent,
|
|
45
|
-
|
|
79
|
+
cv.getVar("text-90"),
|
|
46
80
|
transparent
|
|
47
81
|
);
|
|
48
82
|
}
|
package/styles/SlidingPane.scss
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
@use "bulma/sass/utilities/css-variables" as cv;
|
|
2
2
|
|
|
3
|
+
$easing: cv.getVar("easing") !default;
|
|
4
|
+
|
|
3
5
|
.sliding-pane-set {
|
|
4
6
|
position: relative;
|
|
5
7
|
overflow: hidden;
|
|
@@ -12,7 +14,7 @@
|
|
|
12
14
|
backface-visibility: hidden;
|
|
13
15
|
transform-style: preserve-3d;
|
|
14
16
|
transition:
|
|
15
|
-
transform 0.4s
|
|
17
|
+
transform 0.4s $easing,
|
|
16
18
|
opacity 0.1s;
|
|
17
19
|
transform-origin: left top;
|
|
18
20
|
.sliding-pane-inner {
|
package/styles/Timeline.scss
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
@use "bulma/sass/utilities/css-variables" as cv;
|
|
2
2
|
@use "bulma/sass/utilities/derived-variables" as dv;
|
|
3
|
-
@use "bulma/sass/utilities/initial-variables" as iv;
|
|
4
|
-
@use "bulma/sass/utilities/functions" as fn;
|
|
5
3
|
|
|
6
|
-
$
|
|
7
|
-
$
|
|
8
|
-
$
|
|
4
|
+
$theme-colors: dv.$colors !default;
|
|
5
|
+
$color: cv.getVar("text") !default;
|
|
6
|
+
$color-invert: cv.getVar("text-invert") !default;
|
|
7
|
+
$color-light: cv.getVar("text-weak") !default;
|
|
8
|
+
$image-radius: cv.getVar("radius-small") !default;
|
|
9
|
+
$image-shadow: cv.getVar("shadow") !default;
|
|
9
10
|
|
|
10
11
|
@mixin right-aligned-timeline-item {
|
|
11
12
|
flex-direction: row-reverse;
|
|
@@ -19,6 +20,10 @@ $kws-timeline-default-color-invert: #{cv.getVar("light")} !default;
|
|
|
19
20
|
padding-left: 0;
|
|
20
21
|
padding-right: 1.75rem;
|
|
21
22
|
}
|
|
23
|
+
.kws-timeline-image {
|
|
24
|
+
margin-left: 0;
|
|
25
|
+
margin-right: 0.25rem;
|
|
26
|
+
}
|
|
22
27
|
&:before {
|
|
23
28
|
right: -0.5px;
|
|
24
29
|
left: auto;
|
|
@@ -40,8 +45,8 @@ $kws-timeline-default-color-invert: #{cv.getVar("light")} !default;
|
|
|
40
45
|
.kws-timeline-marker {
|
|
41
46
|
position: absolute;
|
|
42
47
|
left: 0;
|
|
43
|
-
background: $
|
|
44
|
-
border: 1px solid $
|
|
48
|
+
background: $color;
|
|
49
|
+
border: 1px solid $color;
|
|
45
50
|
border-radius: 100%;
|
|
46
51
|
transform: translateX(-50%);
|
|
47
52
|
display: flex;
|
|
@@ -54,10 +59,10 @@ $kws-timeline-default-color-invert: #{cv.getVar("light")} !default;
|
|
|
54
59
|
min-width: 1rem;
|
|
55
60
|
padding: 0;
|
|
56
61
|
border-width: 4px;
|
|
57
|
-
background: $
|
|
62
|
+
background: $color-invert;
|
|
58
63
|
}
|
|
59
64
|
.icon {
|
|
60
|
-
color: $
|
|
65
|
+
color: $color-invert;
|
|
61
66
|
width: 16px;
|
|
62
67
|
height: 16px;
|
|
63
68
|
font-size: 0.75rem !important;
|
|
@@ -73,24 +78,27 @@ $kws-timeline-default-color-invert: #{cv.getVar("light")} !default;
|
|
|
73
78
|
padding-left: 1.75rem;
|
|
74
79
|
flex-grow: 1;
|
|
75
80
|
flex-shrink: 1;
|
|
81
|
+
.above-description,
|
|
82
|
+
.below-description {
|
|
83
|
+
color: $color-light;
|
|
84
|
+
}
|
|
76
85
|
}
|
|
77
86
|
.kws-timeline-image {
|
|
78
87
|
flex-grow: 0;
|
|
79
88
|
flex-shrink: 0;
|
|
80
89
|
width: 32px;
|
|
90
|
+
margin-left: 0.25rem;
|
|
81
91
|
img {
|
|
82
92
|
max-width: 100%;
|
|
83
93
|
max-height: 100%;
|
|
84
|
-
border-radius:
|
|
85
|
-
box-shadow:
|
|
86
|
-
0 0.125rem 0.1875rem rgba(10, 10, 10, 0.1),
|
|
87
|
-
0 0 0 0.0625rem rgba(10, 10, 10, 0.1);
|
|
94
|
+
border-radius: $image-radius;
|
|
95
|
+
box-shadow: $image-shadow;
|
|
88
96
|
}
|
|
89
97
|
}
|
|
90
98
|
|
|
91
99
|
&:before {
|
|
92
100
|
content: "";
|
|
93
|
-
background-color: $
|
|
101
|
+
background-color: $color;
|
|
94
102
|
display: block;
|
|
95
103
|
width: 1px;
|
|
96
104
|
height: 100%;
|
|
@@ -99,9 +107,9 @@ $kws-timeline-default-color-invert: #{cv.getVar("light")} !default;
|
|
|
99
107
|
top: 0;
|
|
100
108
|
}
|
|
101
109
|
|
|
102
|
-
@each $name, $pair in $
|
|
103
|
-
$color:
|
|
104
|
-
$color-invert:
|
|
110
|
+
@each $name, $pair in $theme-colors {
|
|
111
|
+
$color: cv.getVar($name);
|
|
112
|
+
$color-invert: cv.getVar($name, "", "-invert");
|
|
105
113
|
&.is-#{$name} {
|
|
106
114
|
.kws-timeline-marker {
|
|
107
115
|
border-color: $color;
|
package/styles/Timepicker.scss
CHANGED
|
@@ -2,28 +2,22 @@
|
|
|
2
2
|
@use "bulma/sass/utilities/derived-variables" as dv;
|
|
3
3
|
@use "bulma/sass/utilities/functions" as fn;
|
|
4
4
|
|
|
5
|
-
$
|
|
6
|
-
$
|
|
7
|
-
$
|
|
5
|
+
$theme-colors: dv.$colors !default;
|
|
6
|
+
$background: cv.getVar("scheme-main-ter") !default;
|
|
7
|
+
$text: cv.getVar("text") !default;
|
|
8
|
+
$shadow: cv.getVar("shadow") !default;
|
|
9
|
+
$radius: cv.getVar("radius") !default;
|
|
8
10
|
|
|
9
11
|
.flatpickr-calendar.hasTime.noCalendar {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
box-shadow:
|
|
17
|
-
0 2px 5px rgba(0, 0, 0, 0.3),
|
|
18
|
-
0 0 0 0.0625rem rgba(0, 0, 0, 0.1);
|
|
19
|
-
background: $kws-timepicker-background;
|
|
20
|
-
color: $kws-timepicker-text;
|
|
21
|
-
border-radius: #{cv.getVar("radius")};
|
|
12
|
+
box-shadow: $shadow;
|
|
13
|
+
background: $background;
|
|
14
|
+
color: $text;
|
|
15
|
+
border-radius: $radius;
|
|
22
16
|
|
|
23
17
|
.flatpickr-time {
|
|
24
18
|
border: none;
|
|
25
19
|
.flatpickr-time-separator {
|
|
26
|
-
color: $
|
|
20
|
+
color: $text;
|
|
27
21
|
}
|
|
28
22
|
input,
|
|
29
23
|
.flatpickr-am-pm {
|
|
@@ -34,13 +28,13 @@ $kws-timepicker-text: #{cv.getVar("text")} !default;
|
|
|
34
28
|
}
|
|
35
29
|
}
|
|
36
30
|
.flatpickr-am-pm {
|
|
37
|
-
border-radius: 0
|
|
31
|
+
border-radius: 0 $radius $radius 0;
|
|
38
32
|
}
|
|
39
33
|
.numInputWrapper {
|
|
40
34
|
&:first-child {
|
|
41
|
-
border-radius:
|
|
35
|
+
border-radius: $radius 0 0 $radius;
|
|
42
36
|
.numInput {
|
|
43
|
-
border-radius:
|
|
37
|
+
border-radius: $radius 0 0 $radius;
|
|
44
38
|
}
|
|
45
39
|
}
|
|
46
40
|
&:hover {
|
|
@@ -52,16 +46,11 @@ $kws-timepicker-text: #{cv.getVar("text")} !default;
|
|
|
52
46
|
}
|
|
53
47
|
}
|
|
54
48
|
|
|
55
|
-
@each $name, $pair in $
|
|
56
|
-
$color:
|
|
57
|
-
$color-invert:
|
|
58
|
-
$color-light:
|
|
59
|
-
$color-dark:
|
|
60
|
-
//invert on darkmode by checking color luminance
|
|
61
|
-
@if ($isDarkMode) {
|
|
62
|
-
$color-dark: findLightColor($color);
|
|
63
|
-
$color-light: findDarkColor($color);
|
|
64
|
-
}
|
|
49
|
+
@each $name, $pair in $theme-colors {
|
|
50
|
+
$color: cv.getVar($name);
|
|
51
|
+
$color-invert: cv.getVar($name, "", "-invert");
|
|
52
|
+
$color-light: cv.getVar($name, "", "-soft");
|
|
53
|
+
$color-dark: cv.getVar($name, "", "-bold");
|
|
65
54
|
|
|
66
55
|
&.is-#{$name} {
|
|
67
56
|
border: 1px solid $color;
|