tangled
alpha
login
or
join now
devins.page
/
dev.css
tiny, simple, classless CSS framework inspired by new.css
devcss.devins.page
framework
lightweight
css
classless
stylesheet
1
fork
atom
overview
issues
pulls
pipelines
feat: table of contents, consistent case
devins.page
2 years ago
5da78ef2
94e3fb29
+29
-8
1 changed file
expand all
collapse all
unified
split
dev.css
+29
-8
dev.css
···
1
1
/* dev.css v3, a classless CSS framework - https://github.com/intergrav/dev.css */
2
2
3
3
+
/* Table of Contents
4
4
+
1. Configuration
5
5
+
2. Dark Mode Handling
6
6
+
3. CSS Reset
7
7
+
4. Margins for Most Elements
8
8
+
5. Font Family
9
9
+
6. Body and Selection Styling
10
10
+
7. Typography
11
11
+
8. Blockquotes
12
12
+
9. Header
13
13
+
10. Footer
14
14
+
11. Buttons and Inputs
15
15
+
12. Code and Keyboards
16
16
+
13. Details
17
17
+
14. Description Lists
18
18
+
15. Horizontal Rules
19
19
+
16. Fieldsets
20
20
+
17. Tables
21
21
+
18. Lists
22
22
+
*/
23
23
+
3
24
/* 1. Configuration */
4
25
:root {
5
26
/* Font families */
···
34
55
--dc-d-ac-tx: #ededed;
35
56
}
36
57
37
37
-
/* 2. Dark mode handling */
58
58
+
/* 2. Dark Mode Handling */
38
59
@media (prefers-color-scheme: dark) {
39
60
:root {
40
61
--dc-tx-1: var(--dc-d-tx-1);
···
85
106
isolation: isolate;
86
107
}
87
108
88
88
-
/* 4. Margins for most elements */
109
109
+
/* 4. Margins for Most Elements */
89
110
address,
90
111
area,
91
112
article,
···
119
140
margin-bottom: 1rem;
120
141
}
121
142
122
122
-
/* 5. Font family */
143
143
+
/* 5. Font Family */
123
144
html {
124
145
font-family: var(--dc-font-sans);
125
146
}
···
131
152
font-family: var(--dc-font-mono);
132
153
}
133
154
134
134
-
/* 6. Body and selection styling */
155
155
+
/* 6. Body and Selection Styling */
135
156
body {
136
157
margin: 0 auto;
137
158
max-width: 48rem;
···
279
300
border-bottom: 0;
280
301
}
281
302
282
282
-
/* 11. Buttons and inputs */
303
303
+
/* 11. Buttons and Inputs */
283
304
a button,
284
305
button,
285
306
input[type="submit"],
···
337
358
max-width: 100%;
338
359
}
339
360
340
340
-
/* 12. Code and keyboards */
361
361
+
/* 12. Code and Keyboards */
341
362
code,
342
363
samp,
343
364
kbd,
···
386
407
padding-bottom: 0;
387
408
}
388
409
389
389
-
/* 14. Description lists */
410
410
+
/* 14. Description Lists */
390
411
dt {
391
412
font-weight: bold;
392
413
}
···
395
416
content: "→ ";
396
417
}
397
418
398
398
-
/* 15. Horizontal rules */
419
419
+
/* 15. Horizontal Rules */
399
420
hr {
400
421
border: 0;
401
422
border-bottom: 1px solid var(--dc-bg-3);