pico-rails 1.4.4 → 1.5.3
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.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/{scss → pico/scss}/_variables.scss +0 -0
- data/app/assets/stylesheets/{scss → pico/scss}/components/_accordion.scss +38 -12
- data/app/assets/stylesheets/{scss → pico/scss}/components/_card.scss +4 -1
- data/app/assets/stylesheets/pico/scss/components/_dropdown.scss +208 -0
- data/app/assets/stylesheets/{scss → pico/scss}/components/_modal.scss +12 -14
- data/app/assets/stylesheets/pico/scss/components/_nav.scss +97 -0
- data/app/assets/stylesheets/{scss → pico/scss}/components/_progress.scss +10 -2
- data/app/assets/stylesheets/{scss → pico/scss}/content/_button.scss +24 -68
- data/app/assets/stylesheets/{scss → pico/scss}/content/_code.scss +3 -3
- data/app/assets/stylesheets/{scss → pico/scss}/content/_embedded.scss +4 -9
- data/app/assets/stylesheets/{scss → pico/scss}/content/_form-alt-input-types.scss +42 -24
- data/app/assets/stylesheets/{scss → pico/scss}/content/_form-checkbox-radio.scss +0 -0
- data/app/assets/stylesheets/{scss → pico/scss}/content/_form.scss +27 -40
- data/app/assets/stylesheets/{scss → pico/scss}/content/_miscs.scss +8 -8
- data/app/assets/stylesheets/{scss → pico/scss}/content/_table.scss +5 -7
- data/app/assets/stylesheets/{scss → pico/scss}/content/_typography.scss +18 -46
- data/app/assets/stylesheets/{scss → pico/scss}/layout/_container.scss +0 -0
- data/app/assets/stylesheets/{scss → pico/scss}/layout/_document.scss +18 -15
- data/app/assets/stylesheets/{scss → pico/scss}/layout/_grid.scss +0 -0
- data/app/assets/stylesheets/{scss → pico/scss}/layout/_scroller.scss +0 -0
- data/app/assets/stylesheets/{scss → pico/scss}/layout/_section.scss +0 -0
- data/app/assets/stylesheets/{scss → pico/scss}/layout/_sectioning.scss +3 -2
- data/app/assets/stylesheets/{scss → pico/scss}/themes/default/_colors.scss +0 -0
- data/app/assets/stylesheets/{scss → pico/scss}/themes/default/_dark.scss +21 -4
- data/app/assets/stylesheets/{scss → pico/scss}/themes/default/_light.scss +21 -4
- data/app/assets/stylesheets/{scss → pico/scss}/themes/default/_styles.scss +6 -0
- data/app/assets/stylesheets/{scss → pico/scss}/themes/default.scss +0 -0
- data/app/assets/stylesheets/{scss → pico/scss}/utilities/_accessibility.scss +1 -3
- data/app/assets/stylesheets/{scss → pico/scss}/utilities/_loading.scss +1 -1
- data/app/assets/stylesheets/{scss → pico/scss}/utilities/_reduce-motion.scss +2 -4
- data/app/assets/stylesheets/{scss → pico/scss}/utilities/_tooltip.scss +1 -1
- data/app/assets/stylesheets/pico.scss +28 -28
- data/app/assets/stylesheets/pico.slim.scss +17 -17
- data/lib/pico/version.rb +1 -1
- metadata +33 -32
- data/app/assets/stylesheets/scss/components/_nav.scss +0 -73
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
// Reboot based on :
|
6
6
|
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
|
7
|
-
// - sanitize.css
|
7
|
+
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
|
8
8
|
// ––––––––––––––––––––
|
9
9
|
|
10
10
|
// 1. Change the font styles in all browsers
|
11
|
-
// 2. Remove the margin
|
11
|
+
// 2. Remove the margin on controls in Safari
|
12
12
|
// 3. Show the overflow in Edge
|
13
13
|
button {
|
14
14
|
margin: 0; // 2
|
@@ -17,7 +17,7 @@ button {
|
|
17
17
|
text-transform: none; // 1
|
18
18
|
}
|
19
19
|
|
20
|
-
// Correct the inability to style
|
20
|
+
// Correct the inability to style buttons in iOS and Safari
|
21
21
|
button,
|
22
22
|
[type="button"],
|
23
23
|
[type="reset"],
|
@@ -25,15 +25,6 @@ button,
|
|
25
25
|
-webkit-appearance: button;
|
26
26
|
}
|
27
27
|
|
28
|
-
// Remove the inner border and padding in Firefox
|
29
|
-
button::-moz-focus-inner,
|
30
|
-
[type="button"]::-moz-focus-inner,
|
31
|
-
[type="reset"]::-moz-focus-inner,
|
32
|
-
[type="submit"]::-moz-focus-inner {
|
33
|
-
padding: 0;
|
34
|
-
border-style: none;
|
35
|
-
}
|
36
|
-
|
37
28
|
// Pico
|
38
29
|
// ––––––––––––––––––––
|
39
30
|
|
@@ -77,9 +68,7 @@ input[type="reset"],
|
|
77
68
|
box-shadow var(--transition);
|
78
69
|
}
|
79
70
|
|
80
|
-
&:hover,
|
81
|
-
&:active,
|
82
|
-
&:focus {
|
71
|
+
&:is([aria-current], :hover, :active, :focus) {
|
83
72
|
--background-color: var(--primary-hover);
|
84
73
|
--border-color: var(--primary-hover);
|
85
74
|
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
|
@@ -96,19 +85,14 @@ input[type="reset"],
|
|
96
85
|
@if $enable-classes {
|
97
86
|
|
98
87
|
// Secondary
|
99
|
-
button.secondary,
|
100
|
-
input[type="
|
101
|
-
input[type="button"].secondary,
|
102
|
-
input[type="reset"],
|
103
|
-
[role="button"].secondary {
|
88
|
+
:is(button, input[type="submit"], input[type="button"], [role="button"]).secondary,
|
89
|
+
input[type="reset"] {
|
104
90
|
--background-color: var(--secondary);
|
105
91
|
--border-color: var(--secondary);
|
106
92
|
--color: var(--secondary-inverse);
|
107
93
|
cursor: pointer;
|
108
94
|
|
109
|
-
&:hover,
|
110
|
-
&:active,
|
111
|
-
&:focus {
|
95
|
+
&:is([aria-current], :hover, :active, :focus) {
|
112
96
|
--background-color: var(--secondary-hover);
|
113
97
|
--border-color: var(--secondary-hover);
|
114
98
|
--color: var(--secondary-inverse);
|
@@ -121,18 +105,12 @@ input[type="reset"],
|
|
121
105
|
}
|
122
106
|
|
123
107
|
// Contrast
|
124
|
-
button.contrast
|
125
|
-
input[type="submit"].contrast,
|
126
|
-
input[type="button"].contrast,
|
127
|
-
input[type="reset"].contrast,
|
128
|
-
[role="button"].contrast {
|
108
|
+
:is(button, input[type="submit"], input[type="button"], [role="button"]).contrast {
|
129
109
|
--background-color: var(--contrast);
|
130
110
|
--border-color: var(--contrast);
|
131
111
|
--color: var(--contrast-inverse);
|
132
112
|
|
133
|
-
&:hover,
|
134
|
-
&:active,
|
135
|
-
&:focus {
|
113
|
+
&:is([aria-current], :hover, :active, :focus) {
|
136
114
|
--background-color: var(--contrast-hover);
|
137
115
|
--border-color: var(--contrast-hover);
|
138
116
|
--color: var(--contrast-inverse);
|
@@ -145,53 +123,36 @@ input[type="reset"],
|
|
145
123
|
}
|
146
124
|
|
147
125
|
// Outline (primary)
|
148
|
-
button.outline,
|
149
|
-
input[type="
|
150
|
-
input[type="button"].outline,
|
151
|
-
input[type="reset"].outline,
|
152
|
-
[role="button"].outline {
|
126
|
+
:is(button, input[type="submit"], input[type="button"], [role="button"]).outline,
|
127
|
+
input[type="reset"].outline {
|
153
128
|
--background-color: transparent;
|
154
129
|
--color: var(--primary);
|
155
130
|
|
156
|
-
&:hover,
|
157
|
-
&:active,
|
158
|
-
&:focus {
|
131
|
+
&:is([aria-current], :hover, :active, :focus) {
|
159
132
|
--background-color: transparent;
|
160
133
|
--color: var(--primary-hover);
|
161
134
|
}
|
162
135
|
}
|
163
136
|
|
164
137
|
// Outline (secondary)
|
165
|
-
button.outline.secondary,
|
166
|
-
input[type="
|
167
|
-
input[type="button"].outline.secondary,
|
168
|
-
input[type="reset"].outline.secondary,
|
169
|
-
[role="button"].outline.secondary {
|
138
|
+
:is(button, input[type="submit"], input[type="button"], [role="button"]).outline.secondary,
|
139
|
+
input[type="reset"].outline {
|
170
140
|
--color: var(--secondary);
|
171
141
|
|
172
|
-
&:hover,
|
173
|
-
&:active,
|
174
|
-
&:focus {
|
142
|
+
&:is([aria-current], :hover, :active, :focus) {
|
175
143
|
--color: var(--secondary-hover);
|
176
144
|
}
|
177
145
|
}
|
178
146
|
|
179
147
|
// Outline (contrast)
|
180
|
-
button.outline.contrast
|
181
|
-
input[type="submit"].outline.contrast,
|
182
|
-
input[type="button"].outline.contrast,
|
183
|
-
input[type="reset"].outline.contrast,
|
184
|
-
[role="button"].outline.contrast {
|
148
|
+
:is(button, input[type="submit"], input[type="button"], [role="button"]).outline.contrast {
|
185
149
|
--color: var(--contrast);
|
186
150
|
|
187
|
-
&:hover,
|
188
|
-
&:active,
|
189
|
-
&:focus {
|
151
|
+
&:is([aria-current], :hover, :active, :focus) {
|
190
152
|
--color: var(--contrast-hover);
|
191
153
|
}
|
192
154
|
}
|
193
|
-
}
|
194
|
-
|
155
|
+
}
|
195
156
|
@else {
|
196
157
|
// Secondary button without .class
|
197
158
|
input[type="reset"] {
|
@@ -200,9 +161,7 @@ input[type="reset"],
|
|
200
161
|
--color: var(--secondary-inverse);
|
201
162
|
cursor: pointer;
|
202
163
|
|
203
|
-
&:hover,
|
204
|
-
&:active,
|
205
|
-
&:focus {
|
164
|
+
&:is([aria-current], :hover, :active, :focus) {
|
206
165
|
--background-color: var(--secondary-hover);
|
207
166
|
--border-color: var(--secondary-hover);
|
208
167
|
}
|
@@ -215,13 +174,10 @@ input[type="reset"],
|
|
215
174
|
}
|
216
175
|
|
217
176
|
// Button [disabled]
|
218
|
-
//
|
219
|
-
button[disabled],
|
220
|
-
|
221
|
-
|
222
|
-
input[type="reset"][disabled],
|
223
|
-
a[role="button"]:not([href]), // 1
|
224
|
-
[role="button"][disabled] {
|
177
|
+
// Links without href are disabled by default
|
178
|
+
:where(button, [type="submit"], [type="button"], [type="reset"], [role="button"])[disabled],
|
179
|
+
:where(fieldset[disabled]) :is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]),
|
180
|
+
a[role="button"]:not([href]) {
|
225
181
|
opacity: 0.5;
|
226
182
|
pointer-events: none;
|
227
|
-
}
|
183
|
+
}
|
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
// Reboot based on :
|
6
6
|
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
|
7
|
-
// - sanitize.css
|
7
|
+
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
|
8
8
|
// ––––––––––––––––––––
|
9
9
|
|
10
10
|
// 1. Correct the inheritance and scaling of font size in all browsers
|
11
|
-
// 2. Correct the font sizing in all browsers
|
11
|
+
// 2. Correct the odd `em` font sizing in all browsers
|
12
12
|
pre,
|
13
13
|
code,
|
14
14
|
kbd,
|
@@ -50,7 +50,7 @@ pre {
|
|
50
50
|
> code {
|
51
51
|
display: block;
|
52
52
|
padding: var(--spacing);
|
53
|
-
background:
|
53
|
+
background: none;
|
54
54
|
font-size: 14px;
|
55
55
|
line-height: var(--line-height);
|
56
56
|
}
|
@@ -4,16 +4,11 @@
|
|
4
4
|
|
5
5
|
// Reboot based on :
|
6
6
|
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
|
7
|
-
// - sanitize.css
|
7
|
+
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
|
8
8
|
// ––––––––––––––––––––
|
9
9
|
|
10
10
|
// Change the alignment on media elements in all browsers (opinionated)
|
11
|
-
audio,
|
12
|
-
canvas,
|
13
|
-
iframe,
|
14
|
-
img,
|
15
|
-
svg,
|
16
|
-
video {
|
11
|
+
:where(audio, canvas, iframe, img, svg, video) {
|
17
12
|
vertical-align: middle;
|
18
13
|
}
|
19
14
|
|
@@ -30,7 +25,7 @@ audio:not([controls]) {
|
|
30
25
|
}
|
31
26
|
|
32
27
|
// Remove the border on iframes in all browsers (opinionated)
|
33
|
-
iframe {
|
28
|
+
:where(iframe) {
|
34
29
|
border-style: none;
|
35
30
|
}
|
36
31
|
|
@@ -43,7 +38,7 @@ img {
|
|
43
38
|
}
|
44
39
|
|
45
40
|
// Change the fill color to match the text color in all browsers (opinionated)
|
46
|
-
svg:not([fill]) {
|
41
|
+
:where(svg:not([fill])) {
|
47
42
|
fill: currentColor;
|
48
43
|
}
|
49
44
|
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
// Swatch
|
22
22
|
@mixin color-swatch {
|
23
|
-
border:
|
23
|
+
border: 0;
|
24
24
|
border-radius: calc(var(--border-radius) * 0.5);
|
25
25
|
}
|
26
26
|
|
@@ -35,7 +35,7 @@
|
|
35
35
|
|
36
36
|
// Date & Time
|
37
37
|
// :not() are needed to add Specificity and avoid !important on padding
|
38
|
-
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]) {
|
38
|
+
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]) {
|
39
39
|
&[type="date"],
|
40
40
|
&[type="datetime-local"],
|
41
41
|
&[type="month"],
|
@@ -70,31 +70,19 @@ input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])
|
|
70
70
|
}
|
71
71
|
}
|
72
72
|
|
73
|
-
[dir="rtl"]
|
74
|
-
[type="date"],
|
75
|
-
|
76
|
-
[type="month"],
|
77
|
-
[type="time"],
|
78
|
-
[type="week"] {
|
79
|
-
text-align: right;
|
80
|
-
}
|
73
|
+
[dir="rtl"]
|
74
|
+
:is([type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"]) {
|
75
|
+
text-align: right;
|
81
76
|
}
|
82
77
|
|
83
78
|
// File
|
84
79
|
[type="file"] {
|
85
80
|
--color: var(--muted-color);
|
86
81
|
padding: calc(var(--form-element-spacing-vertical) * 0.5) 0;
|
87
|
-
border:
|
82
|
+
border: 0;
|
88
83
|
border-radius: 0;
|
89
84
|
background: none;
|
90
85
|
|
91
|
-
&:hover,
|
92
|
-
&:active,
|
93
|
-
&:focus {
|
94
|
-
border: none;
|
95
|
-
background: none;
|
96
|
-
}
|
97
|
-
|
98
86
|
@mixin file-selector-button {
|
99
87
|
--background-color: var(--secondary);
|
100
88
|
--border-color: var(--secondary);
|
@@ -123,9 +111,7 @@ input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])
|
|
123
111
|
box-shadow var(--transition);
|
124
112
|
}
|
125
113
|
|
126
|
-
&:hover,
|
127
|
-
&:active,
|
128
|
-
&:focus {
|
114
|
+
&:is(:hover, :active, :focus) {
|
129
115
|
--background-color: var(--secondary-hover);
|
130
116
|
--border-color: var(--secondary-hover);
|
131
117
|
}
|
@@ -157,7 +143,7 @@ input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])
|
|
157
143
|
appearance: none;
|
158
144
|
width: 100%;
|
159
145
|
height: $height-thumb;
|
160
|
-
background:
|
146
|
+
background: none;
|
161
147
|
|
162
148
|
// Slider Track
|
163
149
|
@mixin slider-track {
|
@@ -238,14 +224,32 @@ input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])
|
|
238
224
|
|
239
225
|
// Search
|
240
226
|
// :not() are needed to add Specificity and avoid !important on padding
|
241
|
-
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]) {
|
227
|
+
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]) {
|
242
228
|
&[type="search"] {
|
243
|
-
padding-
|
229
|
+
padding-inline-start: calc(var(--form-element-spacing-horizontal) + 1.75rem);
|
244
230
|
border-radius: 5rem;
|
245
231
|
background-image: var(--icon-search);
|
246
232
|
background-position: center left 1.125rem;
|
247
233
|
background-size: 1rem auto;
|
248
234
|
background-repeat: no-repeat;
|
235
|
+
|
236
|
+
&[aria-invalid] {
|
237
|
+
@if $enable-important {
|
238
|
+
padding-inline-start: calc(var(--form-element-spacing-horizontal) + 1.75rem) !important;
|
239
|
+
}
|
240
|
+
@else {
|
241
|
+
padding-inline-start: calc(var(--form-element-spacing-horizontal) + 1.75rem);
|
242
|
+
}
|
243
|
+
background-position: center left 1.125rem, center right 0.75rem;
|
244
|
+
}
|
245
|
+
|
246
|
+
&[aria-invalid="false"] {
|
247
|
+
background-image: var(--icon-search), var(--icon-valid);
|
248
|
+
}
|
249
|
+
|
250
|
+
&[aria-invalid="true"] {
|
251
|
+
background-image: var(--icon-search), var(--icon-invalid);
|
252
|
+
}
|
249
253
|
}
|
250
254
|
}
|
251
255
|
|
@@ -256,3 +260,17 @@ input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])
|
|
256
260
|
display: none;
|
257
261
|
}
|
258
262
|
}
|
263
|
+
|
264
|
+
[dir="rtl"] {
|
265
|
+
:where(input) {
|
266
|
+
&:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]) {
|
267
|
+
&[type="search"] {
|
268
|
+
background-position: center right 1.125rem;
|
269
|
+
|
270
|
+
&[aria-invalid] {
|
271
|
+
background-position: center right 1.125rem, center left 0.75rem;
|
272
|
+
}
|
273
|
+
}
|
274
|
+
}
|
275
|
+
}
|
276
|
+
}
|
File without changes
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
// Reboot based on :
|
6
6
|
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
|
7
|
-
// - sanitize.css
|
7
|
+
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
|
8
8
|
// ––––––––––––––––––––
|
9
9
|
|
10
10
|
// 1. Change the font styles in all browsers
|
@@ -146,7 +146,6 @@ textarea {
|
|
146
146
|
appearance: none;
|
147
147
|
padding: var(--form-element-spacing-vertical)
|
148
148
|
var(--form-element-spacing-horizontal);
|
149
|
-
vertical-align: middle;
|
150
149
|
}
|
151
150
|
|
152
151
|
// Commons styles
|
@@ -174,20 +173,16 @@ textarea {
|
|
174
173
|
|
175
174
|
// Active & Focus
|
176
175
|
input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([readonly]),
|
177
|
-
select,
|
178
|
-
|
179
|
-
&:active,
|
180
|
-
&:focus {
|
176
|
+
:where(select, textarea) {
|
177
|
+
&:is(:active, :focus) {
|
181
178
|
--background-color: var(--form-element-active-background-color);
|
182
179
|
}
|
183
180
|
}
|
184
181
|
|
185
182
|
// Active & Focus
|
186
183
|
input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([role="switch"]):not([readonly]),
|
187
|
-
select,
|
188
|
-
|
189
|
-
&:active,
|
190
|
-
&:focus {
|
184
|
+
:where(select, textarea) {
|
185
|
+
&:is(:active, :focus) {
|
191
186
|
--border-color: var(--form-element-active-border-color);
|
192
187
|
}
|
193
188
|
}
|
@@ -202,21 +197,18 @@ textarea {
|
|
202
197
|
}
|
203
198
|
|
204
199
|
// Disabled
|
205
|
-
input:not([type="submit"]):not([type="button"]):not([type="reset"]),
|
206
|
-
select,
|
207
|
-
textarea
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
200
|
+
input:not([type="submit"]):not([type="button"]):not([type="reset"])[disabled],
|
201
|
+
select[disabled],
|
202
|
+
textarea[disabled],
|
203
|
+
:where(fieldset[disabled]) :is(input:not([type="submit"]):not([type="button"]):not([type="reset"]), select, textarea) {
|
204
|
+
--background-color: var(--form-element-disabled-background-color);
|
205
|
+
--border-color: var(--form-element-disabled-border-color);
|
206
|
+
opacity: var(--form-element-disabled-opacity);
|
207
|
+
pointer-events: none;
|
213
208
|
}
|
214
209
|
|
215
210
|
// Aria-invalid
|
216
|
-
input,
|
217
|
-
select,
|
218
|
-
textarea {
|
219
|
-
|
211
|
+
:where(input, select, textarea) {
|
220
212
|
&:not([type="checkbox"]):not([type="radio"]) {
|
221
213
|
&[aria-invalid] {
|
222
214
|
@if $enable-important {
|
@@ -228,7 +220,8 @@ textarea {
|
|
228
220
|
padding-inline-end: calc(
|
229
221
|
var(--form-element-spacing-horizontal) + 1.5rem
|
230
222
|
) !important;
|
231
|
-
}
|
223
|
+
}
|
224
|
+
@else {
|
232
225
|
padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem);
|
233
226
|
padding-left: var(--form-element-spacing-horizontal);
|
234
227
|
padding-inline-start: var(--form-element-spacing-horizontal);
|
@@ -242,7 +235,7 @@ textarea {
|
|
242
235
|
&[aria-invalid="false"] {
|
243
236
|
background-image: var(--icon-valid);
|
244
237
|
}
|
245
|
-
|
238
|
+
|
246
239
|
&[aria-invalid="true"] {
|
247
240
|
background-image: var(--icon-invalid);
|
248
241
|
}
|
@@ -251,12 +244,12 @@ textarea {
|
|
251
244
|
&[aria-invalid="false"] {
|
252
245
|
--border-color: var(--form-element-valid-border-color);
|
253
246
|
|
254
|
-
&:active,
|
255
|
-
&:focus {
|
247
|
+
&:is(:active, :focus) {
|
256
248
|
@if $enable-important {
|
257
249
|
--border-color: var(--form-element-valid-active-border-color) !important;
|
258
250
|
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-valid-focus-color) !important;
|
259
|
-
}
|
251
|
+
}
|
252
|
+
@else {
|
260
253
|
--border-color: var(--form-element-valid-active-border-color);
|
261
254
|
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-valid-focus-color);
|
262
255
|
}
|
@@ -265,13 +258,13 @@ textarea {
|
|
265
258
|
|
266
259
|
&[aria-invalid="true"] {
|
267
260
|
--border-color: var(--form-element-invalid-border-color);
|
268
|
-
|
269
|
-
&:active,
|
270
|
-
&:focus {
|
261
|
+
|
262
|
+
&:is(:active, :focus) {
|
271
263
|
@if $enable-important {
|
272
264
|
--border-color: var(--form-element-invalid-active-border-color) !important;
|
273
265
|
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-invalid-focus-color) !important;
|
274
|
-
}
|
266
|
+
}
|
267
|
+
@else {
|
275
268
|
--border-color: var(--form-element-invalid-active-border-color);
|
276
269
|
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-invalid-focus-color);
|
277
270
|
}
|
@@ -280,9 +273,7 @@ textarea {
|
|
280
273
|
}
|
281
274
|
|
282
275
|
[dir="rtl"] {
|
283
|
-
input,
|
284
|
-
select,
|
285
|
-
textarea {
|
276
|
+
:where(input, select, textarea) {
|
286
277
|
&:not([type="checkbox"]):not([type="radio"]) {
|
287
278
|
&[aria-invalid],
|
288
279
|
&[aria-invalid="true"],
|
@@ -339,9 +330,7 @@ select {
|
|
339
330
|
}
|
340
331
|
|
341
332
|
// Helper
|
342
|
-
input,
|
343
|
-
select,
|
344
|
-
textarea {
|
333
|
+
:where(input, select, textarea) {
|
345
334
|
+ small {
|
346
335
|
display: block;
|
347
336
|
width: 100%;
|
@@ -353,9 +342,7 @@ textarea {
|
|
353
342
|
|
354
343
|
// Styles for Input inside a label
|
355
344
|
label {
|
356
|
-
|
357
|
-
& > select,
|
358
|
-
& > textarea {
|
345
|
+
> :where(input, select, textarea) {
|
359
346
|
margin-top: calc(var(--spacing) * 0.25);
|
360
347
|
}
|
361
348
|
}
|
@@ -4,17 +4,16 @@
|
|
4
4
|
|
5
5
|
// Reboot based on :
|
6
6
|
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
|
7
|
-
// - sanitize.css
|
7
|
+
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
|
8
8
|
// ––––––––––––––––––––
|
9
9
|
|
10
|
-
// 1.
|
11
|
-
// 2.
|
10
|
+
// 1. Correct the inheritance of border color in Firefox
|
11
|
+
// 2. Add the correct box sizing in Firefox
|
12
12
|
hr {
|
13
|
-
|
14
|
-
|
15
|
-
overflow: visible; // 2
|
16
|
-
border: none;
|
13
|
+
height: 0; // 2
|
14
|
+
border: 0;
|
17
15
|
border-top: 1px solid var(--muted-border-color);
|
16
|
+
color: inherit; // 1
|
18
17
|
}
|
19
18
|
|
20
19
|
// Add the correct display in IE 10+
|
@@ -22,7 +21,8 @@ hr {
|
|
22
21
|
template {
|
23
22
|
@if $enable-important {
|
24
23
|
display: none !important;
|
25
|
-
}
|
24
|
+
}
|
25
|
+
@else {
|
26
26
|
display: none;
|
27
27
|
}
|
28
28
|
}
|
@@ -4,18 +4,16 @@
|
|
4
4
|
|
5
5
|
// Reboot based on :
|
6
6
|
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
|
7
|
-
// - sanitize.css
|
7
|
+
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
|
8
8
|
// ––––––––––––––––––––
|
9
9
|
|
10
|
-
// 1. Collapse border spacing in all browsers (opinionated)
|
11
|
-
// 2.
|
12
|
-
|
13
|
-
table {
|
10
|
+
// 1. Collapse border spacing in all browsers (opinionated)
|
11
|
+
// 2. Remove text indentation from table contents in Chrome, Edge, and Safari
|
12
|
+
:where(table) {
|
14
13
|
width: 100%;
|
15
|
-
border-color: inherit; // 2
|
16
14
|
border-collapse: collapse; // 1
|
17
15
|
border-spacing: 0;
|
18
|
-
text-indent: 0; //
|
16
|
+
text-indent: 0; // 2
|
19
17
|
}
|
20
18
|
|
21
19
|
// Pico
|