-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharticle.css
101 lines (80 loc) · 1.83 KB
/
article.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
.grid {
--grid-lhrWidth: 40px;
--grid-rhrWidth: 300px;
--grid-contentMin: 500px;
--grid-gutterLeft: 40px;
--grid-gutterRight: minmax(20px, 1fr);
--grid-maxWidth: 100%;
--article-contentPadding: 1rem;
--article-offsetLeft: calc(var(--grid-gutterLeft) + var(--grid-lhrWidth) + var(--article-contentPadding));
/* Private variables */
--_contentWidth: minmax(var(--grid-contentMin), 700px);
width: var(--grid-maxWidth);
margin: auto;
@media (min-width: 980px) {
--grid-maxWidth: 980px;
display: grid;
grid-template-columns: var(--grid-lhrWidth) var(--grid-gutterLeft) var(--_contentWidth) var(--grid-gutterRight) var(--grid-rhrWidth);
grid-template-areas: "lhr . content . rhr";
}
@media (min-width: 1220px) {
--grid-maxWidth: 1220px;
--grid-contentMin: 600px;
--grid-gutterLeft: 80px;
}
&.grid--centered {
@media (min-width: 980px) {
--grid-contentMin: 500px;
--grid-gutterLeft: 1fr;
--grid-gutterRight: 1fr;
}
@media (min-width: 1220px) {
--grid-gutterLeft: 40px;
--grid-gutterRight: 40px;
}
}
}
.grid__lhr {
grid-area: lhr;
display: none;
@media (min-width: 980px) {
display: grid;
}
}
.grid__content {
grid-column: content;
}
.grid__rhr {
grid-area: rhr;
display: none;
@media (min-width: 980px) {
display: grid;
}
}
.concepts {
.grid__rhr & {
display: var(--_rhr, none);
}
.grid__content & {
display: var(--_content, block);
}
@media (min-width: 980px) {
--_rhr: block;
--_content: none;
[data-article-type="full-width-graphics"] & {
--_rhr: none;
--_content: block;
}
}
}
.rhr-region {
position: absolute;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
& pg-slot:last-child {
margin-bottom: 300px;
}
}