Skip to content

Commit 51577da

Browse files
committed
Consolidate and convert .masthead media-queries
`max-width` queries are poor form, so this moves things into a mobile- first, `min-width` direction. Note that these changes do not disturb the way the page is rendered.
1 parent 98e8737 commit 51577da

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

_sass/_ed.scss

+10-12
Original file line numberDiff line numberDiff line change
@@ -233,35 +233,33 @@ tbody tr:nth-child(odd) th {
233233
font-family: $main-font;
234234
font-size: 1.8rem;
235235
line-height: .777em;
236-
margin-top: 2px;
236+
margin-top: 2em;
237237
margin-bottom: 0;
238+
margin-right: 0;
239+
margin-left: 0;
240+
text-align: center;
238241
}
239242

240243
.masthead-title small {
241244
color: $text-color;
245+
display: none; /* This is an accessibility no-no */
242246
font-family: $heading-font;
243247
font-size: .88rem;
244248
font-weight: 300;
245249
letter-spacing: .05rem;
246250
}
247251

248-
249-
@media (max-width: 48em) {
252+
@media (min-width: 320px) {
250253
.masthead-title {
254+
margin-top: 2px;
251255
margin-right: 15%;
252256
margin-left: 15%;
253-
text-align: center;
254-
}
255-
.masthead-title small {
256-
display: none;
257257
}
258258
}
259259

260-
@media (max-width: 320px) {
261-
.masthead-title {
262-
margin-top: 2em;
263-
margin-right: 0%;
264-
margin-left: 0%;
260+
@media (min-width: 48em) {
261+
.masthead-title small {
262+
display: inline;
265263
}
266264
}
267265

0 commit comments

Comments
 (0)