fluxgrid-css 1.0.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 +347 -0
- package/package.json +21 -0
- package/src/assets/fonts/Neco-Variable.woff2 +0 -0
- package/src/css/animation.css +392 -0
- package/src/css/colors.css +329 -0
- package/src/css/display.css +413 -0
- package/src/css/effects.css +726 -0
- package/src/css/forms.css +411 -0
- package/src/css/grid.css +723 -0
- package/src/css/index.css +13 -0
- package/src/css/print.css +106 -0
- package/src/css/reset.css +99 -0
- package/src/css/scroll.css +188 -0
- package/src/css/sizing.css +352 -0
- package/src/css/spacing.css +530 -0
- package/src/css/tokens.css +180 -0
- package/src/css/typography.css +310 -0
- package/src/js/headfoot.js +13 -0
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
.c-font-sans {
|
|
2
|
+
font-family: var(--c-font-sans);
|
|
3
|
+
}
|
|
4
|
+
.c-font-mono {
|
|
5
|
+
font-family: var(--c-font-mono);
|
|
6
|
+
}
|
|
7
|
+
.c-font-serif {
|
|
8
|
+
font-family: var(--c-font-serif);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.c-text-xs {
|
|
12
|
+
font-size: var(--c-text-xs);
|
|
13
|
+
}
|
|
14
|
+
.c-text-sm {
|
|
15
|
+
font-size: var(--c-text-sm);
|
|
16
|
+
}
|
|
17
|
+
.c-text-base {
|
|
18
|
+
font-size: var(--c-text-base);
|
|
19
|
+
}
|
|
20
|
+
.c-text-lg {
|
|
21
|
+
font-size: var(--c-text-lg);
|
|
22
|
+
}
|
|
23
|
+
.c-text-xl {
|
|
24
|
+
font-size: var(--c-text-xl);
|
|
25
|
+
}
|
|
26
|
+
.c-text-2xl {
|
|
27
|
+
font-size: var(--c-text-2xl);
|
|
28
|
+
}
|
|
29
|
+
.c-text-3xl {
|
|
30
|
+
font-size: var(--c-text-3xl);
|
|
31
|
+
}
|
|
32
|
+
.c-text-4xl {
|
|
33
|
+
font-size: var(--c-text-4xl);
|
|
34
|
+
}
|
|
35
|
+
.c-text-5xl {
|
|
36
|
+
font-size: var(--c-text-5xl);
|
|
37
|
+
}
|
|
38
|
+
.c-text-6xl {
|
|
39
|
+
font-size: var(--c-text-6xl);
|
|
40
|
+
}
|
|
41
|
+
.c-text-7xl {
|
|
42
|
+
font-size: var(--c-text-7xl);
|
|
43
|
+
}
|
|
44
|
+
.c-text-8xl {
|
|
45
|
+
font-size: var(--c-text-8xl);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.c-font-thin {
|
|
49
|
+
font-weight: 100;
|
|
50
|
+
}
|
|
51
|
+
.c-font-light {
|
|
52
|
+
font-weight: 300;
|
|
53
|
+
}
|
|
54
|
+
.c-font-normal {
|
|
55
|
+
font-weight: 400;
|
|
56
|
+
}
|
|
57
|
+
.c-font-medium {
|
|
58
|
+
font-weight: 500;
|
|
59
|
+
}
|
|
60
|
+
.c-font-semibold {
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
}
|
|
63
|
+
.c-font-bold {
|
|
64
|
+
font-weight: 700;
|
|
65
|
+
}
|
|
66
|
+
.c-font-extrabold {
|
|
67
|
+
font-weight: 800;
|
|
68
|
+
}
|
|
69
|
+
.c-font-black {
|
|
70
|
+
font-weight: 900;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.c-leading-none {
|
|
74
|
+
line-height: 1;
|
|
75
|
+
}
|
|
76
|
+
.c-leading-tight {
|
|
77
|
+
line-height: 1.25;
|
|
78
|
+
}
|
|
79
|
+
.c-leading-snug {
|
|
80
|
+
line-height: 1.375;
|
|
81
|
+
}
|
|
82
|
+
.c-leading-normal {
|
|
83
|
+
line-height: 1.5;
|
|
84
|
+
}
|
|
85
|
+
.c-leading-relaxed {
|
|
86
|
+
line-height: 1.625;
|
|
87
|
+
}
|
|
88
|
+
.c-leading-loose {
|
|
89
|
+
line-height: 2;
|
|
90
|
+
}
|
|
91
|
+
.c-leading-3 {
|
|
92
|
+
line-height: 12px;
|
|
93
|
+
}
|
|
94
|
+
.c-leading-4 {
|
|
95
|
+
line-height: 16px;
|
|
96
|
+
}
|
|
97
|
+
.c-leading-5 {
|
|
98
|
+
line-height: 20px;
|
|
99
|
+
}
|
|
100
|
+
.c-leading-6 {
|
|
101
|
+
line-height: 24px;
|
|
102
|
+
}
|
|
103
|
+
.c-leading-7 {
|
|
104
|
+
line-height: 28px;
|
|
105
|
+
}
|
|
106
|
+
.c-leading-8 {
|
|
107
|
+
line-height: 32px;
|
|
108
|
+
}
|
|
109
|
+
.c-leading-9 {
|
|
110
|
+
line-height: 36px;
|
|
111
|
+
}
|
|
112
|
+
.c-leading-10 {
|
|
113
|
+
line-height: 40px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.c-tracking-tighter {
|
|
117
|
+
letter-spacing: -0.05em;
|
|
118
|
+
}
|
|
119
|
+
.c-tracking-tight {
|
|
120
|
+
letter-spacing: -0.025em;
|
|
121
|
+
}
|
|
122
|
+
.c-tracking-normal {
|
|
123
|
+
letter-spacing: 0em;
|
|
124
|
+
}
|
|
125
|
+
.c-tracking-wide {
|
|
126
|
+
letter-spacing: 0.025em;
|
|
127
|
+
}
|
|
128
|
+
.c-tracking-wider {
|
|
129
|
+
letter-spacing: 0.05em;
|
|
130
|
+
}
|
|
131
|
+
.c-tracking-widest {
|
|
132
|
+
letter-spacing: 0.1em;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.c-text-left {
|
|
136
|
+
text-align: left;
|
|
137
|
+
}
|
|
138
|
+
.c-text-center {
|
|
139
|
+
text-align: center;
|
|
140
|
+
}
|
|
141
|
+
.c-text-right {
|
|
142
|
+
text-align: right;
|
|
143
|
+
}
|
|
144
|
+
.c-text-justify {
|
|
145
|
+
text-align: justify;
|
|
146
|
+
}
|
|
147
|
+
.c-text-start {
|
|
148
|
+
text-align: start;
|
|
149
|
+
}
|
|
150
|
+
.c-text-end {
|
|
151
|
+
text-align: end;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.c-uppercase {
|
|
155
|
+
text-transform: uppercase;
|
|
156
|
+
}
|
|
157
|
+
.c-lowercase {
|
|
158
|
+
text-transform: lowercase;
|
|
159
|
+
}
|
|
160
|
+
.c-capitalize {
|
|
161
|
+
text-transform: capitalize;
|
|
162
|
+
}
|
|
163
|
+
.c-normal-case {
|
|
164
|
+
text-transform: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.c-italic {
|
|
168
|
+
font-style: italic;
|
|
169
|
+
}
|
|
170
|
+
.c-not-italic {
|
|
171
|
+
font-style: normal;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.c-underline {
|
|
175
|
+
text-decoration-line: underline;
|
|
176
|
+
}
|
|
177
|
+
.c-overline {
|
|
178
|
+
text-decoration-line: overline;
|
|
179
|
+
}
|
|
180
|
+
.c-line-through {
|
|
181
|
+
text-decoration-line: line-through;
|
|
182
|
+
}
|
|
183
|
+
.c-no-underline {
|
|
184
|
+
text-decoration-line: none;
|
|
185
|
+
}
|
|
186
|
+
.c-underline-dotted {
|
|
187
|
+
text-decoration-style: dotted;
|
|
188
|
+
}
|
|
189
|
+
.c-underline-dashed {
|
|
190
|
+
text-decoration-style: dashed;
|
|
191
|
+
}
|
|
192
|
+
.c-underline-offset-1 {
|
|
193
|
+
text-underline-offset: 1px;
|
|
194
|
+
}
|
|
195
|
+
.c-underline-offset-2 {
|
|
196
|
+
text-underline-offset: 2px;
|
|
197
|
+
}
|
|
198
|
+
.c-underline-offset-4 {
|
|
199
|
+
text-underline-offset: 4px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.c-truncate {
|
|
203
|
+
overflow: hidden;
|
|
204
|
+
text-overflow: ellipsis;
|
|
205
|
+
white-space: nowrap;
|
|
206
|
+
}
|
|
207
|
+
.c-text-ellipsis {
|
|
208
|
+
text-overflow: ellipsis;
|
|
209
|
+
}
|
|
210
|
+
.c-text-clip {
|
|
211
|
+
text-overflow: clip;
|
|
212
|
+
}
|
|
213
|
+
.c-whitespace-normal {
|
|
214
|
+
white-space: normal;
|
|
215
|
+
}
|
|
216
|
+
.c-whitespace-nowrap {
|
|
217
|
+
white-space: nowrap;
|
|
218
|
+
}
|
|
219
|
+
.c-whitespace-pre {
|
|
220
|
+
white-space: pre;
|
|
221
|
+
}
|
|
222
|
+
.c-whitespace-pre-line {
|
|
223
|
+
white-space: pre-line;
|
|
224
|
+
}
|
|
225
|
+
.c-whitespace-pre-wrap {
|
|
226
|
+
white-space: pre-wrap;
|
|
227
|
+
}
|
|
228
|
+
.c-break-normal {
|
|
229
|
+
overflow-wrap: normal;
|
|
230
|
+
word-break: normal;
|
|
231
|
+
}
|
|
232
|
+
.c-break-words {
|
|
233
|
+
overflow-wrap: break-word;
|
|
234
|
+
}
|
|
235
|
+
.c-break-all {
|
|
236
|
+
word-break: break-all;
|
|
237
|
+
}
|
|
238
|
+
.c-break-keep {
|
|
239
|
+
word-break: keep-all;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.c-list-none {
|
|
243
|
+
list-style-type: none;
|
|
244
|
+
}
|
|
245
|
+
.c-list-disc {
|
|
246
|
+
list-style-type: disc;
|
|
247
|
+
}
|
|
248
|
+
.c-list-decimal {
|
|
249
|
+
list-style-type: decimal;
|
|
250
|
+
}
|
|
251
|
+
.c-list-inside {
|
|
252
|
+
list-style-position: inside;
|
|
253
|
+
}
|
|
254
|
+
.c-list-outside {
|
|
255
|
+
list-style-position: outside;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.c-antialiased {
|
|
259
|
+
-webkit-font-smoothing: antialiased;
|
|
260
|
+
-moz-osx-font-smoothing: grayscale;
|
|
261
|
+
}
|
|
262
|
+
.c-subpixel-antialiased {
|
|
263
|
+
-webkit-font-smoothing: auto;
|
|
264
|
+
-moz-osx-font-smoothing: auto;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.c-indent-0 {
|
|
268
|
+
text-indent: 0;
|
|
269
|
+
}
|
|
270
|
+
.c-indent-4 {
|
|
271
|
+
text-indent: 16px;
|
|
272
|
+
}
|
|
273
|
+
.c-indent-8 {
|
|
274
|
+
text-indent: 32px;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.c-align-baseline {
|
|
278
|
+
vertical-align: baseline;
|
|
279
|
+
}
|
|
280
|
+
.c-align-top {
|
|
281
|
+
vertical-align: top;
|
|
282
|
+
}
|
|
283
|
+
.c-align-middle {
|
|
284
|
+
vertical-align: middle;
|
|
285
|
+
}
|
|
286
|
+
.c-align-bottom {
|
|
287
|
+
vertical-align: bottom;
|
|
288
|
+
}
|
|
289
|
+
.c-align-text-top {
|
|
290
|
+
vertical-align: text-top;
|
|
291
|
+
}
|
|
292
|
+
.c-align-sub {
|
|
293
|
+
vertical-align: sub;
|
|
294
|
+
}
|
|
295
|
+
.c-align-super {
|
|
296
|
+
vertical-align: super;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.c-columns-1 {
|
|
300
|
+
columns: 1;
|
|
301
|
+
}
|
|
302
|
+
.c-columns-2 {
|
|
303
|
+
columns: 2;
|
|
304
|
+
}
|
|
305
|
+
.c-columns-3 {
|
|
306
|
+
columns: 3;
|
|
307
|
+
}
|
|
308
|
+
.c-columns-4 {
|
|
309
|
+
columns: 4;
|
|
310
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function loadComponent(id, file) {
|
|
2
|
+
fetch(file)
|
|
3
|
+
.then(res => res.text())
|
|
4
|
+
.then(data => {
|
|
5
|
+
document.getElementById(id).innerHTML = data;
|
|
6
|
+
})
|
|
7
|
+
.catch(err => console.error(`Error loading ${file}:`, err));
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
window.addEventListener("DOMContentLoaded", () => {
|
|
11
|
+
loadComponent("header", "header.html");
|
|
12
|
+
loadComponent("footer", "footer.html");
|
|
13
|
+
});
|