-
-
Notifications
You must be signed in to change notification settings - Fork 500
Expand file tree
/
Copy pathstyle.css
More file actions
89 lines (76 loc) · 1.33 KB
/
Copy pathstyle.css
File metadata and controls
89 lines (76 loc) · 1.33 KB
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
:root {
--paper: white;
--ink: black;
--font: 100%/1.5 system-ui, sans-serif;
--space: clamp(6px, 6px + 2vw, 15px);
--line: 1px solid black;
--container: 900px;
}
body {
margin: 0;
background: var(--paper);
color: var(--ink);
font: var(--font);
}
header {
text-align: center;
padding: calc(var(--space) * 2);
}
h1,
h2,
p {
margin-top: 0;
}
main {
max-width: var(--container);
margin: 0 auto calc(var(--space) * 8);
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space);
padding: 0 var(--space);
}
main > article:first-child {
grid-column: span 2;
}
article {
border: var(--line);
display: grid;
grid-template-columns: var(--space) 1fr var(--space);
padding-bottom: var(--space);
}
article > * {
grid-column: 2;
}
article > img {
grid-column: 1 / -1;
}
img {
width: 100%;
height: 220px;
object-fit: cover;
border-bottom: var(--line);
}
main > article:first-child img {
height: 280px;
}
a {
border: var(--line);
color: var(--ink);
max-width: fit-content;
padding: calc(var(--space) / 2) var(--space);
text-decoration: none;
}
a:focus {
outline: 3px solid currentColor;
outline-offset: 3px;
}
footer {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
background: var(--paper);
border-top: var(--line);
text-align: center;
padding: var(--space);
}