-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patharticle.css
More file actions
104 lines (90 loc) · 1.64 KB
/
Copy patharticle.css
File metadata and controls
104 lines (90 loc) · 1.64 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
* { box-sizing: border-box; }
html,
body {
min-height: 100vh;
font-size: 16px;
}
body {
margin: 0;
color: #161616;
background-color: #00a39b;
}
img {
max-width: 100%;
vertical-align: bottom;
}
p {
margin: 0;
}
:root {
--gap: 1rem;
--col-width: 16rem;
}
.paper {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(var(--col-width), 1fr));
grid-gap: var(--gap);
gap: var(--gap);
width: 90vw;
padding: calc(var(--gap) * 2);
margin: 2rem auto;
border-radius: var(--gap);
background-color: #e6e6e6;
box-shadow: var(--gap) var(--gap) 0 #ccc;
}
.title {
grid-area: 1 / 1 / 2 / -1;
display: grid;
grid-template-columns: 1fr auto 1fr;
grid-gap: var(--gap);
gap: var(--gap);
align-items: center;
margin: 0 0 var(--gap);
text-align: center;
line-height: 1.3em;
font-family: serif;
font-size: 2.75rem;
&::before,
&::after {
content: '';
height: 2px;
background-color: #161616;
}
}
.article {
grid-column: 1 / -2;
column-width: var(--col-width);
column-gap: var(--gap);
orphans: 2;
line-height: 1.3em;
&__title {
margin-bottom: var(--gap);
padding: var(--gap);
font-family: serif;
font-size: 1.25rem;
text-align: center;
text-transform: uppercase;
border-color: #161616;
border-width: 1px 0;
border-style: solid;
}
&__illustration {
width: 100%;
max-height: calc(1.33em * 8);
object-fit: cover;
}
> * + * {
margin-top: var(--gap);
}
}
.p {
text-align: justify;
clear: both;
}
.aside {
grid-column: -2 / -1;
padding: var(--gap);
font-family: serif;
font-size: 1.25rem;
background-color: #ccc;
}