This repository was archived by the owner on Oct 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy path_fact-page.scss
More file actions
102 lines (86 loc) · 1.81 KB
/
_fact-page.scss
File metadata and controls
102 lines (86 loc) · 1.81 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
// -----------
// FACT PAGE
// -----------
// @TODO: Sync naming between SCSS files and tpl.php
.node-type-fact-page {
background: $purple;
@include wrapper--nav-white;
@include wrapper--nav-floating;
// @TODO: Sync with Dave/Maxwell on all 18px base font size for static content
p {
font-size: 18px;
}
}
.fact_page-wrapper {
background: #fff;
h2, h3, h4 {
color: $purple;
}
.header-wrapper {
padding: 7rem 1rem 1rem;
@include row;
@include media($tablet) {
padding: 7rem 0 0;
}
}
// Set gutters on mobile
.intro-wrapper, .facts-wrapper, .sources-wrapper {
padding: 1rem;
@include row;
@include media($tablet) {
padding: 0;
}
}
// Set margins on desktop
.header, .intro, .facts, .sources {
@include media($tablet) {
@include span-columns(12);
@include shift(2);
}
}
.header-wrapper {
@include header-gradient();
@include header-typography();
}
.facts-wrapper {
@include media($tablet) {
margin-top: 1.5rem;
}
}
.media-wrapper {
display: none;
margin-bottom: 1.5rem;
padding: 0 1rem;
@include media($tablet) {
@include span-columns(6 of 12);
@include omega;
display: block;
float: right;
}
}
.header {
.title {
@include media($tablet) {
font-size: $font-largest; // Slightly smaller font-size, since 11 Facts titles are title-case.
margin: 1.5rem 0;
}
}
}
.intro {
// @TODO: ಠ_ಠ
margin-top: 20px;
margin-bottom: 55px;
.intro-content {
@include media($tablet) {
@include span-columns(8 of 12);
}
}
}
.sources {
// @TODO: I just made sources small for now, need to revisit their structure
p {
font-size: $font-small;
color: $med-gray;
}
}
}