@kws3/ui 4.4.0-alpha.3 → 4.5.0-beta.1
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/CHANGELOG.mdx +6 -0
- 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 +2 -1
- 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 +3 -5
- package/styles/Loader.scss +28 -26
- package/styles/Pagination.scss +52 -34
- package/styles/Panel.scss +17 -14
- package/styles/RangeSlider.scss +56 -56
- package/styles/Select.scss +38 -39
- package/styles/Skeleton.scss +45 -3
- package/styles/SlidingPane.scss +3 -1
- package/styles/Timeline.scss +25 -17
- package/styles/Timepicker.scss +18 -29
- package/styles/Toggle.scss +23 -27
- package/styles/ToggleButtons.scss +50 -0
- package/styles/Tooltip.scss +26 -24
- package/types/type-defs/index.d.ts +1 -1
package/styles/FloatingUI.scss
CHANGED
|
@@ -1,9 +1,58 @@
|
|
|
1
1
|
@use "bulma/sass/utilities/derived-variables" as dv;
|
|
2
2
|
@use "bulma/sass/utilities/css-variables" as cv;
|
|
3
|
-
@use "bulma/sass/utilities/functions" as fn;
|
|
4
3
|
|
|
5
|
-
$
|
|
6
|
-
$
|
|
4
|
+
$theme-colors: dv.$colors !default;
|
|
5
|
+
$item-width: 25rem !default;
|
|
6
|
+
$progressbar-radius: 0 cv.getVar("radius") cv.getVar("radius")
|
|
7
|
+
cv.getVar("radius") !default;
|
|
8
|
+
$notification-radius: cv.getVar("radius") !default;
|
|
9
|
+
$notification-shadow:
|
|
10
|
+
0 1px 4px
|
|
11
|
+
hsla(
|
|
12
|
+
cv.getVar("shadow-h"),
|
|
13
|
+
cv.getVar("shadow-s"),
|
|
14
|
+
cv.getVar("shadow-l"),
|
|
15
|
+
0.12
|
|
16
|
+
),
|
|
17
|
+
0 0 6px
|
|
18
|
+
hsla(
|
|
19
|
+
cv.getVar("shadow-h"),
|
|
20
|
+
cv.getVar("shadow-s"),
|
|
21
|
+
cv.getVar("shadow-l"),
|
|
22
|
+
0.04
|
|
23
|
+
) !default;
|
|
24
|
+
$snackbar-radius: cv.getVar("radius") !default;
|
|
25
|
+
$snackbar-shadow:
|
|
26
|
+
0 1px 4px
|
|
27
|
+
hsla(
|
|
28
|
+
cv.getVar("shadow-h"),
|
|
29
|
+
cv.getVar("shadow-s"),
|
|
30
|
+
cv.getVar("shadow-l"),
|
|
31
|
+
0.12
|
|
32
|
+
),
|
|
33
|
+
0 0 6px
|
|
34
|
+
hsla(
|
|
35
|
+
cv.getVar("shadow-h"),
|
|
36
|
+
cv.getVar("shadow-s"),
|
|
37
|
+
cv.getVar("shadow-l"),
|
|
38
|
+
0.04
|
|
39
|
+
) !default;
|
|
40
|
+
$toast-radius: 1.5em !default;
|
|
41
|
+
$toast-shadow:
|
|
42
|
+
0 1px 4px
|
|
43
|
+
hsla(
|
|
44
|
+
cv.getVar("shadow-h"),
|
|
45
|
+
cv.getVar("shadow-s"),
|
|
46
|
+
cv.getVar("shadow-l"),
|
|
47
|
+
0.12
|
|
48
|
+
),
|
|
49
|
+
0 0 6px
|
|
50
|
+
hsla(
|
|
51
|
+
cv.getVar("shadow-h"),
|
|
52
|
+
cv.getVar("shadow-s"),
|
|
53
|
+
cv.getVar("shadow-l"),
|
|
54
|
+
0.04
|
|
55
|
+
) !default;
|
|
7
56
|
|
|
8
57
|
.kws-floatie-output {
|
|
9
58
|
position: fixed;
|
|
@@ -29,8 +78,8 @@ $kws3-floating-item-width: 25rem !default;
|
|
|
29
78
|
transform: translate3d(0, 0, 0);
|
|
30
79
|
pointer-events: none;
|
|
31
80
|
margin-bottom: 1rem;
|
|
32
|
-
max-width: $
|
|
33
|
-
min-width: $
|
|
81
|
+
max-width: $item-width;
|
|
82
|
+
min-width: $item-width;
|
|
34
83
|
&.has-toast {
|
|
35
84
|
max-width: 100%;
|
|
36
85
|
width: fit-content;
|
|
@@ -60,9 +109,7 @@ $kws3-floating-item-width: 25rem !default;
|
|
|
60
109
|
animation-name: floatie-progress-running;
|
|
61
110
|
animation-fill-mode: forwards;
|
|
62
111
|
animation-timing-function: linear;
|
|
63
|
-
border-radius:
|
|
64
|
-
"radius"
|
|
65
|
-
)};
|
|
112
|
+
border-radius: $progressbar-radius;
|
|
66
113
|
}
|
|
67
114
|
.notification {
|
|
68
115
|
padding: 0.5em 0.75em;
|
|
@@ -70,9 +117,8 @@ $kws3-floating-item-width: 25rem !default;
|
|
|
70
117
|
font-size: 1rem;
|
|
71
118
|
width: 100%;
|
|
72
119
|
pointer-events: auto;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
0 0 6px rgba(0, 0, 0, 0.04);
|
|
120
|
+
border-radius: $notification-radius;
|
|
121
|
+
box-shadow: $notification-shadow;
|
|
76
122
|
p {
|
|
77
123
|
margin: 0;
|
|
78
124
|
}
|
|
@@ -82,14 +128,12 @@ $kws3-floating-item-width: 25rem !default;
|
|
|
82
128
|
position: relative;
|
|
83
129
|
align-items: center;
|
|
84
130
|
justify-content: space-around;
|
|
85
|
-
border-radius:
|
|
86
|
-
box-shadow:
|
|
87
|
-
0 1px 4px rgba(0, 0, 0, 0.12),
|
|
88
|
-
0 0 6px rgba(0, 0, 0, 0.04);
|
|
131
|
+
border-radius: $snackbar-radius;
|
|
132
|
+
box-shadow: $snackbar-shadow;
|
|
89
133
|
pointer-events: auto;
|
|
90
134
|
min-height: 3em;
|
|
91
135
|
background: cv.getVar("scheme-invert");
|
|
92
|
-
color: cv.getVar("
|
|
136
|
+
color: cv.getVar("text-invert");
|
|
93
137
|
font-size: 1rem;
|
|
94
138
|
|
|
95
139
|
.text {
|
|
@@ -118,11 +162,11 @@ $kws3-floating-item-width: 25rem !default;
|
|
|
118
162
|
}
|
|
119
163
|
}
|
|
120
164
|
|
|
121
|
-
@each $name, $pair in $
|
|
122
|
-
$color:
|
|
123
|
-
$color-invert:
|
|
124
|
-
$color-light:
|
|
125
|
-
$color-dark:
|
|
165
|
+
@each $name, $pair in $theme-colors {
|
|
166
|
+
$color: cv.getVar($name);
|
|
167
|
+
$color-invert: cv.getVar($name, "", "-invert");
|
|
168
|
+
$color-light: cv.getVar($name, "", "-soft");
|
|
169
|
+
$color-dark: cv.getVar($name, "", "-bold");
|
|
126
170
|
&.is-#{$name} {
|
|
127
171
|
background: $color;
|
|
128
172
|
color: $color-invert;
|
|
@@ -137,22 +181,20 @@ $kws3-floating-item-width: 25rem !default;
|
|
|
137
181
|
.toast {
|
|
138
182
|
text-align: center;
|
|
139
183
|
padding: 0.5em 0.75em;
|
|
140
|
-
border-radius:
|
|
184
|
+
border-radius: $toast-radius;
|
|
141
185
|
margin: 0;
|
|
142
|
-
box-shadow:
|
|
143
|
-
0 1px 4px rgba(0, 0, 0, 0.12),
|
|
144
|
-
0 0 6px rgba(0, 0, 0, 0.04);
|
|
186
|
+
box-shadow: $toast-shadow;
|
|
145
187
|
pointer-events: none;
|
|
146
188
|
background: cv.getVar("scheme-invert");
|
|
147
|
-
color: cv.getVar("
|
|
189
|
+
color: cv.getVar("text-invert");
|
|
148
190
|
white-space: nowrap;
|
|
149
191
|
overflow: hidden;
|
|
150
192
|
text-overflow: ellipsis;
|
|
151
|
-
@each $name, $pair in $
|
|
152
|
-
$color:
|
|
153
|
-
$color-invert:
|
|
154
|
-
$color-light:
|
|
155
|
-
$color-dark:
|
|
193
|
+
@each $name, $pair in $theme-colors {
|
|
194
|
+
$color: cv.getVar($name);
|
|
195
|
+
$color-invert: cv.getVar($name, "", "-invert");
|
|
196
|
+
$color-light: cv.getVar($name, "", "-soft");
|
|
197
|
+
$color-dark: cv.getVar($name, "", "-bold");
|
|
156
198
|
&.is-#{$name} {
|
|
157
199
|
background: $color;
|
|
158
200
|
color: $color-invert;
|
package/styles/Grid.scss
CHANGED
|
@@ -7,10 +7,9 @@ $th-color: cv.getVar("text") !default;
|
|
|
7
7
|
$tag-margin: 0 0.125rem 0.125rem 0 !default;
|
|
8
8
|
$icon-size: 1.5em !default;
|
|
9
9
|
$checked-row-background: cv.getVar("info-light") !default;
|
|
10
|
-
|
|
10
|
+
$checked-row-color: cv.getVar("info") !default;
|
|
11
11
|
$active-row-background: cv.getVar("table-row-active-background-color") !default;
|
|
12
12
|
$active-row-color: cv.getVar("table-row-active-color") !default;
|
|
13
|
-
|
|
14
13
|
$background: cv.getVar("table-background-color") !default;
|
|
15
14
|
$striped-row-background: cv.getVar(
|
|
16
15
|
"table-striped-row-even-background-color"
|
|
@@ -19,12 +18,11 @@ $sticky-column-border-color: cv.getVar("border") !default;
|
|
|
19
18
|
$sticky-column-active-row-border-color: cv.getVar(
|
|
20
19
|
"table-row-active-color"
|
|
21
20
|
) !default;
|
|
22
|
-
|
|
23
21
|
$hover-background-color: cv.getVar("table-row-hover-background-color") !default;
|
|
24
22
|
$even-row-hover-background-color: cv.getVar(
|
|
25
23
|
"table-striped-row-even-hover-background-color"
|
|
26
24
|
) !default;
|
|
27
|
-
$
|
|
25
|
+
$cell-border-color: cv.getVar("table-cell-border-color") !default;
|
|
28
26
|
|
|
29
27
|
.table.kws-grid-view {
|
|
30
28
|
box-shadow: $box-shadow;
|
|
@@ -74,7 +72,7 @@ $kws-gridView-cell-border-color: cv.getVar("table-cell-border-color") !default;
|
|
|
74
72
|
background-color: $checked-row-background !important;
|
|
75
73
|
td {
|
|
76
74
|
background-color: $checked-row-background !important;
|
|
77
|
-
color: $
|
|
75
|
+
color: $checked-row-color !important;
|
|
78
76
|
}
|
|
79
77
|
}
|
|
80
78
|
|
package/styles/Loader.scss
CHANGED
|
@@ -1,31 +1,33 @@
|
|
|
1
1
|
@use "bulma/sass/utilities/derived-variables" as dv;
|
|
2
|
+
@use "bulma/sass/utilities/css-variables" as cv;
|
|
2
3
|
@use "bulma/sass/utilities/mixins" as mx;
|
|
3
4
|
|
|
4
|
-
$
|
|
5
|
-
$
|
|
6
|
-
$
|
|
7
|
-
$
|
|
8
|
-
$
|
|
9
|
-
$
|
|
10
|
-
$
|
|
11
|
-
$
|
|
12
|
-
$
|
|
5
|
+
$theme-colors: dv.$colors !default;
|
|
6
|
+
$width: 2rem !default;
|
|
7
|
+
$height: 2rem !default;
|
|
8
|
+
$width-medium: ($width * 1.5) !default;
|
|
9
|
+
$height-medium: ($height * 1.5) !default;
|
|
10
|
+
$width-large: ($width * 3) !default;
|
|
11
|
+
$height-large: ($height * 3) !default;
|
|
12
|
+
$color: cv.getVar("text") !default;
|
|
13
|
+
$overlay-background: rgba(0, 0, 0, 0.15) !default;
|
|
14
|
+
|
|
13
15
|
.kws-loader {
|
|
14
16
|
.hero-body {
|
|
15
17
|
position: relative;
|
|
16
18
|
&:after {
|
|
17
19
|
@include mx.loader();
|
|
18
|
-
border-left-color: $
|
|
19
|
-
border-bottom-color: $
|
|
20
|
+
border-left-color: $color;
|
|
21
|
+
border-bottom-color: $color;
|
|
20
22
|
position: absolute !important;
|
|
21
|
-
width: $
|
|
22
|
-
height: $
|
|
23
|
-
left: calc(50% - (#{$
|
|
24
|
-
top: calc(50% - (#{$
|
|
23
|
+
width: $width;
|
|
24
|
+
height: $height;
|
|
25
|
+
left: calc(50% - (#{$width} / 2));
|
|
26
|
+
top: calc(50% - (#{$height} / 2));
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
@each $name, $pair in $
|
|
28
|
-
$color:
|
|
29
|
+
@each $name, $pair in $theme-colors {
|
|
30
|
+
$color: cv.getVar($name);
|
|
29
31
|
&.is-#{$name} {
|
|
30
32
|
&:after {
|
|
31
33
|
border-left-color: $color !important;
|
|
@@ -36,19 +38,19 @@ $kws-loader-overlay-background: rgba(0, 0, 0, 0.15) !default;
|
|
|
36
38
|
|
|
37
39
|
&.is-medium {
|
|
38
40
|
&:after {
|
|
39
|
-
width: $
|
|
40
|
-
height: $
|
|
41
|
-
left: calc(50% - (#{$
|
|
42
|
-
top: calc(50% - (#{$
|
|
41
|
+
width: $width-medium;
|
|
42
|
+
height: $height-medium;
|
|
43
|
+
left: calc(50% - (#{$width-medium} / 2));
|
|
44
|
+
top: calc(50% - (#{$height-medium} / 2));
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
&.is-large {
|
|
47
49
|
&:after {
|
|
48
|
-
width: $
|
|
49
|
-
height: $
|
|
50
|
-
left: calc(50% - (#{$
|
|
51
|
-
top: calc(50% - (#{$
|
|
50
|
+
width: $width-large;
|
|
51
|
+
height: $height-large;
|
|
52
|
+
left: calc(50% - (#{$width-large} / 2));
|
|
53
|
+
top: calc(50% - (#{$height-large} / 2));
|
|
52
54
|
}
|
|
53
55
|
}
|
|
54
56
|
}
|
|
@@ -61,7 +63,7 @@ $kws-loader-overlay-background: rgba(0, 0, 0, 0.15) !default;
|
|
|
61
63
|
height: 100%;
|
|
62
64
|
width: 100%;
|
|
63
65
|
position: relative;
|
|
64
|
-
background: $
|
|
66
|
+
background: $overlay-background;
|
|
65
67
|
z-index: 3;
|
|
66
68
|
.hero-body {
|
|
67
69
|
padding: 0;
|
package/styles/Pagination.scss
CHANGED
|
@@ -1,24 +1,36 @@
|
|
|
1
1
|
@use "bulma/sass/utilities/css-variables" as cv;
|
|
2
2
|
@use "bulma/sass/utilities/mixins" as mx;
|
|
3
3
|
|
|
4
|
-
$
|
|
5
|
-
$
|
|
6
|
-
$
|
|
7
|
-
$
|
|
8
|
-
$
|
|
9
|
-
$
|
|
10
|
-
|
|
11
|
-
$kws-pagination-item-ellipsis-background: #{cv.getVar("scheme-main-ter")} !default;
|
|
12
|
-
$kws-pagination-item-ellipsis-border-color: #{cv.getVar("scheme-main-ter")} !default;
|
|
13
|
-
$kws-pagination-item-active-background: #{cv.getVar("success")} !default;
|
|
14
|
-
$kws-pagination-item-active-color: findColorInvert(
|
|
15
|
-
$kws-pagination-item-active-background
|
|
4
|
+
$item-color: cv.getVar("text") !default;
|
|
5
|
+
$item-background: cv.getVar("scheme-main") !default;
|
|
6
|
+
$item-border: 1px solid cv.getVar("border") !default;
|
|
7
|
+
$item-hover-color: $item-color !default;
|
|
8
|
+
$item-hover-border: $item-border !default;
|
|
9
|
+
$item-disabled-background: cv.getVar(
|
|
10
|
+
"pagination-disabled-background-color"
|
|
16
11
|
) !default;
|
|
12
|
+
$item-disabled-color: cv.getVar("pagination-disabled-color") !default;
|
|
13
|
+
$item-ellipsis-background: transparent !default;
|
|
14
|
+
$item-ellipsis-border-color: transparent !default;
|
|
15
|
+
$item-active-background: cv.getVar("success") !default;
|
|
16
|
+
$item-active-color: cv.getVar("success-invert") !default;
|
|
17
17
|
|
|
18
|
-
$
|
|
19
|
-
0 0.125rem 0.1875rem
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
$frame-box-shadow:
|
|
19
|
+
0 0.125rem 0.1875rem
|
|
20
|
+
rgba(
|
|
21
|
+
cv.getVar("shadow-h"),
|
|
22
|
+
cv.getVar("shadow-s"),
|
|
23
|
+
cv.getVar("shadow-l"),
|
|
24
|
+
0.1
|
|
25
|
+
),
|
|
26
|
+
0 0 0 0.0625rem
|
|
27
|
+
rgba(
|
|
28
|
+
cv.getVar("shadow-h"),
|
|
29
|
+
cv.getVar("shadow-s"),
|
|
30
|
+
cv.getVar("shadow-l"),
|
|
31
|
+
0.1
|
|
32
|
+
) !default;
|
|
33
|
+
$frame-background: linear-gradient(
|
|
22
34
|
cv.getVar("scheme-main"),
|
|
23
35
|
cv.getVar("scheme-main-ter")
|
|
24
36
|
) !default;
|
|
@@ -41,31 +53,31 @@ $kws-pagination-frame-background: linear-gradient(
|
|
|
41
53
|
.pagination-next,
|
|
42
54
|
.pagination-link,
|
|
43
55
|
.pagination-ellipsis {
|
|
44
|
-
background: $
|
|
45
|
-
color: $
|
|
46
|
-
border: $
|
|
56
|
+
background: $item-background;
|
|
57
|
+
color: $item-color;
|
|
58
|
+
border: $item-border;
|
|
47
59
|
margin: 0;
|
|
48
60
|
border-radius: 0;
|
|
49
61
|
min-height: 100%;
|
|
50
62
|
margin-left: -1px;
|
|
51
63
|
&.is-disabled {
|
|
52
|
-
background: $
|
|
53
|
-
color: $
|
|
64
|
+
background: $item-disabled-background;
|
|
65
|
+
color: $item-disabled-color;
|
|
54
66
|
}
|
|
55
67
|
&:hover {
|
|
56
|
-
border: $
|
|
57
|
-
color: $
|
|
68
|
+
border: $item-hover-border;
|
|
69
|
+
color: $item-hover-color;
|
|
58
70
|
}
|
|
59
71
|
}
|
|
60
72
|
.pagination-ellipsis {
|
|
61
|
-
background: $
|
|
62
|
-
border-color: $
|
|
73
|
+
background: $item-ellipsis-background;
|
|
74
|
+
border-color: $item-ellipsis-border-color;
|
|
63
75
|
}
|
|
64
76
|
.pagination-link.is-current {
|
|
65
77
|
text-shadow: none;
|
|
66
|
-
color: $
|
|
67
|
-
background: $
|
|
68
|
-
border-color: $
|
|
78
|
+
color: $item-active-color;
|
|
79
|
+
background: $item-active-background;
|
|
80
|
+
border-color: $item-active-background;
|
|
69
81
|
}
|
|
70
82
|
.pagination-list {
|
|
71
83
|
&.pagination-limit-chooser {
|
|
@@ -75,18 +87,24 @@ $kws-pagination-frame-background: linear-gradient(
|
|
|
75
87
|
}
|
|
76
88
|
.pagination_frame.has-frame {
|
|
77
89
|
padding: 0.625rem;
|
|
78
|
-
box-shadow: $
|
|
79
|
-
background: $
|
|
90
|
+
box-shadow: $frame-box-shadow;
|
|
91
|
+
background: $frame-background;
|
|
80
92
|
}
|
|
81
93
|
|
|
82
94
|
@include mx.mobile {
|
|
83
95
|
.pagination_frame {
|
|
84
96
|
.level {
|
|
85
|
-
|
|
86
|
-
flex-
|
|
97
|
+
justify-content: center;
|
|
98
|
+
flex-direction: column;
|
|
87
99
|
.level-right {
|
|
88
|
-
margin-top: 0
|
|
89
|
-
|
|
100
|
+
margin-top: 0;
|
|
101
|
+
}
|
|
102
|
+
.level-left {
|
|
103
|
+
.level-item {
|
|
104
|
+
.pagination {
|
|
105
|
+
flex-direction: column;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
90
108
|
}
|
|
91
109
|
}
|
|
92
110
|
.pagination-showing {
|
package/styles/Panel.scss
CHANGED
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
@use "bulma/sass/utilities/css-variables" as cv;
|
|
2
2
|
|
|
3
|
-
$
|
|
4
|
-
$
|
|
5
|
-
$
|
|
6
|
-
$
|
|
7
|
-
$
|
|
8
|
-
$
|
|
9
|
-
$
|
|
3
|
+
$heading-background: cv.getVar("scheme-main-bis") !default;
|
|
4
|
+
$background: cv.getVar("scheme-main") !default;
|
|
5
|
+
$box-shadow: cv.getVar("shadow") !default;
|
|
6
|
+
$color: cv.getVar("text") !default;
|
|
7
|
+
$title-color: cv.getVar("text") !default;
|
|
8
|
+
$title-weight: 600 !default;
|
|
9
|
+
$caret-open-color: cv.getVar("text") !default;
|
|
10
|
+
$caret-closed-color: cv.getVar("link") !default;
|
|
10
11
|
|
|
11
12
|
.panel {
|
|
12
|
-
background: $
|
|
13
|
+
background: $background;
|
|
13
14
|
border-radius: none;
|
|
14
15
|
border: none;
|
|
15
|
-
box-shadow: $
|
|
16
|
+
box-shadow: $box-shadow;
|
|
16
17
|
.panel-heading {
|
|
17
18
|
border-top: none;
|
|
18
19
|
border-left: none;
|
|
19
20
|
border-right: none;
|
|
20
|
-
background-color: $
|
|
21
|
+
background-color: $heading-background;
|
|
21
22
|
.subtitle {
|
|
22
|
-
font-weight: $
|
|
23
|
-
color: $
|
|
23
|
+
font-weight: $title-weight;
|
|
24
|
+
color: $title-color;
|
|
24
25
|
}
|
|
25
26
|
.level {
|
|
26
27
|
.level-right {
|
|
28
|
+
flex-direction: row;
|
|
27
29
|
.level-item {
|
|
28
30
|
margin-right: 0;
|
|
29
31
|
margin-left: 0.5rem;
|
|
@@ -35,6 +37,7 @@ $kws-panel-caret-closed-color: #00a4d8 !default;
|
|
|
35
37
|
border: none;
|
|
36
38
|
padding: 0.9375rem 1.25rem 1.25rem 1.25rem;
|
|
37
39
|
display: block;
|
|
40
|
+
color: $color;
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
&.collapsible .panel-heading {
|
|
@@ -49,7 +52,7 @@ $kws-panel-caret-closed-color: #00a4d8 !default;
|
|
|
49
52
|
transform 0.4s,
|
|
50
53
|
color 0.4s;
|
|
51
54
|
transform: rotate(-90deg);
|
|
52
|
-
color: $
|
|
55
|
+
color: $caret-open-color;
|
|
53
56
|
|
|
54
57
|
font-size: 1.5em;
|
|
55
58
|
line-height: 0.9em;
|
|
@@ -62,7 +65,7 @@ $kws-panel-caret-closed-color: #00a4d8 !default;
|
|
|
62
65
|
|
|
63
66
|
&.collapsed .collapsor .icon-i {
|
|
64
67
|
transform: rotate(90deg) translate(5px, 0);
|
|
65
|
-
color: $
|
|
68
|
+
color: $caret-closed-color;
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
&.collapsible .panel-content-outer {
|
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;
|