forked from Andy-set-studio/some-nice-basic-css
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.css
126 lines (106 loc) · 1.84 KB
/
global.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/* Globals */
body {
background: #f3f3f3;
color: #252525;
padding: 3rem 0;
line-height: 1.5;
font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
h1,
h2,
h3 {
line-height: 1.2;
max-width: 35ch;
}
h1 {
font-size: 2.5rem;
}
h2 {
font-size: 2rem;
}
h3 {
font-size: 1.75rem;
}
/* More info: https://piccalil.li/quick-tip/limit-line-lengths-to-increase-readability/ */
p,
li,
dl {
max-width: 70ch;
}
dl {
display: grid;
grid-template-columns: minmax(auto, 20ch) 1fr;
grid-gap: 0.5rem 1rem;
}
dt {
font-weight: bold;
}
li + li {
margin-top: 0.7rem;
}
blockquote {
border-left: 0.25rem solid;
font-style: italic;
font-size: 1.25rem;
line-height: 1.35;
max-width: 55ch;
padding-left: 1.25rem;
}
code {
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
font-size: 0.95em;
font-weight: bold;
}
pre {
padding: 1.25rem;
background: #e4e6ec;
max-width: 90ch;
}
pre code {
display: block;
width: 100%;
word-spacing: normal;
word-break: normal;
tab-size: 2;
hyphens: none;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
/* Links and focus states */
a {
color: currentColor;
}
a:hover {
text-decoration: none;
}
:focus {
outline: 1px dashed currentColor;
outline-offset: 0.15rem;
}
/* Handy utils */
.wrapper {
max-width: 65rem;
margin-left: auto;
margin-right: auto;
padding-left: 1.25rem;
padding-right: 1.25rem;
}
/* More info: https://piccalil.li/quick-tip/flow-css-utility/ */
.flow > * + * {
margin-top: var(--flow-space, 1em);
}
/* A handy composition block for managing content flow. More on this sorta thing: https://cube.fyi */
.post {
font-size: 1.125rem;
--flow-space: 1.8rem;
}
.post h2,
.post h3,
.post footer {
--flow-space: 3rem;
}
.post h1 + *,
.post h2 + *,
.post h3 + * {
--flow-space: 1rem;
}