@davidsouther/jiffies 2026.4.0 → 2026.24.0
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/README.md +0 -3
- package/package.json +13 -6
- package/src/404.html +1 -1
- package/src/components/accordion.ts +25 -0
- package/src/components/alert.ts +47 -0
- package/src/components/card.ts +54 -0
- package/src/components/children.ts +11 -0
- package/src/components/form.ts +25 -0
- package/src/components/index.ts +22 -0
- package/src/components/link.ts +22 -0
- package/src/components/modal.ts +15 -0
- package/src/components/nav.ts +42 -0
- package/src/components/property.ts +32 -0
- package/src/components/tabs.ts +82 -0
- package/src/components/virtual_scroll.ts +1 -1
- package/src/dom/README.md +8 -3
- package/src/dom/SKILL.md +201 -0
- package/src/dom/dom.ts +192 -41
- package/src/dom/fc.ts +7 -3
- package/src/dom/form/form.app.ts +35 -41
- package/src/dom/form/form.ts +79 -10
- package/src/dom/form/index.html +2 -2
- package/src/dom/html.ts +1 -1
- package/src/dom/hydrate.ts +206 -0
- package/src/dom/navigation/index.ts +349 -0
- package/src/dom/render.ts +41 -0
- package/src/dom/router/router.ts +1 -1
- package/src/dom/svg.ts +6 -2
- package/src/fs_node.ts +2 -2
- package/src/log.ts +154 -2
- package/src/server/http/response.ts +6 -3
- package/src/server/http/sitemap.ts +10 -34
- package/src/server/http/static.ts +0 -2
- package/src/server/live-reload.ts +208 -0
- package/src/server/main.ts +14 -7
- package/src/server/ws/frame.ts +36 -0
- package/src/server/ws/handshake.ts +42 -0
- package/src/server/ws/index.ts +100 -0
- package/src/ssg/bundle.ts +85 -0
- package/src/ssg/copy-public.ts +44 -0
- package/src/ssg/discover.ts +143 -0
- package/src/ssg/main.ts +168 -0
- package/src/ssg/rewrite.ts +18 -0
- package/src/ssg/ssg.ts +134 -0
- package/src/components/test.ts +0 -5
- package/src/components/virtual_scroll.test.ts +0 -30
- package/src/context.test.ts +0 -58
- package/src/context.ts +0 -67
- package/src/diff.test.ts +0 -48
- package/src/dom/fc.test.ts +0 -43
- package/src/dom/form/form.test.ts +0 -0
- package/src/dom/html.test.ts +0 -74
- package/src/dom/observable.test.ts +0 -43
- package/src/dom/test.ts +0 -11
- package/src/equal.test.ts +0 -23
- package/src/flags.test.ts +0 -43
- package/src/flags.ts +0 -53
- package/src/fs.test.ts +0 -106
- package/src/fs_win.test.ts +0 -11
- package/src/generator.test.ts +0 -27
- package/src/index.html +0 -82
- package/src/is_browser.js +0 -1
- package/src/lock.test.ts +0 -17
- package/src/observable/observable.test.ts +0 -73
- package/src/pico/_variables.scss +0 -66
- package/src/pico/components/_accordion.scss +0 -112
- package/src/pico/components/_button-group.scss +0 -51
- package/src/pico/components/_card.scss +0 -47
- package/src/pico/components/_dropdown.scss +0 -203
- package/src/pico/components/_modal.scss +0 -181
- package/src/pico/components/_nav.scss +0 -79
- package/src/pico/components/_progress.scss +0 -70
- package/src/pico/components/_property.scss +0 -34
- package/src/pico/content/_button.scss +0 -152
- package/src/pico/content/_code.scss +0 -63
- package/src/pico/content/_embedded.scss +0 -0
- package/src/pico/content/_form-alt.scss +0 -276
- package/src/pico/content/_form.scss +0 -259
- package/src/pico/content/_misc.scss +0 -0
- package/src/pico/content/_table.scss +0 -28
- package/src/pico/content/_toggle.scss +0 -132
- package/src/pico/content/_typography.scss +0 -232
- package/src/pico/layout/_container.scss +0 -40
- package/src/pico/layout/_document.scss +0 -0
- package/src/pico/layout/_flex.scss +0 -46
- package/src/pico/layout/_grid.scss +0 -24
- package/src/pico/layout/_scroller.scss +0 -16
- package/src/pico/layout/_section.scss +0 -8
- package/src/pico/layout/_sectioning.scss +0 -55
- package/src/pico/pico.scss +0 -60
- package/src/pico/reset/_accessibility.scss +0 -34
- package/src/pico/reset/_button.scss +0 -17
- package/src/pico/reset/_code.scss +0 -15
- package/src/pico/reset/_document.scss +0 -48
- package/src/pico/reset/_embedded.scss +0 -39
- package/src/pico/reset/_form.scss +0 -97
- package/src/pico/reset/_misc.scss +0 -23
- package/src/pico/reset/_nav.scss +0 -5
- package/src/pico/reset/_progress.scss +0 -4
- package/src/pico/reset/_table.scss +0 -8
- package/src/pico/reset/_typography.scss +0 -25
- package/src/pico/themes/default/_colors.scss +0 -65
- package/src/pico/themes/default/_dark.scss +0 -148
- package/src/pico/themes/default/_light.scss +0 -149
- package/src/pico/themes/default/_styles.scss +0 -272
- package/src/pico/themes/default.scss +0 -34
- package/src/pico/utilities/_accessibility.scss +0 -3
- package/src/pico/utilities/_loading.scss +0 -52
- package/src/pico/utilities/_reduce-motion.scss +0 -27
- package/src/pico/utilities/_tooltip.scss +0 -101
- package/src/result.test.ts +0 -101
- package/src/scope/describe.ts +0 -81
- package/src/scope/display/console.ts +0 -26
- package/src/scope/display/dom.ts +0 -36
- package/src/scope/display/junit.ts +0 -64
- package/src/scope/execute.ts +0 -110
- package/src/scope/expect.ts +0 -169
- package/src/scope/fix.ts +0 -30
- package/src/scope/index.ts +0 -11
- package/src/scope/scope.ts +0 -21
- package/src/scope/state.ts +0 -13
- package/src/test.mjs +0 -33
- package/src/test_all.ts +0 -35
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
address,
|
|
2
|
-
blockquote,
|
|
3
|
-
dl,
|
|
4
|
-
figure,
|
|
5
|
-
form,
|
|
6
|
-
ol,
|
|
7
|
-
p,
|
|
8
|
-
pre,
|
|
9
|
-
table,
|
|
10
|
-
ul {
|
|
11
|
-
margin-top: 0;
|
|
12
|
-
margin-bottom: var(--typography-spacing-vertical);
|
|
13
|
-
color: var(--color);
|
|
14
|
-
font-style: normal;
|
|
15
|
-
font-weight: var(--font-weight);
|
|
16
|
-
font-size: var(--font-size);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// Links
|
|
20
|
-
// 1. Remove the gray background on active links in IE 10
|
|
21
|
-
a,
|
|
22
|
-
[role="link"] {
|
|
23
|
-
--color: var(--primary);
|
|
24
|
-
--background-color: transparent;
|
|
25
|
-
outline: none;
|
|
26
|
-
background-color: var(--background-color); // 1
|
|
27
|
-
color: var(--color);
|
|
28
|
-
text-decoration: var(--text-decoration);
|
|
29
|
-
|
|
30
|
-
@if $enable-transitions {
|
|
31
|
-
transition: background-color var(--transition), color var(--transition),
|
|
32
|
-
text-decoration var(--transition), box-shadow var(--transition);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&:is([aria-current], :hover, :active, :focus) {
|
|
36
|
-
--color: var(--primary-hover);
|
|
37
|
-
--text-decoration: underline;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&:focus {
|
|
41
|
-
--background-color: var(--primary-focus);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@if $enable-classes {
|
|
45
|
-
// Secondary
|
|
46
|
-
&.secondary {
|
|
47
|
-
--color: var(--secondary);
|
|
48
|
-
|
|
49
|
-
&:is([aria-current], :hover, :active, :focus) {
|
|
50
|
-
--color: var(--secondary-hover);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&:focus {
|
|
54
|
-
--background-color: var(--secondary-focus);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// Contrast
|
|
59
|
-
&.contrast {
|
|
60
|
-
--color: var(--contrast);
|
|
61
|
-
|
|
62
|
-
&:is([aria-current], :hover, :active, :focus) {
|
|
63
|
-
--color: var(--contrast-hover);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&:focus {
|
|
67
|
-
--background-color: var(--contrast-focus);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// Headings
|
|
74
|
-
h1,
|
|
75
|
-
h2,
|
|
76
|
-
h3,
|
|
77
|
-
h4,
|
|
78
|
-
h5,
|
|
79
|
-
h6 {
|
|
80
|
-
margin-top: 0;
|
|
81
|
-
margin-bottom: var(--typography-spacing-vertical);
|
|
82
|
-
color: var(--color);
|
|
83
|
-
font-weight: var(--font-weight);
|
|
84
|
-
font-size: var(--font-size);
|
|
85
|
-
font-family: var(--font-family);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
h1 {
|
|
89
|
-
--color: var(--h1-color);
|
|
90
|
-
}
|
|
91
|
-
h2 {
|
|
92
|
-
--color: var(--h2-color);
|
|
93
|
-
}
|
|
94
|
-
h3 {
|
|
95
|
-
--color: var(--h3-color);
|
|
96
|
-
}
|
|
97
|
-
h4 {
|
|
98
|
-
--color: var(--h4-color);
|
|
99
|
-
}
|
|
100
|
-
h5 {
|
|
101
|
-
--color: var(--h5-color);
|
|
102
|
-
}
|
|
103
|
-
h6 {
|
|
104
|
-
--color: var(--h6-color);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Margin-top for headings after a typography block
|
|
108
|
-
:where(address, blockquote, dl, figure, form, ol, p, pre, table, ul) {
|
|
109
|
-
~ :is(h1, h2, h3, h4, h5, h6) {
|
|
110
|
-
margin-top: var(--typography-spacing-vertical);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// Heading group
|
|
115
|
-
// @if $enable-classes == false {
|
|
116
|
-
hgroup {
|
|
117
|
-
margin-bottom: var(--typography-spacing-vertical);
|
|
118
|
-
|
|
119
|
-
> * {
|
|
120
|
-
margin-bottom: 0;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
> *:last-child {
|
|
124
|
-
--color: var(--muted-color);
|
|
125
|
-
--font-weight: unset;
|
|
126
|
-
font-size: 1rem;
|
|
127
|
-
font-family: unset;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
// }
|
|
131
|
-
|
|
132
|
-
// @if $enable-classes {
|
|
133
|
-
// hgroup,
|
|
134
|
-
// .headings {
|
|
135
|
-
// margin-bottom: var(--typography-spacing-vertical);
|
|
136
|
-
|
|
137
|
-
// > * {
|
|
138
|
-
// margin-bottom: 0;
|
|
139
|
-
// }
|
|
140
|
-
|
|
141
|
-
// > *:last-child {
|
|
142
|
-
// --color: var(--muted-color);
|
|
143
|
-
// --font-weight: unset;
|
|
144
|
-
// font-size: 1rem;
|
|
145
|
-
// font-family: unset;
|
|
146
|
-
// }
|
|
147
|
-
// }
|
|
148
|
-
// }
|
|
149
|
-
|
|
150
|
-
// Paragraphs
|
|
151
|
-
p {
|
|
152
|
-
margin-bottom: var(--typography-spacing-vertical);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
// Small
|
|
156
|
-
small {
|
|
157
|
-
font-size: var(--font-size);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
// Lists
|
|
161
|
-
:where(dl, ol, ul) {
|
|
162
|
-
padding-right: 0;
|
|
163
|
-
padding-left: var(--spacing);
|
|
164
|
-
padding-inline-start: var(--spacing);
|
|
165
|
-
padding-inline-end: 0;
|
|
166
|
-
|
|
167
|
-
li {
|
|
168
|
-
margin-bottom: calc(var(--typography-spacing-vertical) * 0.25);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
// Margin-top for nested lists
|
|
173
|
-
// 1. Remove the margin on nested lists in Chrome, Edge, IE, and Safari
|
|
174
|
-
:where(dl, ol, ul) {
|
|
175
|
-
:is(dl, ol, ul) {
|
|
176
|
-
margin: 0; // 1
|
|
177
|
-
margin-top: calc(var(--typography-spacing-vertical) * 0.25);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
ul li {
|
|
182
|
-
list-style: square;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
// Highlighted text
|
|
186
|
-
mark {
|
|
187
|
-
padding: 0.125rem 0.25rem;
|
|
188
|
-
background-color: var(--mark-background-color);
|
|
189
|
-
color: var(--mark-color);
|
|
190
|
-
vertical-align: baseline;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
// Blockquote
|
|
194
|
-
blockquote {
|
|
195
|
-
display: block;
|
|
196
|
-
margin: var(--typography-spacing-vertical) 0;
|
|
197
|
-
padding: var(--spacing);
|
|
198
|
-
border-right: none;
|
|
199
|
-
border-left: 0.25rem solid var(--blockquote-border-color);
|
|
200
|
-
border-inline-start: 0.25rem solid var(--blockquote-border-color);
|
|
201
|
-
border-inline-end: none;
|
|
202
|
-
|
|
203
|
-
footer {
|
|
204
|
-
margin-top: calc(var(--typography-spacing-vertical) * 0.5);
|
|
205
|
-
color: var(--blockquote-footer-color);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
// Abbreviations
|
|
210
|
-
// 1. Remove underline decoration in Chrome, Edge, IE, Opera, and Safari
|
|
211
|
-
abbr[title] {
|
|
212
|
-
border-bottom: 1px dotted;
|
|
213
|
-
text-decoration: none; // 1
|
|
214
|
-
cursor: help;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
// Ins
|
|
218
|
-
ins {
|
|
219
|
-
color: var(--ins-color);
|
|
220
|
-
text-decoration: none;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
// del
|
|
224
|
-
del {
|
|
225
|
-
color: var(--del-color);
|
|
226
|
-
text-decoration: none;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
// selection
|
|
230
|
-
::selection {
|
|
231
|
-
background-color: var(--primary-focus);
|
|
232
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
@if ($enable-class-container and $enable-classes) {
|
|
2
|
-
/**
|
|
3
|
-
* Container
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
.container,
|
|
7
|
-
.container-fluid {
|
|
8
|
-
width: 100%;
|
|
9
|
-
margin: 0 auto;
|
|
10
|
-
padding: 0 var(--spacing);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.container {
|
|
14
|
-
@if map-get($breakpoints, "sm") {
|
|
15
|
-
@media (min-width: map-get($breakpoints, "sm")) {
|
|
16
|
-
max-width: map-get($viewports, "sm");
|
|
17
|
-
padding-right: 0;
|
|
18
|
-
padding-left: 0;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@if map-get($breakpoints, "md") {
|
|
23
|
-
@media (min-width: map-get($breakpoints, "md")) {
|
|
24
|
-
max-width: map-get($viewports, "md");
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@if map-get($breakpoints, "lg") {
|
|
29
|
-
@media (min-width: map-get($breakpoints, "lg")) {
|
|
30
|
-
max-width: map-get($viewports, "lg");
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@if map-get($breakpoints, "xl") {
|
|
35
|
-
@media (min-width: map-get($breakpoints, "xl")) {
|
|
36
|
-
max-width: map-get($viewports, "xl");
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
File without changes
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
.flex {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
|
|
5
|
-
&.row {
|
|
6
|
-
flex-direction: row;
|
|
7
|
-
|
|
8
|
-
&.inline > * {
|
|
9
|
-
display: inline-block;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&.justify-around {
|
|
14
|
-
justify-content: space-around;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&.justify-between {
|
|
18
|
-
justify-content: space-between;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&.justify-center {
|
|
22
|
-
justify-content: center;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&.align-baseline {
|
|
26
|
-
align-items: baseline;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&.align-center {
|
|
30
|
-
align-items: center;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&.align-stretch {
|
|
34
|
-
align-items: stretch;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&.align-end {
|
|
38
|
-
align-items: end;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@for $i from 1 through 4 {
|
|
42
|
-
& > .flex-#{$i} {
|
|
43
|
-
flex: $i;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
@if ($enable-classes and $enable-grid) {
|
|
2
|
-
/**
|
|
3
|
-
* Grid
|
|
4
|
-
* Minimal grid system with auto-layout columns
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
.grid {
|
|
8
|
-
grid-column-gap: var(--grid-spacing-horizontal);
|
|
9
|
-
grid-row-gap: var(--grid-spacing-vertical);
|
|
10
|
-
display: grid;
|
|
11
|
-
grid-template-columns: 1fr;
|
|
12
|
-
margin: 0;
|
|
13
|
-
|
|
14
|
-
@if map-get($breakpoints, "lg") {
|
|
15
|
-
@media (min-width: map-get($breakpoints, "lg")) {
|
|
16
|
-
grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
& > * {
|
|
21
|
-
min-width: 0; // HACK for childs in overflow
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Horizontal scroller (<figure>)
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// Wrapper to make any content responsive across all viewports
|
|
6
|
-
figure {
|
|
7
|
-
display: block;
|
|
8
|
-
margin: 0;
|
|
9
|
-
padding: 0;
|
|
10
|
-
overflow-x: auto;
|
|
11
|
-
|
|
12
|
-
figcaption {
|
|
13
|
-
padding: calc(var(--spacing) * 0.5) 0;
|
|
14
|
-
color: var(--muted-color);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sectioning
|
|
3
|
-
* Container and responsive spacings for header, main, footer
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
// Reboot based on :
|
|
7
|
-
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
|
|
8
|
-
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
|
|
9
|
-
// ––––––––––––––––––––
|
|
10
|
-
|
|
11
|
-
// Render the `main` element consistently in IE
|
|
12
|
-
main {
|
|
13
|
-
display: block;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// Pico
|
|
17
|
-
// ––––––––––––––––––––
|
|
18
|
-
|
|
19
|
-
@import url("../themes/default/styles");
|
|
20
|
-
|
|
21
|
-
// 1. Remove the margin in all browsers (opinionated)
|
|
22
|
-
// 2. Body should be at least the height of the viewport (opinionated)
|
|
23
|
-
body {
|
|
24
|
-
width: 100%;
|
|
25
|
-
min-height: 100vh; // 2
|
|
26
|
-
margin: 0; // 1
|
|
27
|
-
|
|
28
|
-
@if $enable-viewport == all {
|
|
29
|
-
> header,
|
|
30
|
-
> main,
|
|
31
|
-
> footer {
|
|
32
|
-
@include centered-viewport();
|
|
33
|
-
}
|
|
34
|
-
} @else if $enable-viewport == main {
|
|
35
|
-
> header,
|
|
36
|
-
> footer {
|
|
37
|
-
width: 100%;
|
|
38
|
-
margin: 0 auto;
|
|
39
|
-
padding: 0 var(--spacing);
|
|
40
|
-
}
|
|
41
|
-
> main {
|
|
42
|
-
// Semantic container
|
|
43
|
-
padding: var(--block-spacing-vertical) var(--block-spacing-horizontal);
|
|
44
|
-
@include centered-viewport();
|
|
45
|
-
}
|
|
46
|
-
} @else {
|
|
47
|
-
> header,
|
|
48
|
-
> main,
|
|
49
|
-
> footer {
|
|
50
|
-
width: 100%;
|
|
51
|
-
margin: 0 auto;
|
|
52
|
-
padding: 0 var(--spacing);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
package/src/pico/pico.scss
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
// Config
|
|
2
|
-
@import "variables";
|
|
3
|
-
|
|
4
|
-
@layer reset, theme, layout, content, component, utility, user;
|
|
5
|
-
|
|
6
|
-
@layer reset {
|
|
7
|
-
@import "reset/document";
|
|
8
|
-
@import "reset/typography";
|
|
9
|
-
@import "reset/embedded";
|
|
10
|
-
@import "reset/button";
|
|
11
|
-
@import "reset/form";
|
|
12
|
-
@import "reset/table";
|
|
13
|
-
@import "reset/misc";
|
|
14
|
-
@import "reset/nav";
|
|
15
|
-
@import "reset/progress";
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@layer theme {
|
|
19
|
-
@import "themes/default";
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@layer layout {
|
|
23
|
-
@import "layout/document"; // html
|
|
24
|
-
@import "layout/sectioning"; // body, header, main, footer
|
|
25
|
-
@import "layout/container"; // .container, .container-fluid
|
|
26
|
-
@import "layout/section"; // section
|
|
27
|
-
@import "layout/flex"; // .flex-*
|
|
28
|
-
@import "layout/grid"; // .grid
|
|
29
|
-
@import "layout/scroller"; // figure
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@layer content {
|
|
33
|
-
@import "content/typography"; // a, headings, p, ul, blockquote, ...
|
|
34
|
-
@import "content/embedded"; // audio, canvas, iframe, img, svg, video
|
|
35
|
-
@import "content/button"; // button, a[role=button], type=button, type=submit ...
|
|
36
|
-
@import "content/form"; // input, select, textarea, label, fieldset, legend
|
|
37
|
-
@import "content/toggle"; // type=checkbox, type=radio, role=switch
|
|
38
|
-
@import "content/form-alt"; // type=color, type=date, type=file, type=search, ...
|
|
39
|
-
@import "content/table"; // table, tr, td, ...
|
|
40
|
-
@import "content/code"; // pre, code, ...
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@layer component {
|
|
44
|
-
@import "components/accordion"; // details, summary
|
|
45
|
-
@import "components/card"; // article
|
|
46
|
-
@import "components/modal"; // dialog
|
|
47
|
-
@import "components/nav"; // nav
|
|
48
|
-
@import "components/progress"; // progress
|
|
49
|
-
@import "components/dropdown"; // details[role="list"], li[role="list"]
|
|
50
|
-
@import "components/property"; // dl, dt, dd
|
|
51
|
-
@import "components/button-group"; // .input-group, .button-group, fieldset
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// Utilities
|
|
55
|
-
@layer utility {
|
|
56
|
-
@import "utilities/loading"; // aria-busy=true
|
|
57
|
-
@import "utilities/tooltip"; // data-tooltip
|
|
58
|
-
@import "utilities/accessibility"; // -ms-touch-action, aria-*
|
|
59
|
-
@import "utilities/reduce-motion"; // prefers-reduced-motion
|
|
60
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// Change the cursor on control elements in all browsers (opinionated)
|
|
2
|
-
[aria-controls] {
|
|
3
|
-
cursor: pointer;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
// Change the cursor on disabled, not-editable, or otherwise inoperable elements in all browsers (opinionated)
|
|
7
|
-
[aria-disabled="true"],
|
|
8
|
-
[disabled] {
|
|
9
|
-
cursor: not-allowed;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// Change the display on visually hidden accessible elements in all browsers (opinionated)
|
|
13
|
-
[aria-hidden="false"][hidden] {
|
|
14
|
-
display: initial;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
[aria-hidden="false"][hidden]:not(:focus) {
|
|
18
|
-
clip: rect(0, 0, 0, 0);
|
|
19
|
-
position: absolute;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// User interaction
|
|
23
|
-
// Remove the tapping delay in IE 10
|
|
24
|
-
a,
|
|
25
|
-
area,
|
|
26
|
-
button,
|
|
27
|
-
input,
|
|
28
|
-
label,
|
|
29
|
-
select,
|
|
30
|
-
summary,
|
|
31
|
-
textarea,
|
|
32
|
-
[tabindex] {
|
|
33
|
-
-ms-touch-action: manipulation;
|
|
34
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// 1. Change the font styles in all browsers
|
|
2
|
-
// 2. Remove the margin on controls in Safari
|
|
3
|
-
// 3. Show the overflow in Edge
|
|
4
|
-
button {
|
|
5
|
-
margin: 0; // 2
|
|
6
|
-
overflow: visible; // 3
|
|
7
|
-
font-family: inherit; // 1
|
|
8
|
-
text-transform: none; // 1
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// Correct the inability to style buttons in iOS and Safari
|
|
12
|
-
button,
|
|
13
|
-
[type="button"],
|
|
14
|
-
[type="reset"],
|
|
15
|
-
[type="submit"] {
|
|
16
|
-
-webkit-appearance: button;
|
|
17
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// 1. Correct the inheritance and scaling of font size in all browsers
|
|
2
|
-
// 2. Correct the odd `em` font sizing in all browsers
|
|
3
|
-
pre,
|
|
4
|
-
code,
|
|
5
|
-
kbd,
|
|
6
|
-
samp {
|
|
7
|
-
font-size: 0.875em; // 2
|
|
8
|
-
font-family: var(--font-family); // 1
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// Prevent overflow of the container in all browsers (opinionated)
|
|
12
|
-
pre {
|
|
13
|
-
-ms-overflow-style: scrollbar;
|
|
14
|
-
overflow: auto;
|
|
15
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Document
|
|
3
|
-
* Content-box & Responsive typography
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
// Reboot based on :
|
|
7
|
-
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
|
|
8
|
-
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
|
|
9
|
-
// ––––––––––––––––––––
|
|
10
|
-
|
|
11
|
-
// 1. Add border box sizing in all browsers (opinionated)
|
|
12
|
-
// 2. Backgrounds do not repeat by default (opinionated)
|
|
13
|
-
*,
|
|
14
|
-
*::before,
|
|
15
|
-
*::after {
|
|
16
|
-
box-sizing: border-box; // 1
|
|
17
|
-
background-repeat: no-repeat; // 2
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// 1. Add text decoration inheritance in all browsers (opinionated)
|
|
21
|
-
// 2. Add vertical alignment inheritance in all browsers (opinionated)
|
|
22
|
-
::before,
|
|
23
|
-
::after {
|
|
24
|
-
text-decoration: inherit; // 1
|
|
25
|
-
vertical-align: inherit; // 2
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// 1. Use the default cursor in all browsers (opinionated)
|
|
29
|
-
// 2. Change the line height in all browsers (opinionated)
|
|
30
|
-
// 3. Breaks words to prevent overflow in all browsers (opinionated)
|
|
31
|
-
// 4. Use a 4-space tab width in all browsers (opinionated)
|
|
32
|
-
// 5. Remove the grey highlight on links in iOS (opinionated)
|
|
33
|
-
// 6. Prevent adjustments of font size after orientation changes in iOS
|
|
34
|
-
:where(:root) {
|
|
35
|
-
// -webkit-tap-highlight-color: transparent; // 5
|
|
36
|
-
-webkit-text-size-adjust: 100%; // 6
|
|
37
|
-
text-size-adjust: 100%; // 6
|
|
38
|
-
text-rendering: optimizeLegibility;
|
|
39
|
-
background-color: var(--background-color);
|
|
40
|
-
color: var(--color);
|
|
41
|
-
font-weight: var(--font-weight);
|
|
42
|
-
font-size: var(--font-size);
|
|
43
|
-
line-height: var(--line-height); // 2
|
|
44
|
-
font-family: var(--font-family);
|
|
45
|
-
overflow-wrap: break-word; // 3
|
|
46
|
-
cursor: default; // 1
|
|
47
|
-
tab-size: 4; // 4
|
|
48
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// Change the alignment on media elements in all browsers (opinionated)
|
|
2
|
-
:where(audio, canvas, iframe, img, svg, video) {
|
|
3
|
-
vertical-align: middle;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
// Add the correct display in IE 9-
|
|
7
|
-
audio,
|
|
8
|
-
video {
|
|
9
|
-
display: inline-block;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// Add the correct display in iOS 4-7
|
|
13
|
-
audio:not([controls]) {
|
|
14
|
-
display: none;
|
|
15
|
-
height: 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// Remove the border on iframes in all browsers (opinionated)
|
|
19
|
-
:where(iframe) {
|
|
20
|
-
border-style: none;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// 1. Remove the border on images inside links in IE 10.
|
|
24
|
-
// 2. Responsive by default
|
|
25
|
-
img {
|
|
26
|
-
max-width: 100%; // 2
|
|
27
|
-
height: auto; // 2
|
|
28
|
-
border-style: none; // 1
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Change the fill color to match the text color in all browsers (opinionated)
|
|
32
|
-
:where(svg:not([fill])) {
|
|
33
|
-
fill: currentColor;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// Hide the overflow in IE
|
|
37
|
-
svg:not(:root) {
|
|
38
|
-
overflow: hidden;
|
|
39
|
-
}
|