claritas-web-framework 8.5.8 → 8.5.91
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/.prettierrc +10 -10
- package/README.md +1 -1
- package/dist/index.css +1 -1
- package/index.html +20 -20
- package/index.js +2 -2
- package/package.json +33 -33
- package/sass/_functions.scss +55 -55
- package/sass/_helpers.scss +8 -8
- package/sass/_mixins.scss +12 -12
- package/sass/_modules.scss +30 -30
- package/sass/_reboot.scss +264 -264
- package/sass/_root.scss +56 -56
- package/sass/_utilities.scss +17 -17
- package/sass/_variables.scss +445 -445
- package/sass/helpers/_container.scss +11 -11
- package/sass/helpers/_embed.scss +36 -36
- package/sass/helpers/_grid.scss +53 -53
- package/sass/helpers/_image.scss +5 -5
- package/sass/helpers/_link.scss +15 -15
- package/sass/helpers/_rfs.scss +303 -303
- package/sass/helpers/_screenReader.scss +13 -13
- package/sass/helpers/_wrap.scss +5 -5
- package/sass/index.scss +12 -12
- package/sass/mixins/_breakpoints.scss +133 -133
- package/sass/mixins/_button.scss +116 -116
- package/sass/mixins/_caret.scss +41 -41
- package/sass/mixins/_clearfix.scss +7 -7
- package/sass/mixins/_colors.scss +23 -23
- package/sass/mixins/_container.scss +21 -21
- package/sass/mixins/_gradient.scss +55 -55
- package/sass/mixins/_grid.scss +156 -156
- package/sass/mixins/_group.scss +70 -70
- package/sass/mixins/_list.scss +18 -18
- package/sass/mixins/_screenReader.scss +22 -22
- package/sass/mixins/_wrap.scss +7 -7
- package/sass/modules/_alert.scss +60 -60
- package/sass/modules/_breadcrumbs.scss +43 -43
- package/sass/modules/_button.scss +170 -170
- package/sass/modules/_card.scss +107 -107
- package/sass/modules/_close.scss +59 -59
- package/sass/modules/_details.scss +48 -48
- package/sass/modules/_dialog.scss +47 -47
- package/sass/modules/_dropdown.scss +44 -43
- package/sass/modules/_form.scss +261 -261
- package/sass/modules/_list.scss +78 -78
- package/sass/modules/_loader.scss +183 -183
- package/sass/modules/_modal.scss +45 -45
- package/sass/modules/_nav.scss +136 -135
- package/sass/modules/_pill.scss +61 -61
- package/sass/modules/_table.scss +96 -96
- package/sass/modules/_tabs.scss +88 -93
- package/sass/modules/_tag.scss +72 -72
- package/sass/modules/_tile.scss +101 -101
- package/sass/modules/_tooltip.scss +108 -108
- package/sass/modules/form/_checkbox.scss +78 -78
- package/sass/modules/form/_file.scss +149 -149
- package/sass/modules/form/_formFieldGroup.scss +60 -60
- package/sass/modules/form/_output.scss +6 -6
- package/sass/modules/form/_progress.scss +55 -55
- package/sass/modules/form/_radio.scss +57 -57
- package/sass/modules/form/_range.scss +144 -144
- package/sass/modules/form/_select.scss +22 -22
- package/sass/modules/form/_text.scss +28 -28
- package/sass/modules/form/_textarea.scss +3 -3
- package/sass/modules/form/_toggle.scss +68 -68
- package/sass/utilities/_align.scss +25 -25
- package/sass/utilities/_border.scss +59 -59
- package/sass/utilities/_colors.scss +76 -76
- package/sass/utilities/_display.scss +25 -25
- package/sass/utilities/_flex.scss +65 -65
- package/sass/utilities/_float.scss +17 -17
- package/sass/utilities/_order.scss +23 -23
- package/sass/utilities/_overflow.scss +25 -25
- package/sass/utilities/_pointerEvents.scss +17 -17
- package/sass/utilities/_position.scss +59 -59
- package/sass/utilities/_shadow.scss +7 -7
- package/sass/utilities/_size.scss +118 -118
- package/sass/utilities/_spacing.scss +107 -107
- package/sass/utilities/_translate.scss +15 -15
- package/sass/utilities/_typography.scss +62 -62
- package/sass/utilities/_visibility.scss +17 -17
- package/sass/utilities/_zIndex.scss +15 -15
- package/tests.js +5 -5
- package/webpack.config.js +27 -27
- package/webpack.plugins.js +15 -15
- package/webpack.rules.js +8 -8
package/sass/modules/_form.scss
CHANGED
|
@@ -1,261 +1,261 @@
|
|
|
1
|
-
@use "sass:color";
|
|
2
|
-
@use "./../helpers" as *;
|
|
3
|
-
@use "./../variables" as *;
|
|
4
|
-
@use "./../functions" as *;
|
|
5
|
-
@use "./../mixins/breakpoints" as *;
|
|
6
|
-
|
|
7
|
-
::placeholder {
|
|
8
|
-
color: var(--gray-3);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.form--field {
|
|
12
|
-
margin-bottom: var(--spacer);
|
|
13
|
-
|
|
14
|
-
& .small,
|
|
15
|
-
& small {
|
|
16
|
-
color: $medium;
|
|
17
|
-
display: block;
|
|
18
|
-
margin-top: calc(var(--spacer) * 0.25);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
%input {
|
|
23
|
-
--input-color: var(--body-color);
|
|
24
|
-
--input-hover-color: var(--body-color);
|
|
25
|
-
--input-focus-color: var(--body-color);
|
|
26
|
-
--input-active-color: var(--body-color);
|
|
27
|
-
--input-disabled-color: hsl(from var(--body-color) h s l / #{$color-disabled-alpha});
|
|
28
|
-
--input-border-color: var(--border-color-main);
|
|
29
|
-
--input-hover-border-color: var(--border-color-hover-main);
|
|
30
|
-
--input-focus-border-color: var(--border-color-focus-main);
|
|
31
|
-
--input-active-border-color: var(--border-color-active-main);
|
|
32
|
-
--input-disabled-border-color: var(--border-color-disabled-main);
|
|
33
|
-
--input-background: var(--white);
|
|
34
|
-
--input-hover-background: var(--white);
|
|
35
|
-
--input-focus-background: var(--white);
|
|
36
|
-
--input-active-background: var(--white);
|
|
37
|
-
--input-disabled-background: hsl(from var(--body-color) h s l / 5%);
|
|
38
|
-
--input-detail-background: var(--primary);
|
|
39
|
-
--input-disabled-detail-background: hsl(from var(--primary) h s l / #{$color-disabled-alpha});
|
|
40
|
-
--input-box-shadow: 0 0 0 0.125em transparent;
|
|
41
|
-
--input-hover-box-shadow: 0 0 0 0.125em transparent;
|
|
42
|
-
--input-focus-box-shadow: 0 0 0 0.125em hsl(from var(--body-color) h s l / 20%);
|
|
43
|
-
--input-active-box-shadow: 0 0 0 0.125em hsl(from var(--body-color) h s l / 20%);
|
|
44
|
-
--input-disabled-box-shadow: 0 0 0 0.125em transparent;
|
|
45
|
-
|
|
46
|
-
// Static
|
|
47
|
-
--input-padding-x: #{$input-padding-x};
|
|
48
|
-
--input-padding-y: #{$input-padding-y};
|
|
49
|
-
--input-small-padding-x: #{$input-small-padding-x};
|
|
50
|
-
--input-small-padding-y: #{$input-small-padding-y};
|
|
51
|
-
--input-large-padding-x: #{$input-large-padding-x};
|
|
52
|
-
--input-large-padding-y: #{$input-large-padding-y};
|
|
53
|
-
--input-border-width: 1px;
|
|
54
|
-
--input-border-style: solid;
|
|
55
|
-
--input-border-radius: #{$input-border-radius};
|
|
56
|
-
--input-small-border-radius: #{$input-small-border-radius};
|
|
57
|
-
--input-large-border-radius: #{$input-large-border-radius};
|
|
58
|
-
--input-round-border-radius: #{$input-round-border-radius};
|
|
59
|
-
--input-font-weight: #{$input-font-weight};
|
|
60
|
-
--input-line-height: #{$input-line-height};
|
|
61
|
-
--input-white-space: #{$input-white-space};
|
|
62
|
-
--input-width: 100%;
|
|
63
|
-
--input-height: auto;
|
|
64
|
-
--input-desktop-width: 100%;
|
|
65
|
-
--input-desktop-height: auto;
|
|
66
|
-
|
|
67
|
-
color: var(--input-color);
|
|
68
|
-
border-width: var(--input-border-width);
|
|
69
|
-
border-style: var(--input-border-style);
|
|
70
|
-
border-color: var(--input-border-color);
|
|
71
|
-
background: var(--input-background);
|
|
72
|
-
box-shadow: var(--input-box-shadow);
|
|
73
|
-
padding: var(--input-padding-y) var(--input-padding-x);
|
|
74
|
-
border-radius: var(--input-border-radius);
|
|
75
|
-
font-weight: var(--input-font-weight);
|
|
76
|
-
line-height: var(--input-line-height);
|
|
77
|
-
white-space: var(--input-white-space);
|
|
78
|
-
width: var(--input-width);
|
|
79
|
-
height: var(--input-height);
|
|
80
|
-
display: block;
|
|
81
|
-
appearance: none;
|
|
82
|
-
transition: $form-transition;
|
|
83
|
-
position: relative;
|
|
84
|
-
|
|
85
|
-
@include rfs($input-font-size, --input-font-size);
|
|
86
|
-
|
|
87
|
-
@include font-size(var(--input-font-size));
|
|
88
|
-
|
|
89
|
-
@include media-breakpoint-up("desktop") {
|
|
90
|
-
height: var(--input-desktop-height);
|
|
91
|
-
width: var(--input-desktop-width);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&:hover {
|
|
95
|
-
color: var(--input-hover-color);
|
|
96
|
-
border-color: var(--input-hover-border-color);
|
|
97
|
-
background: var(--input-hover-background);
|
|
98
|
-
box-shadow: var(--input-hover-box-shadow);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&:focus {
|
|
102
|
-
color: var(--input-focus-color);
|
|
103
|
-
border-color: var(--input-focus-border-color);
|
|
104
|
-
background: var(--input-focus-background);
|
|
105
|
-
box-shadow: var(--input-focus-box-shadow);
|
|
106
|
-
outline: 0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&:active {
|
|
110
|
-
color: var(--input-active-color);
|
|
111
|
-
border-color: var(--input-active-border-color);
|
|
112
|
-
background: var(--input-active-background);
|
|
113
|
-
box-shadow: var(--input-active-box-shadow);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
&:disabled,
|
|
117
|
-
&.disabled,
|
|
118
|
-
fieldset:disabled & {
|
|
119
|
-
color: var(--input-disabled-color);
|
|
120
|
-
border-color: var(--input-disabled-border-color);
|
|
121
|
-
background: var(--input-disabled-background);
|
|
122
|
-
box-shadow: var(--input-disabled-box-shadow);
|
|
123
|
-
opacity: 1;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
&[readonly] {
|
|
127
|
-
background: var(--input-disabled-background);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
&.input--rounded {
|
|
131
|
-
border-radius: var(--input-round-border-radius);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
&.input--small {
|
|
135
|
-
padding: var(--input-small-padding-y) var(--input-small-padding-x);
|
|
136
|
-
|
|
137
|
-
@include rfs($input-small-font-size, --input-font-size);
|
|
138
|
-
|
|
139
|
-
@include font-size(var(--input-font-size));
|
|
140
|
-
|
|
141
|
-
&:not(.input--rounded) {
|
|
142
|
-
border-radius: var(--input-small-border-radius);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&.input--large {
|
|
147
|
-
padding: var(--input-large-padding-y) var(--input-large-padding-x);
|
|
148
|
-
|
|
149
|
-
@include rfs($input-large-font-size, --input-font-size);
|
|
150
|
-
|
|
151
|
-
@include font-size(var(--input-font-size));
|
|
152
|
-
|
|
153
|
-
&:not(.input--rounded) {
|
|
154
|
-
border-radius: var(--input-large-border-radius);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
@each $key, $value in $all-colors {
|
|
159
|
-
&.input--#{$key} {
|
|
160
|
-
--input-color: var(--#{$key});
|
|
161
|
-
--input-hover-color: var(--#{$key});
|
|
162
|
-
--input-focus-color: var(--#{$key});
|
|
163
|
-
--input-active-color: var(--#{$key});
|
|
164
|
-
--input-disabled-color: hsl(from var(--#{$key}) h s l / #{$color-disabled-alpha});
|
|
165
|
-
--input-border-color: var(--#{$key});
|
|
166
|
-
--input-hover-border-color: hsl(color-mix(in oklab, var(--#{$key}), #000 #{$border-shade-percentage}));
|
|
167
|
-
--input-focus-border-color: hsl(color-mix(in oklab, var(--#{$key}), #000 #{$border-shade-percentage}));
|
|
168
|
-
--input-active-border-color: hsl(color-mix(in oklab, var(--#{$key}), #000 #{$border-shade-percentage}));
|
|
169
|
-
--input-disabled-border-color: hsl(from var(--#{$key}) h s l / #{$color-disabled-alpha});
|
|
170
|
-
--input-background: var(--white);
|
|
171
|
-
--input-hover-background: var(--white);
|
|
172
|
-
--input-focus-background: var(--white);
|
|
173
|
-
--input-active-background: var(--white);
|
|
174
|
-
--input-disabled-background: hsl(from var(--#{$key}) h s l / 5%);
|
|
175
|
-
--input-box-shadow: 0 0 0 0.125em transparent;
|
|
176
|
-
--input-hover-box-shadow: 0 0 0 0.125em transparent;
|
|
177
|
-
--input-focus-box-shadow: 0 0 0 0.125em hsl(from var(--#{$key}) h s l / 20%);
|
|
178
|
-
--input-active-box-shadow: 0 0 0 0.125em hsl(from var(--#{$key}) h s l / 20%);
|
|
179
|
-
--input-disabled-box-shadow: 0 0 0 0.125em transparent;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
input,
|
|
185
|
-
textarea,
|
|
186
|
-
output,
|
|
187
|
-
select,
|
|
188
|
-
progress,
|
|
189
|
-
.form__span,
|
|
190
|
-
.form__input {
|
|
191
|
-
@extend %input;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.form__label {
|
|
195
|
-
display: $label-display;
|
|
196
|
-
padding: $label-padding;
|
|
197
|
-
margin: $label-margin;
|
|
198
|
-
font-weight: $label-font-weight;
|
|
199
|
-
text-transform: $label-text-transform;
|
|
200
|
-
font-size: $label-font-size;
|
|
201
|
-
color: $label-color;
|
|
202
|
-
cursor: pointer;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.form__control {
|
|
206
|
-
box-sizing: border-box;
|
|
207
|
-
clear: both;
|
|
208
|
-
position: relative;
|
|
209
|
-
text-align: left;
|
|
210
|
-
display: block;
|
|
211
|
-
flex-direction: column;
|
|
212
|
-
justify-content: flex-start;
|
|
213
|
-
align-items: stretch;
|
|
214
|
-
|
|
215
|
-
&.checkbox,
|
|
216
|
-
&.radio,
|
|
217
|
-
&.toggle {
|
|
218
|
-
display: flex;
|
|
219
|
-
|
|
220
|
-
&:not(.stacked) {
|
|
221
|
-
flex-direction: row;
|
|
222
|
-
align-items: center;
|
|
223
|
-
|
|
224
|
-
& .form__label {
|
|
225
|
-
padding: 0;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
&.stacked {
|
|
230
|
-
& .form__label {
|
|
231
|
-
order: -1;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.form__span {
|
|
238
|
-
--input-background: color-mix(in oklab, var(--body-color), #fff 85%);
|
|
239
|
-
--input-hover-background: color-mix(in oklab, var(--body-color), #fff 85%);
|
|
240
|
-
--input-focus-background: color-mix(in oklab, var(--body-color), #fff 85%);
|
|
241
|
-
--input-active-background: color-mix(in oklab, var(--body-color), #fff 85%);
|
|
242
|
-
--input-disabled-background: color-mix(in oklab, var(--body-color), #fff 85%);
|
|
243
|
-
--input-border-color: var(--border-color-main);
|
|
244
|
-
--input-hover-border-color: var(--border-color-main);
|
|
245
|
-
--input-focus-border-color: var(--border-color-main);
|
|
246
|
-
--input-active-border-color: var(--border-color-main);
|
|
247
|
-
--input-box-shadow: none;
|
|
248
|
-
--input-hover-box-shadow: none;
|
|
249
|
-
--input-focus-box-shadow: none;
|
|
250
|
-
--input-active-box-shadow: none;
|
|
251
|
-
--input-disabled-box-shadow: none;
|
|
252
|
-
|
|
253
|
-
align-items: center;
|
|
254
|
-
display: inline-flex;
|
|
255
|
-
vertical-align: top;
|
|
256
|
-
justify-content: center;
|
|
257
|
-
text-align: center;
|
|
258
|
-
white-space: nowrap;
|
|
259
|
-
outline: 0;
|
|
260
|
-
text-decoration: none;
|
|
261
|
-
}
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "./../helpers" as *;
|
|
3
|
+
@use "./../variables" as *;
|
|
4
|
+
@use "./../functions" as *;
|
|
5
|
+
@use "./../mixins/breakpoints" as *;
|
|
6
|
+
|
|
7
|
+
::placeholder {
|
|
8
|
+
color: var(--gray-3);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.form--field {
|
|
12
|
+
margin-bottom: var(--spacer);
|
|
13
|
+
|
|
14
|
+
& .small,
|
|
15
|
+
& small {
|
|
16
|
+
color: $medium;
|
|
17
|
+
display: block;
|
|
18
|
+
margin-top: calc(var(--spacer) * 0.25);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
%input {
|
|
23
|
+
--input-color: var(--body-color);
|
|
24
|
+
--input-hover-color: var(--body-color);
|
|
25
|
+
--input-focus-color: var(--body-color);
|
|
26
|
+
--input-active-color: var(--body-color);
|
|
27
|
+
--input-disabled-color: hsl(from var(--body-color) h s l / #{$color-disabled-alpha});
|
|
28
|
+
--input-border-color: var(--border-color-main);
|
|
29
|
+
--input-hover-border-color: var(--border-color-hover-main);
|
|
30
|
+
--input-focus-border-color: var(--border-color-focus-main);
|
|
31
|
+
--input-active-border-color: var(--border-color-active-main);
|
|
32
|
+
--input-disabled-border-color: var(--border-color-disabled-main);
|
|
33
|
+
--input-background: var(--white);
|
|
34
|
+
--input-hover-background: var(--white);
|
|
35
|
+
--input-focus-background: var(--white);
|
|
36
|
+
--input-active-background: var(--white);
|
|
37
|
+
--input-disabled-background: hsl(from var(--body-color) h s l / 5%);
|
|
38
|
+
--input-detail-background: var(--primary);
|
|
39
|
+
--input-disabled-detail-background: hsl(from var(--primary) h s l / #{$color-disabled-alpha});
|
|
40
|
+
--input-box-shadow: 0 0 0 0.125em transparent;
|
|
41
|
+
--input-hover-box-shadow: 0 0 0 0.125em transparent;
|
|
42
|
+
--input-focus-box-shadow: 0 0 0 0.125em hsl(from var(--body-color) h s l / 20%);
|
|
43
|
+
--input-active-box-shadow: 0 0 0 0.125em hsl(from var(--body-color) h s l / 20%);
|
|
44
|
+
--input-disabled-box-shadow: 0 0 0 0.125em transparent;
|
|
45
|
+
|
|
46
|
+
// Static
|
|
47
|
+
--input-padding-x: #{$input-padding-x};
|
|
48
|
+
--input-padding-y: #{$input-padding-y};
|
|
49
|
+
--input-small-padding-x: #{$input-small-padding-x};
|
|
50
|
+
--input-small-padding-y: #{$input-small-padding-y};
|
|
51
|
+
--input-large-padding-x: #{$input-large-padding-x};
|
|
52
|
+
--input-large-padding-y: #{$input-large-padding-y};
|
|
53
|
+
--input-border-width: 1px;
|
|
54
|
+
--input-border-style: solid;
|
|
55
|
+
--input-border-radius: #{$input-border-radius};
|
|
56
|
+
--input-small-border-radius: #{$input-small-border-radius};
|
|
57
|
+
--input-large-border-radius: #{$input-large-border-radius};
|
|
58
|
+
--input-round-border-radius: #{$input-round-border-radius};
|
|
59
|
+
--input-font-weight: #{$input-font-weight};
|
|
60
|
+
--input-line-height: #{$input-line-height};
|
|
61
|
+
--input-white-space: #{$input-white-space};
|
|
62
|
+
--input-width: 100%;
|
|
63
|
+
--input-height: auto;
|
|
64
|
+
--input-desktop-width: 100%;
|
|
65
|
+
--input-desktop-height: auto;
|
|
66
|
+
|
|
67
|
+
color: var(--input-color);
|
|
68
|
+
border-width: var(--input-border-width);
|
|
69
|
+
border-style: var(--input-border-style);
|
|
70
|
+
border-color: var(--input-border-color);
|
|
71
|
+
background: var(--input-background);
|
|
72
|
+
box-shadow: var(--input-box-shadow);
|
|
73
|
+
padding: var(--input-padding-y) var(--input-padding-x);
|
|
74
|
+
border-radius: var(--input-border-radius);
|
|
75
|
+
font-weight: var(--input-font-weight);
|
|
76
|
+
line-height: var(--input-line-height);
|
|
77
|
+
white-space: var(--input-white-space);
|
|
78
|
+
width: var(--input-width);
|
|
79
|
+
height: var(--input-height);
|
|
80
|
+
display: block;
|
|
81
|
+
appearance: none;
|
|
82
|
+
transition: $form-transition;
|
|
83
|
+
position: relative;
|
|
84
|
+
|
|
85
|
+
@include rfs($input-font-size, --input-font-size);
|
|
86
|
+
|
|
87
|
+
@include font-size(var(--input-font-size));
|
|
88
|
+
|
|
89
|
+
@include media-breakpoint-up("desktop") {
|
|
90
|
+
height: var(--input-desktop-height);
|
|
91
|
+
width: var(--input-desktop-width);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&:hover {
|
|
95
|
+
color: var(--input-hover-color);
|
|
96
|
+
border-color: var(--input-hover-border-color);
|
|
97
|
+
background: var(--input-hover-background);
|
|
98
|
+
box-shadow: var(--input-hover-box-shadow);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&:focus {
|
|
102
|
+
color: var(--input-focus-color);
|
|
103
|
+
border-color: var(--input-focus-border-color);
|
|
104
|
+
background: var(--input-focus-background);
|
|
105
|
+
box-shadow: var(--input-focus-box-shadow);
|
|
106
|
+
outline: 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&:active {
|
|
110
|
+
color: var(--input-active-color);
|
|
111
|
+
border-color: var(--input-active-border-color);
|
|
112
|
+
background: var(--input-active-background);
|
|
113
|
+
box-shadow: var(--input-active-box-shadow);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&:disabled,
|
|
117
|
+
&.disabled,
|
|
118
|
+
fieldset:disabled & {
|
|
119
|
+
color: var(--input-disabled-color);
|
|
120
|
+
border-color: var(--input-disabled-border-color);
|
|
121
|
+
background: var(--input-disabled-background);
|
|
122
|
+
box-shadow: var(--input-disabled-box-shadow);
|
|
123
|
+
opacity: 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&[readonly] {
|
|
127
|
+
background: var(--input-disabled-background);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&.input--rounded {
|
|
131
|
+
border-radius: var(--input-round-border-radius);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&.input--small {
|
|
135
|
+
padding: var(--input-small-padding-y) var(--input-small-padding-x);
|
|
136
|
+
|
|
137
|
+
@include rfs($input-small-font-size, --input-font-size);
|
|
138
|
+
|
|
139
|
+
@include font-size(var(--input-font-size));
|
|
140
|
+
|
|
141
|
+
&:not(.input--rounded) {
|
|
142
|
+
border-radius: var(--input-small-border-radius);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&.input--large {
|
|
147
|
+
padding: var(--input-large-padding-y) var(--input-large-padding-x);
|
|
148
|
+
|
|
149
|
+
@include rfs($input-large-font-size, --input-font-size);
|
|
150
|
+
|
|
151
|
+
@include font-size(var(--input-font-size));
|
|
152
|
+
|
|
153
|
+
&:not(.input--rounded) {
|
|
154
|
+
border-radius: var(--input-large-border-radius);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@each $key, $value in $all-colors {
|
|
159
|
+
&.input--#{$key} {
|
|
160
|
+
--input-color: var(--#{$key});
|
|
161
|
+
--input-hover-color: var(--#{$key});
|
|
162
|
+
--input-focus-color: var(--#{$key});
|
|
163
|
+
--input-active-color: var(--#{$key});
|
|
164
|
+
--input-disabled-color: hsl(from var(--#{$key}) h s l / #{$color-disabled-alpha});
|
|
165
|
+
--input-border-color: var(--#{$key});
|
|
166
|
+
--input-hover-border-color: hsl(color-mix(in oklab, var(--#{$key}), #000 #{$border-shade-percentage}));
|
|
167
|
+
--input-focus-border-color: hsl(color-mix(in oklab, var(--#{$key}), #000 #{$border-shade-percentage}));
|
|
168
|
+
--input-active-border-color: hsl(color-mix(in oklab, var(--#{$key}), #000 #{$border-shade-percentage}));
|
|
169
|
+
--input-disabled-border-color: hsl(from var(--#{$key}) h s l / #{$color-disabled-alpha});
|
|
170
|
+
--input-background: var(--white);
|
|
171
|
+
--input-hover-background: var(--white);
|
|
172
|
+
--input-focus-background: var(--white);
|
|
173
|
+
--input-active-background: var(--white);
|
|
174
|
+
--input-disabled-background: hsl(from var(--#{$key}) h s l / 5%);
|
|
175
|
+
--input-box-shadow: 0 0 0 0.125em transparent;
|
|
176
|
+
--input-hover-box-shadow: 0 0 0 0.125em transparent;
|
|
177
|
+
--input-focus-box-shadow: 0 0 0 0.125em hsl(from var(--#{$key}) h s l / 20%);
|
|
178
|
+
--input-active-box-shadow: 0 0 0 0.125em hsl(from var(--#{$key}) h s l / 20%);
|
|
179
|
+
--input-disabled-box-shadow: 0 0 0 0.125em transparent;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
input,
|
|
185
|
+
textarea,
|
|
186
|
+
output,
|
|
187
|
+
select,
|
|
188
|
+
progress,
|
|
189
|
+
.form__span,
|
|
190
|
+
.form__input {
|
|
191
|
+
@extend %input;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.form__label {
|
|
195
|
+
display: $label-display;
|
|
196
|
+
padding: $label-padding;
|
|
197
|
+
margin: $label-margin;
|
|
198
|
+
font-weight: $label-font-weight;
|
|
199
|
+
text-transform: $label-text-transform;
|
|
200
|
+
font-size: $label-font-size;
|
|
201
|
+
color: $label-color;
|
|
202
|
+
cursor: pointer;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.form__control {
|
|
206
|
+
box-sizing: border-box;
|
|
207
|
+
clear: both;
|
|
208
|
+
position: relative;
|
|
209
|
+
text-align: left;
|
|
210
|
+
display: block;
|
|
211
|
+
flex-direction: column;
|
|
212
|
+
justify-content: flex-start;
|
|
213
|
+
align-items: stretch;
|
|
214
|
+
|
|
215
|
+
&.checkbox,
|
|
216
|
+
&.radio,
|
|
217
|
+
&.toggle {
|
|
218
|
+
display: flex;
|
|
219
|
+
|
|
220
|
+
&:not(.stacked) {
|
|
221
|
+
flex-direction: row;
|
|
222
|
+
align-items: center;
|
|
223
|
+
|
|
224
|
+
& .form__label {
|
|
225
|
+
padding: 0;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
&.stacked {
|
|
230
|
+
& .form__label {
|
|
231
|
+
order: -1;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.form__span {
|
|
238
|
+
--input-background: color-mix(in oklab, var(--body-color), #fff 85%);
|
|
239
|
+
--input-hover-background: color-mix(in oklab, var(--body-color), #fff 85%);
|
|
240
|
+
--input-focus-background: color-mix(in oklab, var(--body-color), #fff 85%);
|
|
241
|
+
--input-active-background: color-mix(in oklab, var(--body-color), #fff 85%);
|
|
242
|
+
--input-disabled-background: color-mix(in oklab, var(--body-color), #fff 85%);
|
|
243
|
+
--input-border-color: var(--border-color-main);
|
|
244
|
+
--input-hover-border-color: var(--border-color-main);
|
|
245
|
+
--input-focus-border-color: var(--border-color-main);
|
|
246
|
+
--input-active-border-color: var(--border-color-main);
|
|
247
|
+
--input-box-shadow: none;
|
|
248
|
+
--input-hover-box-shadow: none;
|
|
249
|
+
--input-focus-box-shadow: none;
|
|
250
|
+
--input-active-box-shadow: none;
|
|
251
|
+
--input-disabled-box-shadow: none;
|
|
252
|
+
|
|
253
|
+
align-items: center;
|
|
254
|
+
display: inline-flex;
|
|
255
|
+
vertical-align: top;
|
|
256
|
+
justify-content: center;
|
|
257
|
+
text-align: center;
|
|
258
|
+
white-space: nowrap;
|
|
259
|
+
outline: 0;
|
|
260
|
+
text-decoration: none;
|
|
261
|
+
}
|
package/sass/modules/_list.scss
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
@use "sass:color";
|
|
2
|
-
@use "./../variables" as *;
|
|
3
|
-
@use "./../functions" as *;
|
|
4
|
-
@use "./../mixins/list" as *;
|
|
5
|
-
|
|
6
|
-
.list--unstyled {
|
|
7
|
-
@include make-list-unstyled;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.list--inline {
|
|
11
|
-
@include make-list-inline;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
dl {
|
|
15
|
-
$dl-margin-fallback: if($enable-margins, var(--spacer), 0);
|
|
16
|
-
|
|
17
|
-
margin-bottom: var(--dl-margin-bottom, #{$dl-margin-fallback});
|
|
18
|
-
|
|
19
|
-
& > *:last-child {
|
|
20
|
-
margin-bottom: 0;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.list--group {
|
|
25
|
-
@include make-list-unstyled;
|
|
26
|
-
|
|
27
|
-
& > li {
|
|
28
|
-
border: 1px solid var(--border-color-main);
|
|
29
|
-
border-bottom-color: transparent;
|
|
30
|
-
padding: calc((var(--spacer) * 0.625) - 1px) var(--spacer);
|
|
31
|
-
position: relative;
|
|
32
|
-
|
|
33
|
-
&:first-child {
|
|
34
|
-
border-top-left-radius: var(--border-radius-medium);
|
|
35
|
-
border-top-right-radius: var(--border-radius-medium);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&:last-child {
|
|
39
|
-
border-bottom: 1px solid var(--border-color-main);
|
|
40
|
-
border-bottom-left-radius: var(--border-radius-medium);
|
|
41
|
-
border-bottom-right-radius: var(--border-radius-medium);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.list--nested {
|
|
47
|
-
@include make-list-unstyled;
|
|
48
|
-
|
|
49
|
-
& > li {
|
|
50
|
-
background-color: var(--white);
|
|
51
|
-
border-radius: var(--border-radius-medium);
|
|
52
|
-
border: 1px solid var(--border-color-main);
|
|
53
|
-
|
|
54
|
-
$li-margin-fallback: if($enable-margins, var(--spacer), 0);
|
|
55
|
-
|
|
56
|
-
margin-bottom: var(--li-margin-bottom, #{$li-margin-fallback});
|
|
57
|
-
|
|
58
|
-
& .list__item {
|
|
59
|
-
padding: calc(calc(var(--spacer) * 0.625) - 1px) var(--spacer);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
& .list--nested {
|
|
63
|
-
margin-bottom: 0;
|
|
64
|
-
|
|
65
|
-
& > li {
|
|
66
|
-
border-radius: 0;
|
|
67
|
-
border: 0 none;
|
|
68
|
-
margin-bottom: 0;
|
|
69
|
-
background-image: escape-svg($list-nested-indicator);
|
|
70
|
-
background-size: var(--spacer) auto;
|
|
71
|
-
background-repeat: no-repeat;
|
|
72
|
-
background-position: left calc(var(--spacer) * 0.5) top var(--spacer);
|
|
73
|
-
padding-left: calc(var(--spacer) * 1.5);
|
|
74
|
-
border-top: 1px solid var(--border-color-main);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "./../variables" as *;
|
|
3
|
+
@use "./../functions" as *;
|
|
4
|
+
@use "./../mixins/list" as *;
|
|
5
|
+
|
|
6
|
+
.list--unstyled {
|
|
7
|
+
@include make-list-unstyled;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.list--inline {
|
|
11
|
+
@include make-list-inline;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
dl {
|
|
15
|
+
$dl-margin-fallback: if($enable-margins, var(--spacer), 0);
|
|
16
|
+
|
|
17
|
+
margin-bottom: var(--dl-margin-bottom, #{$dl-margin-fallback});
|
|
18
|
+
|
|
19
|
+
& > *:last-child {
|
|
20
|
+
margin-bottom: 0;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.list--group {
|
|
25
|
+
@include make-list-unstyled;
|
|
26
|
+
|
|
27
|
+
& > li {
|
|
28
|
+
border: 1px solid var(--border-color-main);
|
|
29
|
+
border-bottom-color: transparent;
|
|
30
|
+
padding: calc((var(--spacer) * 0.625) - 1px) var(--spacer);
|
|
31
|
+
position: relative;
|
|
32
|
+
|
|
33
|
+
&:first-child {
|
|
34
|
+
border-top-left-radius: var(--border-radius-medium);
|
|
35
|
+
border-top-right-radius: var(--border-radius-medium);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:last-child {
|
|
39
|
+
border-bottom: 1px solid var(--border-color-main);
|
|
40
|
+
border-bottom-left-radius: var(--border-radius-medium);
|
|
41
|
+
border-bottom-right-radius: var(--border-radius-medium);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.list--nested {
|
|
47
|
+
@include make-list-unstyled;
|
|
48
|
+
|
|
49
|
+
& > li {
|
|
50
|
+
background-color: var(--white);
|
|
51
|
+
border-radius: var(--border-radius-medium);
|
|
52
|
+
border: 1px solid var(--border-color-main);
|
|
53
|
+
|
|
54
|
+
$li-margin-fallback: if($enable-margins, var(--spacer), 0);
|
|
55
|
+
|
|
56
|
+
margin-bottom: var(--li-margin-bottom, #{$li-margin-fallback});
|
|
57
|
+
|
|
58
|
+
& .list__item {
|
|
59
|
+
padding: calc(calc(var(--spacer) * 0.625) - 1px) var(--spacer);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
& .list--nested {
|
|
63
|
+
margin-bottom: 0;
|
|
64
|
+
|
|
65
|
+
& > li {
|
|
66
|
+
border-radius: 0;
|
|
67
|
+
border: 0 none;
|
|
68
|
+
margin-bottom: 0;
|
|
69
|
+
background-image: escape-svg($list-nested-indicator);
|
|
70
|
+
background-size: var(--spacer) auto;
|
|
71
|
+
background-repeat: no-repeat;
|
|
72
|
+
background-position: left calc(var(--spacer) * 0.5) top var(--spacer);
|
|
73
|
+
padding-left: calc(var(--spacer) * 1.5);
|
|
74
|
+
border-top: 1px solid var(--border-color-main);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|