1
1
: root {
2
2
-webkit-text-size-adjust : 100% ;
3
+ --sans-serif : system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI' , Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans' , 'Helvetica Neue' , sans-serif;
4
+ --border-color : hsl (0 , 0% , 87% );
3
5
}
4
6
5
7
body {
6
8
font-family : Georgia, "Times New Roman" , Times, serif;
7
- color : # 000 ;
8
- font-size : 1.1 em ;
9
+ color : hsl ( 0 , 0 % , 0 % ) ;
10
+ font-size : 1.1 rem ;
9
11
line-height : 1.5 ;
10
12
margin : 0 ;
11
13
}
12
14
13
15
h2 , h3 , h4 , h5 {
14
- font-family : Arial, Helvetica, sans-serif;
16
+ font-family : sans-serif;
17
+ font-family : var (--sans-serif );
15
18
margin : 0 ;
16
19
}
17
20
@@ -28,38 +31,52 @@ a:hover {
28
31
text-decoration : none;
29
32
}
30
33
34
+ .sr-only {
35
+ border : 0 ;
36
+ clip : rect (1px , 1px , 1px , 1px );
37
+ -webkit-clip-path : inset (50% );
38
+ clip-path : inset (50% );
39
+ height : 1px ;
40
+ overflow : hidden;
41
+ padding : 0 ;
42
+ position : absolute;
43
+ width : 1px ;
44
+ white-space : nowrap;
45
+ }
46
+
31
47
.title-block {
32
- margin : 10 px ;
48
+ margin : .625 rem ;
33
49
text-align : center;
34
50
}
35
51
36
52
.title-image {
37
- max-width : 320 px ;
53
+ max-width : 20 rem ;
38
54
margin : 0 auto;
39
55
}
40
56
41
57
.byline {
42
- font-family : Arial, Helvetica, sans-serif;
58
+ font-family : sans-serif;
59
+ font-family : var (--sans-serif );
43
60
font-size : 80% ;
44
- max-width : 500 px ;
61
+ max-width : 32 rem ;
45
62
margin : 0 auto;
46
63
}
47
64
48
65
.byline : not (: first-child ) {
49
- margin-top : 15 px ;
66
+ margin-top : 1 rem ;
50
67
}
51
68
52
69
.intro , .outro {
53
- max-width : 800 px ;
54
- padding : 0 10 px ;
70
+ max-width : 50 rem ;
71
+ padding : 0 1 rem ;
55
72
}
56
73
57
74
.intro {
58
- margin : 0 auto 30 px auto;
75
+ margin : 0 auto 2 rem auto;
59
76
}
60
77
61
78
.outro {
62
- margin : 20 px auto 50 px auto;
79
+ margin : 1.4 rem auto 3 rem auto;
63
80
}
64
81
65
82
.group {
@@ -68,15 +85,15 @@ a:hover {
68
85
}
69
86
70
87
.group .first {
71
- border-top : 1px solid # ddd ;
88
+ border-top : 1px solid var ( --border-color ) ;
72
89
}
73
90
74
91
.group .first .left .content , .group .first .right .content {
75
- padding-top : 20 px ;
92
+ padding-top : 1.25 rem ;
76
93
}
77
94
78
95
.group .last {
79
- border-bottom : 1px solid # ddd ;
96
+ border-bottom : 1px solid var ( --border-color ) ;
80
97
}
81
98
82
99
.group .left {
@@ -94,24 +111,25 @@ a:hover {
94
111
.group .left .content , .group .right .content {
95
112
background-color : inherit;
96
113
box-shadow : none;
97
- padding : 0 20 px 26.4 px 20 px ;
114
+ padding : 0 1.25 rem 1.65 rem 1.25 rem ;
98
115
}
99
116
100
117
.group .left .content .empty , .group .right .content .empty {
101
118
padding : 0 ;
102
119
}
103
120
104
121
.group .right {
105
- background-color : # f0f0f0 ;
122
+ background-color : hsl ( 0 , 0 % , 94 % ) ;
106
123
}
107
124
108
125
.group .right .content {
109
126
font-size : 90% ;
110
127
}
111
128
112
129
.content h3 , .content h4 {
113
- font-family : Arial, Helvetica, sans-serif;
114
- margin : 0 0 20px 0 ;
130
+ font-family : sans-serif;
131
+ font-family : var (--sans-serif );
132
+ margin : 0 0 1.25rem 0 ;
115
133
}
116
134
117
135
.content p {
@@ -126,20 +144,20 @@ a:hover {
126
144
127
145
.content ul , .content ol {
128
146
margin : 0 ;
129
- padding-inline-start : 1 em ;
147
+ padding-inline-start : 1 rem ;
130
148
}
131
149
132
150
mark {
133
- background-color : rgba ( 255 , 245 , 137 , 0.5 );
151
+ background-color : hsla ( 55 , 100 % , 77 % , 0.5 );
134
152
}
135
153
136
154
mark : hover {
137
155
cursor : pointer;
138
- background-color : # fff589 ;
156
+ background-color : hsla ( 55 , 100 % , 77 % , 1 ) ;
139
157
}
140
158
141
159
mark .selected {
142
- background-color : # fff589 ;
160
+ background-color : hsla ( 55 , 100 % , 77 % , 1 ) ;
143
161
}
144
162
145
163
mark [data-annotation-id ]::after {
@@ -148,11 +166,11 @@ mark[data-annotation-id]::after {
148
166
display : inline-block;
149
167
position : relative;
150
168
border-radius : 50% ;
151
- border : 1px solid # 000 ;
152
- width : 10 px ;
153
- height : 10 px ;
154
- font-size : 10 px ;
155
- line-height : 10 px ;
169
+ border : 1px solid hsl ( 0 , 0 % , 0 % ) ;
170
+ width : .625 rem ;
171
+ height : .625 rem ;
172
+ font-size : .625 rem ;
173
+ line-height : .625 rem ;
156
174
padding : 1px ;
157
175
text-align : center;
158
176
margin-left : 3px ;
@@ -161,20 +179,21 @@ mark[data-annotation-id]::after {
161
179
}
162
180
163
181
.content > .annotation : not (: first-child ), .content .content : not (: first-child ), .content .annotation-group : not (: first-child ) {
164
- margin-top : 10 px ;
182
+ margin-top : .625 rem ;
165
183
}
166
184
167
185
.annotation {
168
- background-color : white ;
169
- padding : 10 px ;
170
- border : 1px solid # ddd ;
186
+ background-color : hsl ( 0 , 0 % , 100 % ) ;
187
+ padding : .625 rem ;
188
+ border : 1px solid # var(var( - -border-color)) ;
171
189
}
172
190
173
191
.annotation : hover {
174
192
cursor : pointer;
175
193
}
176
194
177
- .annotation [role = comment ][data-annotation-id ]::after , .annotation-group [role = comment ][data-annotation-id ]::after {
195
+ .annotation [role = comment ][data-annotation-id ]::after ,
196
+ .annotation-group [role = comment ][data-annotation-id ]::after {
178
197
content : attr (data-annotation-id);
179
198
content : attr (data-annotation-id)/ "" ;
180
199
font-family : Georgia, "Times New Roman" , Times, serif;
@@ -183,17 +202,18 @@ mark[data-annotation-id]::after {
183
202
position : absolute;
184
203
border-radius : 50% ;
185
204
border : 1px solid # ddd ;
186
- width : 14 px ;
187
- height : 14 px ;
188
- font-size : 14 px ;
189
- line-height : 12 px ;
205
+ width : .875 rem ;
206
+ height : .875 rem ;
207
+ font-size : .875 rem ;
208
+ line-height : 1 ;
190
209
padding : 3px ;
191
210
text-align : center;
192
211
left : -8px ;
193
212
top : -8px ;
194
213
}
195
214
196
- .annotation [role = comment ], .annotation-group [role = comment ] {
215
+ .annotation [role = comment ],
216
+ .annotation-group [role = comment ] {
197
217
position : relative;
198
218
}
199
219
@@ -208,13 +228,14 @@ mark[data-annotation-id]::after {
208
228
}
209
229
210
230
.commenter {
211
- font-family : Arial, Helvetica, sans-serif;
231
+ font-family : sans-serif;
232
+ font-family : var (--sans-serif );
212
233
font-size : 80% ;
213
234
color : # 999 ;
214
235
}
215
236
216
237
.no-margin {
217
- margin : 0 !important ;
238
+ margin : 0 ;
218
239
}
219
240
220
241
.small {
@@ -226,81 +247,70 @@ mark[data-annotation-id]::after {
226
247
}
227
248
228
249
.annotation-group .annotation .thread {
229
- margin-left : 10 px ;
250
+ margin-left : .625 rem ;
230
251
}
231
252
232
253
.annotation-group .annotation .thread-2 {
233
- margin-left : 20 px ;
254
+ margin-left : 1.25 rem ;
234
255
}
235
256
236
257
.annotation-group .annotation .thread-3 {
237
- margin-left : 30 px ;
258
+ margin-left : 1.5 rem ;
238
259
}
239
260
240
261
.annotation-group .annotation .thread-4 {
241
- margin-left : 40 px ;
262
+ margin-left : 1.75 rem ;
242
263
}
243
264
244
265
.annotation-group .annotation .thread-5 {
245
- margin-left : 50 px ;
266
+ margin-left : 2 rem ;
246
267
}
247
268
248
269
.annotation-group .annotation .thread-6 {
249
- margin-left : 60 px ;
270
+ margin-left : 2.25 rem ;
250
271
}
251
272
252
273
.annotation-group .annotation .thread-7 {
253
- margin-left : 70 px ;
274
+ margin-left : 2.5 rem ;
254
275
}
255
276
256
277
.annotation-group .annotation .thread-8 {
257
- margin-left : 80 px ;
278
+ margin-left : 2.75 rem ;
258
279
}
259
280
260
281
.annotation-group .annotation .thread-9 {
261
- margin-left : 90 px ;
282
+ margin-left : 3 rem ;
262
283
}
263
284
264
285
.annotation-group .annotation .thread-10 {
265
- margin-left : 100 px ;
286
+ margin-left : 3.25 rem ;
266
287
}
267
288
268
- .sr-only {
269
- border : 0 !important ;
270
- clip : rect (1px , 1px , 1px , 1px ) !important ;
271
- -webkit-clip-path : inset (50% ) !important ;
272
- clip-path : inset (50% ) !important ;
273
- height : 1px !important ;
274
- overflow : hidden !important ;
275
- padding : 0 !important ;
276
- position : absolute !important ;
277
- width : 1px !important ;
278
- white-space : nowrap !important ;
279
- }
289
+
280
290
281
291
/* Responsive */
282
292
@media screen and (min-width : 1801px ) {
283
293
.group .left .content {
284
294
padding-left : 20% ;
285
- padding-right : 40 px ;
295
+ padding-right : 2.5 rem ;
286
296
}
287
297
288
298
.group .right .content {
289
- padding-left : 40 px ;
299
+ padding-left : 2.5 rem ;
290
300
padding-right : 20% ;
291
301
}
292
302
}
293
303
294
304
@media screen and (min-width : 1001px ) and (max-width : 1800px ) {
295
305
.group .left .content , .group .right .content {
296
- padding-left : 40 px ;
297
- padding-right : 40 px ;
306
+ padding-left : 2.5 rem ;
307
+ padding-right : 2.5 rem ;
298
308
}
299
309
}
300
310
301
311
@media screen and (min-width : 751px ) {
302
312
.group .left .content , .group .right .content {
303
- max-width : 800 px ;
313
+ max-width : 50 rem ;
304
314
}
305
315
.group .left .content {
306
316
float : right;
@@ -311,36 +321,41 @@ mark[data-annotation-id]::after {
311
321
.group {
312
322
flex-direction : column;
313
323
}
324
+
314
325
.group .left .content , .group .right .content {
315
- padding-left : 40 px ;
316
- padding-right : 40 px ;
326
+ padding-left : 2.5 rem ;
327
+ padding-right : 2.5 rem ;
317
328
}
329
+
318
330
.group .left .content {
319
- padding-top : 26.4 px ;
331
+ padding-top : 1.65 rem ;
320
332
}
333
+
321
334
.annotation {
322
- font-family : Arial, Helvetica, sans-serif;
335
+ font-family : sans-serif;
336
+ font-family : var (--sans-serif );
323
337
font-size : 90% ;
324
338
}
339
+
325
340
.content > .annotation , .annotation-group {
326
- margin-top : 20 px ;
341
+ margin-top : 1.25 rem ;
327
342
}
328
343
}
329
344
330
345
@media screen and (max-width : 480px ) {
331
346
.group .left .content , .group .right .content {
332
- padding-left : 20 px ;
333
- padding-right : 20 px ;
347
+ padding-left : 1.25 rem ;
348
+ padding-right : 1.25 rem ;
334
349
}
335
350
}
336
351
337
352
/* No-JS tweaks */
338
353
.no-jsmark : hover {
339
- cursor : auto !important ;
340
- background-color : rgba ( 255 , 245 , 137 , 0.5 ) !important ;
354
+ cursor : auto;
355
+ background-color : hsla ( 55 , 100 % , 77 % , 0.5 );
341
356
}
342
357
343
358
.no-js .annotation : hover {
344
- cursor : auto !important ;
359
+ cursor : auto;
345
360
}
346
361
0 commit comments