Skip to content

Commit e9b53b3

Browse files
committed
Add <body> padding to aid readability with narrow viewports. Other minor edits
1 parent 15e7c50 commit e9b53b3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

style.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
html {
2+
font-size: 100%;
23
overflow-y: scroll;
34
-webkit-tap-highlight-color: rgba(0,0,0,0);
45
-webkit-text-size-adjust: 100%;
@@ -7,7 +8,7 @@ html {
78

89
body {
910
max-width: 480px;
10-
padding: 0 0 40px;
11+
padding: 0 10px;
1112
margin: 0 auto;
1213
font: 1em/1.4 Calibri, sans-serif;
1314
color: #222;
@@ -49,7 +50,7 @@ pre {
4950
display: block;
5051
padding: 5px;
5152
margin: 1em 0;
52-
font-family: consolas, monospace, monospace;
53+
font-family: consolas, monospace;
5354
font-size: 1em;
5455
color: #fff;
5556
background: #222;
@@ -69,7 +70,7 @@ li {
6970
}
7071

7172
h1 {
72-
margin: 0.5em 0;
73+
margin: 0.25em 0 0.5em;
7374
font-size: 3.5em;
7475
}
7576

@@ -145,7 +146,7 @@ p {
145146
}
146147

147148
.footer {
148-
padding: 10px 0 0;
149+
padding: 10px 0;
149150
border-top: 1px solid #ccc;
150151
margin: 3em 0 0;
151152
font-size: 0.8125em;

0 commit comments

Comments
 (0)