@anyblades/blades 3.1.0-beta.4 → 3.1.0-beta.6
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.json +0 -7
- package/README.md +20 -10
- package/_includes/.prettierrc.json +12 -0
- package/_includes/package.json +10 -0
- package/css/blades.css +942 -1805
- package/css/blades.min.css +11 -1
- package/css/blades.ninja.css +1124 -2265
- package/css/blades.ninja.min.css +16 -1
- package/css/float-label.css +34 -187
- package/css/float-label.min.css +1 -1
- package/css/layered/blades.layered.css +942 -1805
- package/css/layered/blades.layered.min.css +11 -1
- package/css/layered/compact.css +10 -31
- package/css/layered/components/accordion.css +32 -21
- package/css/layered/components/card.css +8 -16
- package/css/layered/components/dropdown-popover.css +92 -0
- package/css/layered/components/dropdown.css +61 -61
- package/css/layered/components/group.css +40 -156
- package/css/layered/components/loading.css +28 -35
- package/css/layered/components/modal-modern.css +20 -0
- package/css/layered/components/modal.css +54 -65
- package/css/layered/components/nav.css +36 -36
- package/css/layered/components/progress.css +18 -23
- package/css/layered/components/timeline.css +10 -0
- package/css/layered/components/tooltip.css +88 -103
- package/css/layered/components.css +371 -517
- package/css/layered/content/button.css +37 -117
- package/css/layered/content/code-block.css +20 -0
- package/css/layered/content/code.css +11 -26
- package/css/layered/content/embedded-content.css +5 -10
- package/css/layered/content/figure.css +3 -5
- package/css/layered/content/icon.css +33 -0
- package/css/layered/content/link.css +18 -40
- package/css/layered/content/misc.css +1 -5
- package/css/layered/content/table.css +4 -10
- package/css/layered/content/typography.css +22 -41
- package/css/layered/content.css +102 -254
- package/css/layered/forms/basics.css +64 -142
- package/css/layered/forms/checkbox-radio-switch.css +46 -75
- package/css/layered/forms/float-label/core.css +31 -0
- package/css/layered/forms/float-label/theme.css +28 -0
- package/css/layered/forms/float-label.css +57 -0
- package/css/layered/forms/input-color.css +5 -5
- package/css/layered/forms/input-datetime.css +9 -26
- package/css/layered/forms/input-file.css +7 -8
- package/css/layered/forms/input-range.css +43 -50
- package/css/layered/forms/input-search.css +16 -47
- package/css/layered/forms.css +197 -355
- package/css/layered/layout/columns.css +10 -0
- package/css/layered/layout/container.css +13 -13
- package/css/layered/layout/document.css +4 -12
- package/css/layered/layout/grid.css +6 -8
- package/css/layered/layout/landmarks.css +1 -7
- package/css/layered/layout/overflow-auto.css +0 -3
- package/css/layered/layout/section.css +0 -3
- package/css/layered/layout.css +26 -39
- package/css/layered/utilities.css +6 -15
- package/css/layered/variables-blades.css +11 -0
- package/css/layered/variables.css +77 -181
- package/css/pico.conditional.css +785 -1368
- package/css/pico.conditional.min.css +1 -1
- package/css/pico.css +785 -1368
- package/css/pico.min.css +1 -1
- package/package.json +13 -26
- package/src/blades/_index.css +9 -9
- package/src/blades/{_dropdown-popover.css → components/_dropdown-popover.css} +3 -3
- package/src/blades/forms/float-label/_index.css +2 -0
- package/src/blades.css +2 -2
- package/src/blades.ninja.css +3 -3
- package/src/float-label.css +1 -1
- package/src/ninja/_index.css +7 -8
- package/src/pico/_index.css +6 -6
- package/src/pico/components/_index.css +9 -9
- package/src/pico/content/_index.css +8 -8
- package/src/pico/forms/_index.css +7 -7
- package/src/pico/layout/_index.css +5 -5
- package/src/pico.css +2 -2
- package/_includes/blades/links.liquid +0 -21
- package/_includes/blades/links.njk +0 -9
- package/_includes/blades/links.twig +0 -18
- package/src/blades/float-label/_index.css +0 -2
- package/src/ninja/_page-anchors.css +0 -10
- /package/src/blades/{_variables.css → _variables-blades.css} +0 -0
- /package/src/blades/{_modal.css → components/_modal-modern.css} +0 -0
- /package/src/blades/{_timeline.css → components/_timeline.css} +0 -0
- /package/src/blades/{_code.css → content/_code-block.css} +0 -0
- /package/src/blades/{_icon.css → content/_icon.css} +0 -0
- /package/src/blades/{float-label → forms/float-label}/_core.css +0 -0
- /package/src/blades/{float-label → forms/float-label}/_theme.css +0 -0
- /package/src/blades/{_columns.css → layout/_columns.css} +0 -0
|
@@ -1,35 +1,23 @@
|
|
|
1
1
|
@layer blades {
|
|
2
|
-
/**
|
|
3
|
-
* Button
|
|
4
|
-
*/
|
|
5
2
|
button {
|
|
3
|
+
text-transform: none;
|
|
6
4
|
margin: 0;
|
|
7
|
-
overflow: visible;
|
|
8
5
|
font-family: inherit;
|
|
9
|
-
|
|
6
|
+
overflow: visible;
|
|
10
7
|
}
|
|
11
8
|
|
|
12
|
-
button,
|
|
13
|
-
[type="submit"],
|
|
14
|
-
[type="reset"],
|
|
15
|
-
[type="button"] {
|
|
9
|
+
button, [type="submit"], [type="reset"], [type="button"] {
|
|
16
10
|
-webkit-appearance: button;
|
|
17
11
|
}
|
|
18
12
|
|
|
19
|
-
button,
|
|
20
|
-
[type="submit"],
|
|
21
|
-
[type="reset"],
|
|
22
|
-
[type="button"],
|
|
23
|
-
[type="file"]::file-selector-button,
|
|
24
|
-
[role="button"] {
|
|
13
|
+
button, [type="submit"], [type="reset"], [type="button"], [type="file"]::file-selector-button, [role="button"] {
|
|
25
14
|
--pico-background-color: var(--pico-primary-background);
|
|
26
15
|
--pico-border-color: var(--pico-primary-border);
|
|
27
16
|
--pico-color: var(--pico-primary-inverse);
|
|
28
|
-
--pico-box-shadow: var(--pico-button-box-shadow, 0 0 0
|
|
17
|
+
--pico-box-shadow: var(--pico-button-box-shadow, 0 0 0 #0000);
|
|
29
18
|
padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
|
|
30
19
|
border: var(--pico-border-width) solid var(--pico-border-color);
|
|
31
20
|
border-radius: var(--pico-border-radius);
|
|
32
|
-
outline: none;
|
|
33
21
|
background-color: var(--pico-background-color);
|
|
34
22
|
box-shadow: var(--pico-box-shadow);
|
|
35
23
|
color: var(--pico-color);
|
|
@@ -37,92 +25,49 @@ button,
|
|
|
37
25
|
font-size: 1rem;
|
|
38
26
|
line-height: var(--pico-line-height);
|
|
39
27
|
text-align: center;
|
|
40
|
-
text-decoration: none;
|
|
41
28
|
cursor: pointer;
|
|
42
29
|
-webkit-user-select: none;
|
|
43
30
|
-moz-user-select: none;
|
|
44
|
-
|
|
45
|
-
|
|
31
|
+
user-select: none;
|
|
32
|
+
transition: background-color var(--pico-transition),
|
|
46
33
|
border-color var(--pico-transition),
|
|
47
34
|
color var(--pico-transition),
|
|
48
35
|
box-shadow var(--pico-transition);
|
|
49
|
-
|
|
36
|
+
outline: none;
|
|
37
|
+
text-decoration: none;
|
|
50
38
|
}
|
|
51
|
-
|
|
52
|
-
button:is(:hover, :active, :focus),
|
|
53
|
-
[type="submit"]:is([aria-current]:not([aria-current="false"])),
|
|
54
|
-
[type="submit"]:is(:hover, :active, :focus),
|
|
55
|
-
[type="reset"]:is([aria-current]:not([aria-current="false"])),
|
|
56
|
-
[type="reset"]:is(:hover, :active, :focus),
|
|
57
|
-
[type="button"]:is([aria-current]:not([aria-current="false"])),
|
|
58
|
-
[type="button"]:is(:hover, :active, :focus),
|
|
59
|
-
[type="file"]::file-selector-button:is([aria-current]:not([aria-current="false"])),
|
|
60
|
-
[type="file"]::file-selector-button:is(:hover, :active, :focus),
|
|
61
|
-
[role="button"]:is([aria-current]:not([aria-current="false"])),
|
|
62
|
-
[role="button"]:is(:hover, :active, :focus) {
|
|
39
|
+
|
|
40
|
+
button[aria-current]:not([aria-current="false"]), button:is(:hover, :active, :focus), [type="submit"][aria-current]:not([aria-current="false"]), [type="submit"]:is(:hover, :active, :focus), [type="reset"][aria-current]:not([aria-current="false"]), [type="reset"]:is(:hover, :active, :focus), [type="button"][aria-current]:not([aria-current="false"]), [type="button"]:is(:hover, :active, :focus), [type="file"]::file-selector-button:is(), [type="file"]::file-selector-button:is(:hover, :active, :focus), [role="button"][aria-current]:not([aria-current="false"]), [role="button"]:is(:hover, :active, :focus) {
|
|
63
41
|
--pico-background-color: var(--pico-primary-hover-background);
|
|
64
42
|
--pico-border-color: var(--pico-primary-hover-border);
|
|
65
|
-
--pico-box-shadow: var(--pico-button-hover-box-shadow, 0 0 0
|
|
43
|
+
--pico-box-shadow: var(--pico-button-hover-box-shadow, 0 0 0 #0000);
|
|
66
44
|
--pico-color: var(--pico-primary-inverse);
|
|
67
45
|
}
|
|
68
|
-
|
|
69
|
-
button:
|
|
70
|
-
|
|
71
|
-
[type="submit"]:is([aria-current]:not([aria-current="false"])):focus,
|
|
72
|
-
[type="reset"]:focus,
|
|
73
|
-
[type="reset"]:is([aria-current]:not([aria-current="false"])):focus,
|
|
74
|
-
[type="button"]:focus,
|
|
75
|
-
[type="button"]:is([aria-current]:not([aria-current="false"])):focus,
|
|
76
|
-
[type="file"]::file-selector-button:focus,
|
|
77
|
-
[type="file"]::file-selector-button:is([aria-current]:not([aria-current="false"])):focus,
|
|
78
|
-
[role="button"]:focus,
|
|
79
|
-
[role="button"]:is([aria-current]:not([aria-current="false"])):focus {
|
|
80
|
-
--pico-box-shadow:
|
|
81
|
-
var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
|
46
|
+
|
|
47
|
+
button:focus, button[aria-current]:not([aria-current="false"]):focus, [type="submit"]:focus, [type="submit"][aria-current]:not([aria-current="false"]):focus, [type="reset"]:focus, [type="reset"][aria-current]:not([aria-current="false"]):focus, [type="button"]:focus, [type="button"][aria-current]:not([aria-current="false"]):focus, [type="file"]::file-selector-button:focus, [type="file"]::file-selector-button:is():focus, [role="button"]:focus, [role="button"][aria-current]:not([aria-current="false"]):focus {
|
|
48
|
+
--pico-box-shadow: var(--pico-button-hover-box-shadow, 0 0 0 #0000),
|
|
82
49
|
0 0 0 var(--pico-outline-width) var(--pico-primary-focus);
|
|
83
50
|
}
|
|
84
51
|
|
|
85
|
-
[type="submit"],
|
|
86
|
-
[type="reset"],
|
|
87
|
-
[type="button"] {
|
|
52
|
+
[type="submit"], [type="reset"], [type="button"] {
|
|
88
53
|
margin-bottom: var(--pico-spacing);
|
|
89
54
|
}
|
|
90
55
|
|
|
91
|
-
:is(button, [type="submit"], [type="button"], [role="button"]).secondary,
|
|
92
|
-
[type="reset"],
|
|
93
|
-
[type="file"]::file-selector-button {
|
|
56
|
+
:is(button, [type="submit"], [type="button"], [role="button"]).secondary, [type="reset"], [type="file"]::file-selector-button {
|
|
94
57
|
--pico-background-color: var(--pico-secondary-background);
|
|
95
58
|
--pico-border-color: var(--pico-secondary-border);
|
|
96
59
|
--pico-color: var(--pico-secondary-inverse);
|
|
97
60
|
cursor: pointer;
|
|
98
61
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
:hover,
|
|
102
|
-
:active,
|
|
103
|
-
:focus
|
|
104
|
-
),
|
|
105
|
-
[type="reset"]:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus),
|
|
106
|
-
[type="file"]::file-selector-button:is(
|
|
107
|
-
[aria-current]:not([aria-current="false"]),
|
|
108
|
-
:hover,
|
|
109
|
-
:active,
|
|
110
|
-
:focus
|
|
111
|
-
) {
|
|
62
|
+
|
|
63
|
+
:is(button, [type="submit"], [type="button"], [role="button"]).secondary:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus), [type="reset"]:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus), [type="file"]::file-selector-button:is(:hover, :active, :focus) {
|
|
112
64
|
--pico-background-color: var(--pico-secondary-hover-background);
|
|
113
65
|
--pico-border-color: var(--pico-secondary-hover-border);
|
|
114
66
|
--pico-color: var(--pico-secondary-inverse);
|
|
115
67
|
}
|
|
116
|
-
|
|
117
|
-
:is(button, [type="submit"], [type="button"], [role="button"]).secondary:is(
|
|
118
|
-
|
|
119
|
-
):focus,
|
|
120
|
-
[type="reset"]:focus,
|
|
121
|
-
[type="reset"]:is([aria-current]:not([aria-current="false"])):focus,
|
|
122
|
-
[type="file"]::file-selector-button:focus,
|
|
123
|
-
[type="file"]::file-selector-button:is([aria-current]:not([aria-current="false"])):focus {
|
|
124
|
-
--pico-box-shadow:
|
|
125
|
-
var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
|
68
|
+
|
|
69
|
+
:is(button, [type="submit"], [type="button"], [role="button"]).secondary:focus, :is(button, [type="submit"], [type="button"], [role="button"]).secondary[aria-current]:not([aria-current="false"]):focus, [type="reset"]:focus, [type="reset"][aria-current]:not([aria-current="false"]):focus, [type="file"]::file-selector-button:focus, [type="file"]::file-selector-button:is():focus {
|
|
70
|
+
--pico-box-shadow: var(--pico-button-hover-box-shadow, 0 0 0 #0000),
|
|
126
71
|
0 0 0 var(--pico-outline-width) var(--pico-secondary-focus);
|
|
127
72
|
}
|
|
128
73
|
|
|
@@ -131,55 +76,36 @@ button:is([aria-current]:not([aria-current="false"])):focus,
|
|
|
131
76
|
--pico-border-color: var(--pico-contrast-border);
|
|
132
77
|
--pico-color: var(--pico-contrast-inverse);
|
|
133
78
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
:hover,
|
|
137
|
-
:active,
|
|
138
|
-
:focus
|
|
139
|
-
) {
|
|
79
|
+
|
|
80
|
+
:is(button, [type="submit"], [type="button"], [role="button"]).contrast:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
|
|
140
81
|
--pico-background-color: var(--pico-contrast-hover-background);
|
|
141
82
|
--pico-border-color: var(--pico-contrast-hover-border);
|
|
142
83
|
--pico-color: var(--pico-contrast-inverse);
|
|
143
84
|
}
|
|
144
|
-
|
|
145
|
-
:is(button, [type="submit"], [type="button"], [role="button"]).contrast:is(
|
|
146
|
-
|
|
147
|
-
):focus {
|
|
148
|
-
--pico-box-shadow:
|
|
149
|
-
var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
|
85
|
+
|
|
86
|
+
:is(button, [type="submit"], [type="button"], [role="button"]).contrast:focus, :is(button, [type="submit"], [type="button"], [role="button"]).contrast[aria-current]:not([aria-current="false"]):focus {
|
|
87
|
+
--pico-box-shadow: var(--pico-button-hover-box-shadow, 0 0 0 #0000),
|
|
150
88
|
0 0 0 var(--pico-outline-width) var(--pico-contrast-focus);
|
|
151
89
|
}
|
|
152
90
|
|
|
153
|
-
:is(button, [type="submit"], [type="button"], [role="button"]).outline,
|
|
154
|
-
[type="reset"].outline {
|
|
91
|
+
:is(button, [type="submit"], [type="button"], [role="button"]).outline, [type="reset"].outline {
|
|
155
92
|
--pico-background-color: transparent;
|
|
156
93
|
--pico-color: var(--pico-primary);
|
|
157
94
|
--pico-border-color: var(--pico-primary);
|
|
158
95
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
:hover,
|
|
162
|
-
:active,
|
|
163
|
-
:focus
|
|
164
|
-
),
|
|
165
|
-
[type="reset"].outline:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
|
|
96
|
+
|
|
97
|
+
:is(button, [type="submit"], [type="button"], [role="button"]).outline:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus), [type="reset"].outline:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
|
|
166
98
|
--pico-background-color: transparent;
|
|
167
99
|
--pico-color: var(--pico-primary-hover);
|
|
168
100
|
--pico-border-color: var(--pico-primary-hover);
|
|
169
101
|
}
|
|
170
102
|
|
|
171
|
-
:is(button, [type="submit"], [type="button"], [role="button"]).outline.secondary,
|
|
172
|
-
[type="reset"].outline {
|
|
103
|
+
:is(button, [type="submit"], [type="button"], [role="button"]).outline.secondary, [type="reset"].outline {
|
|
173
104
|
--pico-color: var(--pico-secondary);
|
|
174
105
|
--pico-border-color: var(--pico-secondary);
|
|
175
106
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
:hover,
|
|
179
|
-
:active,
|
|
180
|
-
:focus
|
|
181
|
-
),
|
|
182
|
-
[type="reset"].outline:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
|
|
107
|
+
|
|
108
|
+
:is(button, [type="submit"], [type="button"], [role="button"]).outline.secondary:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus), [type="reset"].outline:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
|
|
183
109
|
--pico-color: var(--pico-secondary-hover);
|
|
184
110
|
--pico-border-color: var(--pico-secondary-hover);
|
|
185
111
|
}
|
|
@@ -188,20 +114,14 @@ button:is([aria-current]:not([aria-current="false"])):focus,
|
|
|
188
114
|
--pico-color: var(--pico-contrast);
|
|
189
115
|
--pico-border-color: var(--pico-contrast);
|
|
190
116
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
:hover,
|
|
194
|
-
:active,
|
|
195
|
-
:focus
|
|
196
|
-
) {
|
|
117
|
+
|
|
118
|
+
:is(button, [type="submit"], [type="button"], [role="button"]).outline.contrast:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
|
|
197
119
|
--pico-color: var(--pico-contrast-hover);
|
|
198
120
|
--pico-border-color: var(--pico-contrast-hover);
|
|
199
121
|
}
|
|
200
122
|
|
|
201
|
-
:where(button, [type="submit"], [type="reset"], [type="button"], [role="button"])[disabled],
|
|
202
|
-
:
|
|
203
|
-
:is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]) {
|
|
204
|
-
opacity: 0.5;
|
|
123
|
+
:where(button, [type="submit"], [type="reset"], [type="button"], [role="button"])[disabled], :where(fieldset[disabled]) :is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]) {
|
|
124
|
+
opacity: .5;
|
|
205
125
|
pointer-events: none;
|
|
206
126
|
}
|
|
207
127
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@layer blades {
|
|
2
|
+
pre {
|
|
3
|
+
@media (width < 768px) {
|
|
4
|
+
border-radius: 0;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
code {
|
|
9
|
+
&[data-caption] {
|
|
10
|
+
&:before {
|
|
11
|
+
content: attr(data-caption);
|
|
12
|
+
opacity: .5;
|
|
13
|
+
margin-bottom: 1rem;
|
|
14
|
+
font-style: italic;
|
|
15
|
+
display: block;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
}
|
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
@layer blades {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
pre,
|
|
6
|
-
code,
|
|
7
|
-
var,
|
|
8
|
-
kbd,
|
|
9
|
-
samp {
|
|
10
|
-
font-size: 0.875em;
|
|
2
|
+
pre, code, var, kbd, samp {
|
|
3
|
+
font-size: .875em;
|
|
11
4
|
font-family: var(--pico-font-family);
|
|
12
5
|
}
|
|
13
6
|
|
|
14
|
-
pre code,
|
|
15
|
-
pre samp {
|
|
7
|
+
pre code, pre samp {
|
|
16
8
|
font-size: inherit;
|
|
17
9
|
font-family: inherit;
|
|
18
10
|
}
|
|
@@ -22,11 +14,7 @@ pre {
|
|
|
22
14
|
overflow: auto;
|
|
23
15
|
}
|
|
24
16
|
|
|
25
|
-
pre,
|
|
26
|
-
code,
|
|
27
|
-
var,
|
|
28
|
-
kbd,
|
|
29
|
-
samp {
|
|
17
|
+
pre, code, var, kbd, samp {
|
|
30
18
|
border-radius: var(--pico-border-radius);
|
|
31
19
|
background: var(--pico-code-background-color);
|
|
32
20
|
color: var(--pico-code-color);
|
|
@@ -34,25 +22,22 @@ samp {
|
|
|
34
22
|
line-height: initial;
|
|
35
23
|
}
|
|
36
24
|
|
|
37
|
-
code,
|
|
38
|
-
|
|
39
|
-
kbd,
|
|
40
|
-
samp {
|
|
25
|
+
code, var, kbd, samp {
|
|
26
|
+
padding: .375rem;
|
|
41
27
|
display: inline-block;
|
|
42
|
-
padding: 0.375rem;
|
|
43
28
|
}
|
|
44
29
|
|
|
45
30
|
pre {
|
|
46
|
-
display: block;
|
|
47
31
|
margin-bottom: var(--pico-spacing);
|
|
32
|
+
display: block;
|
|
48
33
|
overflow-x: auto;
|
|
49
34
|
}
|
|
50
|
-
|
|
51
|
-
pre > samp {
|
|
52
|
-
display: block;
|
|
35
|
+
|
|
36
|
+
pre > code, pre > samp {
|
|
53
37
|
padding: var(--pico-spacing);
|
|
54
|
-
background: none;
|
|
55
38
|
line-height: var(--pico-line-height);
|
|
39
|
+
background: none;
|
|
40
|
+
display: block;
|
|
56
41
|
}
|
|
57
42
|
|
|
58
43
|
kbd {
|
|
@@ -1,31 +1,27 @@
|
|
|
1
1
|
@layer blades {
|
|
2
|
-
/**
|
|
3
|
-
* Embedded content
|
|
4
|
-
*/
|
|
5
2
|
:where(audio, canvas, iframe, img, svg, video) {
|
|
6
3
|
vertical-align: middle;
|
|
7
4
|
}
|
|
8
5
|
|
|
9
|
-
audio,
|
|
10
|
-
video {
|
|
6
|
+
audio, video {
|
|
11
7
|
display: inline-block;
|
|
12
8
|
}
|
|
13
9
|
|
|
14
10
|
audio:not([controls]) {
|
|
15
|
-
display: none;
|
|
16
11
|
height: 0;
|
|
12
|
+
display: none;
|
|
17
13
|
}
|
|
18
14
|
|
|
19
15
|
:where(iframe) {
|
|
20
16
|
border-style: none;
|
|
21
17
|
}
|
|
22
18
|
|
|
23
|
-
img
|
|
19
|
+
img {
|
|
20
|
+
&:not([height]) {
|
|
24
21
|
max-width: 100%;
|
|
25
22
|
height: auto;
|
|
26
23
|
}
|
|
27
24
|
|
|
28
|
-
img {
|
|
29
25
|
border-style: none;
|
|
30
26
|
}
|
|
31
27
|
|
|
@@ -33,8 +29,7 @@ img {
|
|
|
33
29
|
fill: currentColor;
|
|
34
30
|
}
|
|
35
31
|
|
|
36
|
-
svg:not(:scope),
|
|
37
|
-
svg:not(:host) {
|
|
32
|
+
svg:not(:scope), svg:not(:host) {
|
|
38
33
|
overflow: hidden;
|
|
39
34
|
}
|
|
40
35
|
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
@layer blades {
|
|
2
|
-
/**
|
|
3
|
-
* Figure
|
|
4
|
-
*/
|
|
5
2
|
figure {
|
|
6
|
-
display: block;
|
|
7
3
|
margin: 0;
|
|
8
4
|
padding: 0;
|
|
5
|
+
display: block;
|
|
9
6
|
}
|
|
7
|
+
|
|
10
8
|
figure figcaption {
|
|
11
|
-
padding: calc(var(--pico-spacing) *
|
|
9
|
+
padding: calc(var(--pico-spacing) * .5) 0;
|
|
12
10
|
color: var(--pico-muted-color);
|
|
13
11
|
}
|
|
14
12
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@layer blades {
|
|
2
|
+
a:not(.does-not-exist) {
|
|
3
|
+
&:has( > i) {
|
|
4
|
+
text-wrap: balance;
|
|
5
|
+
gap: .375ch;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
overflow-y: clip;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
& > i {
|
|
11
|
+
float: left;
|
|
12
|
+
text-underline-offset: -2em;
|
|
13
|
+
font-style: normal;
|
|
14
|
+
|
|
15
|
+
& > img {
|
|
16
|
+
max-width: none;
|
|
17
|
+
height: 1.25em;
|
|
18
|
+
margin-block-start: -.125em;
|
|
19
|
+
display: inline-block;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&[class^="fa-"], &[class*=" fa-"] {
|
|
23
|
+
line-height: inherit;
|
|
24
|
+
--fa-width: auto;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.fa-lg {
|
|
28
|
+
line-height: normal;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
}
|
|
@@ -1,78 +1,56 @@
|
|
|
1
1
|
@layer blades {
|
|
2
|
-
|
|
3
|
-
* Link
|
|
4
|
-
*/
|
|
5
|
-
:where(a:not([role="button"])),
|
|
6
|
-
[role="link"] {
|
|
2
|
+
:where(a:not([role="button"])), [role="link"] {
|
|
7
3
|
--pico-color: var(--pico-primary);
|
|
8
4
|
--pico-background-color: transparent;
|
|
9
5
|
--pico-underline: var(--pico-primary-underline);
|
|
10
|
-
outline: none;
|
|
11
6
|
background-color: var(--pico-background-color);
|
|
12
7
|
color: var(--pico-color);
|
|
13
8
|
-webkit-text-decoration: var(--pico-text-decoration);
|
|
14
9
|
text-decoration: var(--pico-text-decoration);
|
|
15
10
|
text-decoration-color: var(--pico-underline);
|
|
16
|
-
text-underline-offset:
|
|
17
|
-
transition:
|
|
18
|
-
background-color var(--pico-transition),
|
|
11
|
+
text-underline-offset: .125em;
|
|
12
|
+
transition: background-color var(--pico-transition),
|
|
19
13
|
color var(--pico-transition),
|
|
20
14
|
box-shadow var(--pico-transition),
|
|
21
15
|
-webkit-text-decoration var(--pico-transition);
|
|
22
|
-
transition:
|
|
23
|
-
background-color var(--pico-transition),
|
|
16
|
+
transition: background-color var(--pico-transition),
|
|
24
17
|
color var(--pico-transition),
|
|
25
18
|
text-decoration var(--pico-transition),
|
|
26
19
|
box-shadow var(--pico-transition);
|
|
27
|
-
transition:
|
|
28
|
-
background-color var(--pico-transition),
|
|
20
|
+
transition: background-color var(--pico-transition),
|
|
29
21
|
color var(--pico-transition),
|
|
30
22
|
text-decoration var(--pico-transition),
|
|
31
23
|
box-shadow var(--pico-transition),
|
|
32
24
|
-webkit-text-decoration var(--pico-transition);
|
|
25
|
+
outline: none;
|
|
33
26
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
:hover,
|
|
37
|
-
:active,
|
|
38
|
-
:focus
|
|
39
|
-
),
|
|
40
|
-
[role="link"]:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
|
|
27
|
+
|
|
28
|
+
:where(a:not([role="button"])):is([aria-current]:not([aria-current="false"]), :hover, :active, :focus), [role="link"]:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
|
|
41
29
|
--pico-color: var(--pico-primary-hover);
|
|
42
30
|
--pico-underline: var(--pico-primary-hover-underline);
|
|
43
31
|
--pico-text-decoration: underline;
|
|
44
32
|
}
|
|
45
|
-
|
|
46
|
-
[role="link"]:focus-visible {
|
|
33
|
+
|
|
34
|
+
:where(a:not([role="button"])):focus-visible, [role="link"]:focus-visible {
|
|
47
35
|
box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-primary-focus);
|
|
48
36
|
}
|
|
49
|
-
|
|
50
|
-
[role="link"].secondary {
|
|
37
|
+
|
|
38
|
+
:where(a:not([role="button"])).secondary, [role="link"].secondary {
|
|
51
39
|
--pico-color: var(--pico-secondary);
|
|
52
40
|
--pico-underline: var(--pico-secondary-underline);
|
|
53
41
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
:hover,
|
|
57
|
-
:active,
|
|
58
|
-
:focus
|
|
59
|
-
),
|
|
60
|
-
[role="link"].secondary:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
|
|
42
|
+
|
|
43
|
+
:where(a:not([role="button"])).secondary:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus), [role="link"].secondary:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
|
|
61
44
|
--pico-color: var(--pico-secondary-hover);
|
|
62
45
|
--pico-underline: var(--pico-secondary-hover-underline);
|
|
63
46
|
}
|
|
64
|
-
|
|
65
|
-
[role="link"].contrast {
|
|
47
|
+
|
|
48
|
+
:where(a:not([role="button"])).contrast, [role="link"].contrast {
|
|
66
49
|
--pico-color: var(--pico-contrast);
|
|
67
50
|
--pico-underline: var(--pico-contrast-underline);
|
|
68
51
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
:hover,
|
|
72
|
-
:active,
|
|
73
|
-
:focus
|
|
74
|
-
),
|
|
75
|
-
[role="link"].contrast:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
|
|
52
|
+
|
|
53
|
+
:where(a:not([role="button"])).contrast:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus), [role="link"].contrast:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
|
|
76
54
|
--pico-color: var(--pico-contrast-hover);
|
|
77
55
|
--pico-underline: var(--pico-contrast-hover-underline);
|
|
78
56
|
}
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
@layer blades {
|
|
2
|
-
/**
|
|
3
|
-
* Table
|
|
4
|
-
*/
|
|
5
2
|
:where(table) {
|
|
6
|
-
width: 100%;
|
|
7
3
|
border-collapse: collapse;
|
|
8
4
|
border-spacing: 0;
|
|
9
5
|
text-indent: 0;
|
|
6
|
+
width: 100%;
|
|
10
7
|
}
|
|
11
8
|
|
|
12
|
-
th,
|
|
13
|
-
td {
|
|
9
|
+
th, td {
|
|
14
10
|
padding: calc(var(--pico-spacing) / 2) var(--pico-spacing);
|
|
15
11
|
border-bottom: var(--pico-border-width) solid var(--pico-table-border-color);
|
|
16
12
|
background-color: var(--pico-background-color);
|
|
@@ -19,14 +15,12 @@ td {
|
|
|
19
15
|
text-align: start;
|
|
20
16
|
}
|
|
21
17
|
|
|
22
|
-
tfoot th,
|
|
23
|
-
tfoot td {
|
|
18
|
+
tfoot th, tfoot td {
|
|
24
19
|
border-top: var(--pico-border-width) solid var(--pico-table-border-color);
|
|
25
20
|
border-bottom: 0;
|
|
26
21
|
}
|
|
27
22
|
|
|
28
|
-
table.striped tbody tr:nth-child(odd) th,
|
|
29
|
-
table.striped tbody tr:nth-child(odd) td {
|
|
23
|
+
table.striped tbody tr:nth-child(odd) th, table.striped tbody tr:nth-child(odd) td {
|
|
30
24
|
background-color: var(--pico-table-row-stripped-background-color);
|
|
31
25
|
}
|
|
32
26
|
|