Skip to content

Commit 9340827

Browse files
author
Clemens Vasters
committed
Make spec header wrap on mobile instead of horizontal scroll
1 parent 7cb0959 commit 9340827

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

assets/css/style.scss

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,20 +236,29 @@ body {
236236
@media screen and (max-width: 480px) {
237237
.spec-header {
238238
font-size: 11px;
239-
padding: 5px 0;
239+
padding: 8px 0;
240+
overflow-x: visible; /* Don't scroll, allow wrap */
240241
}
241242

242243
.spec-header-content {
243244
padding: 0 10px;
244-
text-align: left;
245+
text-align: center;
246+
white-space: normal; /* Allow wrapping */
247+
line-height: 1.8; /* Space out wrapped lines */
245248
}
246249

247250
.spec-sep {
248-
margin: 0 2px;
251+
margin: 0 3px;
252+
}
253+
254+
.spec-header-title {
255+
display: block; /* Put "Specification:" on its own line */
256+
margin-bottom: 5px;
257+
margin-right: 0;
249258
}
250259

251260
body {
252-
padding-top: 50px;
261+
padding-top: 80px; /* More space for wrapped header */
253262
}
254263

255264
.wrapper {

0 commit comments

Comments
 (0)