Skip to content

Commit 6a2dd47

Browse files
committed
Minor CSS update; add MQ to reduce font-size on narrow screens
1 parent 2637f85 commit 6a2dd47

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

style.css

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
html {
22
overflow-y: scroll;
3-
-webkit-tap-highlight-color: transparent;
3+
-webkit-tap-highlight-color: rgba(0,0,0,0);
44
-webkit-text-size-adjust: 100%;
55
-ms-text-size-adjust: 100%;
66
}
@@ -9,7 +9,7 @@ body {
99
max-width: 480px;
1010
padding: 0 0 40px;
1111
margin: 0 auto;
12-
font: 16px/1.4 Calibri, sans-serif;
12+
font: 1em/1.4 Calibri, sans-serif;
1313
color: #222;
1414
background: #fff;
1515
_width: 480px;
@@ -104,8 +104,8 @@ p {
104104
padding: 6px 15px;
105105
border: 1px solid #487310;
106106
margin: 20px 0 0;
107-
font-size: 22px;
108-
line-height: 28px;
107+
font-size: 1.375em;
108+
line-height: 1.273;
109109
color: #fff;
110110
background: #6EAD1A;
111111
text-shadow:0 1px 1px rgba(0,0,0,0.4);
@@ -148,5 +148,19 @@ p {
148148
padding: 10px 0 0;
149149
border-top: 1px solid #ccc;
150150
margin: 3em 0 0;
151-
font-size: 13px;
151+
font-size: 0.8125em;
152+
}
153+
154+
@media screen and (max-width:480px) {
155+
body {
156+
font-size: 0.875em;
157+
}
158+
159+
h1 {
160+
font-size: 3em;
161+
}
162+
163+
.fork {
164+
display: none;
165+
}
152166
}

0 commit comments

Comments
 (0)