-
Notifications
You must be signed in to change notification settings - Fork 387
/
Copy pathlayout.scss
188 lines (158 loc) · 2.95 KB
/
layout.scss
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
// Layout
// ==========================
// Remove top margins from first item and bottom margins from last item
.usa-section,
.usa-grid,
.usa-width-one-whole,
.usa-width-one-half,
.usa-width-one-third,
.usa-width-two-thirds,
.usa-width-one-fourth,
.usa-width-three-fourths,
.usa-width-one-sixth,
.usa-width-five-sixths,
.usa-width-one-twelfth {
h1,
h2,
h3,
h4,
h5,
h6,
p {
&:first-child {
margin-top: 0;
}
&:last-child:not(:only-child) {
margin-bottom: 0;
}
}
}
.usa-flex-vertically-top {
margin-bottom: $section-margins;
}
@include media($medium-screen) {
.usa-flex {
display: flex;
}
.usa-flex-vertically-top {
align-self: flex-start;
flex-direction: column;
}
.usa-flex-vertically-bottom {
align-self: flex-end;
flex-direction: column;
}
}
.usa-section {
@include padding($section-margins null);
.page-lead {
margin-top: 0;
}
}
.background-gray {
background-color: $color-gray-lightest;
}
.background-dark {
background-color: $color-dark;
color: $color-white;
-webkit-font-smoothing: antialiased;
h1,
h2,
h3,
h4,
h5,
h6,
p {
color: $color-white;
}
.section-heading {
color: $color-bright;
display: inline;
letter-spacing: 0.5px;
}
h2 {
letter-spacing: 0.5px;
}
a
{
color: $color-bright;
&:hover {
color: $color-bright-hover;
}
}
.usa-search.usa-search-small [type="submit"] {
background-image: url("../img/global/search-dark.png");
background-image: url("../img/global/search-dark.svg");
}
input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="file"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"],
input[type="week"],
textarea,
select {
border-color: $color-white;
}
}
// boone did this, we should do it the right way eventually
.background-dark .usa-button.usa-button-secondary:hover {
color: $color-black;
}
// end of stuff boone did
.header_border,
.single-post {
header[role=banner] {
border-bottom: 1px solid $color-gray-lighter;
}
}
// Dark blue page intros
.section-intro {
header {
max-width: 81.2rem; // Width of 10 columns
}
.section-heading {
margin-bottom: 0;
}
.section-heading-alt {
font-size: $h2-font-size;
}
h2 {
display: inline;
font-size: $h2-font-size;
font-weight: $font-bold;
}
}
// A list of sections separated with a light border
.section-list {
border-bottom: $border-light;
ul {
margin-bottom: 0;
}
}
.content-focus {
@include margin(0 auto);
max-width: 64.063rem; // 8 column width at full screen
}
.usa-grid {
&.content-focus {
max-width: 70.563rem; // 64.063rem + 6rem (site margins)
}
}
.content-focus.content-wide {
max-width: $site-max-width;
}
.usa-content {
ol,
ul {
max-width: $text-max-width;
}
}