UNPKG

4.15 kBCSSView Raw
1dt-article {
2 display: block;
3 color: rgba(0, 0, 0, 0.8);
4 font: 17px/1.55em -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
5 padding-bottom: 72px;
6 overflow: hidden;
7 background: white;
8 min-height: calc(100vh - 70px - 182px);
9}
10
11@media(min-width: 1024px) {
12 dt-article {
13 font-size: 20px;
14 }
15}
16
17/* H1 */
18
19dt-article h1 {
20 margin-top: 18px;
21 font-weight: 400;
22 font-size: 40px;
23 line-height: 1em;
24 font-family: HoeflerText-Regular, Cochin, Georgia, serif;
25}
26@media(min-width: 768px) {
27 dt-article h1 {
28 font-size: 46px;
29 margin-top: 48px;
30 margin-bottom: 12px;
31 }
32}
33
34@media(min-width: 1080px) {
35 .centered h1 {
36 text-align: center;
37 }
38
39 dt-article h1 {
40 font-size: 50px;
41 letter-spacing: -0.02em;
42 }
43
44 dt-article > h1:first-of-type,
45 dt-article section > h1:first-of-type {
46 margin-top: 80px;
47 }
48}
49
50
51@media(min-width: 1200px) {
52 dt-article h1 {
53 font-size: 56px;
54 }
55
56 dt-article > h1:first-of-type {
57 margin-top: 100px;
58 }
59}
60
61/* H2 */
62
63dt-article h2 {
64 font-family: HoeflerText-Regular, Cochin, Georgia, serif;
65 font-weight: 400;
66 font-size: 26px;
67 line-height: 1.25em;
68 margin-top: 36px;
69 margin-bottom: 24px;
70}
71
72@media(min-width: 1024px) {
73 dt-article h2 {
74 margin-top: 48px;
75 font-size: 30px;
76 }
77}
78
79dt-article h1 + h2 {
80 font-weight: 300;
81 font-size: 20px;
82 line-height: 1.4em;
83 margin-top: 8px;
84 font-style: normal;
85}
86
87
88@media(min-width: 1080px) {
89 .centered h1 + h2 {
90 text-align: center;
91 }
92 dt-article h1 + h2 {
93 margin-top: 12px;
94 font-size: 24px;
95 }
96}
97
98/* H3 */
99
100dt-article h3 {
101 font-family: HoeflerText-Regular, Georgia, serif;
102 font-weight: 400;
103 font-size: 20px;
104 line-height: 1.4em;
105 margin-top: 36px;
106 margin-bottom: 18px;
107 font-style: italic;
108}
109
110dt-article h1 + h3 {
111 margin-top: 48px;
112}
113
114@media(min-width: 1024px) {
115 dt-article h3 {
116 font-size: 26px;
117 }
118}
119
120/* H4 */
121
122dt-article h4 {
123 font-weight: 600;
124 text-transform: uppercase;
125 font-size: 14px;
126 line-height: 1.4em;
127}
128
129dt-article a {
130 color: inherit;
131}
132
133dt-article p,
134dt-article ul,
135dt-article ol {
136 margin-bottom: 24px;
137 font-family: Georgia, serif;
138}
139
140dt-article p b,
141dt-article ul b,
142dt-article ol b {
143 -webkit-font-smoothing: antialiased;
144}
145
146dt-article a {
147 border-bottom: 1px solid rgba(0, 0, 0, 0.4);
148 text-decoration: none;
149}
150
151dt-article a:hover {
152 border-bottom: 1px solid rgba(0, 0, 0, 0.8);
153}
154
155dt-article .link {
156 text-decoration: underline;
157 cursor: pointer;
158}
159
160dt-article ul,
161dt-article ol {
162 padding-left: 24px;
163}
164
165dt-article li {
166 margin-bottom: 24px;
167 margin-left: 0;
168 padding-left: 0;
169}
170
171dt-article pre {
172 font-size: 14px;
173 margin-bottom: 20px;
174}
175
176
177dt-article hr {
178 border: none;
179 border-bottom: 1px solid rgba(0, 0, 0, 0.2);
180 margin-top: 60px;
181 margin-bottom: 60px;
182}
183
184dt-article section {
185 margin-top: 60px;
186 margin-bottom: 60px;
187}
188
189
190/* Figure */
191
192dt-article figure {
193 position: relative;
194 margin-top: 30px;
195 margin-bottom: 30px;
196}
197
198@media(min-width: 1024px) {
199 dt-article figure {
200 margin-top: 48px;
201 margin-bottom: 48px;
202 }
203}
204
205dt-article figure img {
206 width: 100%;
207}
208
209dt-article figure svg text,
210dt-article figure svg tspan {
211}
212
213dt-article figure figcaption {
214 color: rgba(0, 0, 0, 0.6);
215 font-size: 12px;
216 line-height: 1.5em;
217}
218@media(min-width: 1024px) {
219 dt-article figure figcaption {
220 font-size: 13px;
221 }
222}
223
224dt-article figure.external img {
225 background: white;
226 border: 1px solid rgba(0, 0, 0, 0.1);
227 box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
228 padding: 18px;
229 box-sizing: border-box;
230}
231
232dt-article figure figcaption a {
233 color: rgba(0, 0, 0, 0.6);
234}
235
236/*dt-article figure figcaption::before {
237 position: relative;
238 display: block;
239 top: -20px;
240 content: "";
241 width: 25px;
242 border-top: 1px solid rgba(0, 0, 0, 0.3);
243}*/
244
245dt-article span.equation-mimic {
246 font-family: georgia;
247 font-size: 115%;
248 font-style: italic;
249}
250
251dt-article figure figcaption b {
252 font-weight: 600;
253 color: rgba(0, 0, 0, 1.0);
254}
255
256dt-article > dt-code,
257dt-article section > dt-code {
258 display: block;
259}
260
261dt-article .citation {
262 color: #668;
263 cursor: pointer;
264}
265
266dt-include {
267 width: auto;
268 display: block;
269}