Skip to content

Commit 5326fe4

Browse files
committed
Combined js file; added preliminary mobile support
1 parent 8dc84a2 commit 5326fe4

File tree

6 files changed

+142
-63
lines changed

6 files changed

+142
-63
lines changed

css/garden.css

Lines changed: 64 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ nav h1 {
9090
article {
9191
padding-bottom: 20px;
9292
border-bottom: 4px dotted #8696a5;
93+
font-size: 16px;
9394
}
9495

9596
article section {
@@ -117,8 +118,7 @@ nav a:hover {
117118

118119
p {
119120
line-height: 1.6em;
120-
font-size: 16px;
121-
margin-bottom: 20px;
121+
margin-bottom: 1.25em;
122122
}
123123

124124
pre, code {
@@ -128,12 +128,12 @@ pre, code {
128128
pre {
129129
padding: 8px 0 12px 20px;
130130
border-left: 4px solid #566D82;
131-
margin-bottom: 20px;
131+
margin-bottom: 1.25em;
132132
background: #0F192A;
133133
}
134134

135135
article pre code {
136-
font-size: 13px;
136+
font-size: 0.8125em;
137137
line-height: 1.4em;
138138
padding: 0px;
139139
margin-top: 3px;
@@ -142,7 +142,7 @@ article pre code {
142142
}
143143

144144
article code {
145-
font-size: 0.85em;
145+
font-size: 0.875em;
146146
text-shadow: none;
147147
background: #314D67;
148148
padding: 3px 4px 1px;
@@ -155,14 +155,14 @@ h2, h3 {
155155
}
156156

157157
h2 {
158-
font-size: 30px;
159-
margin: 15px 0 20px;
160-
padding-top: 50px;
158+
font-size: 2em;
159+
margin: 0.5em 0 0.625em;
160+
padding-top: 1.5em;
161161
}
162162

163163
h3 {
164-
font-size: 18px;
165-
margin: 25px 0 15px;
164+
font-size: 1.125em;
165+
margin: 1.33em 0 0.88em;
166166
}
167167

168168
h2 code, h3 code {
@@ -171,7 +171,7 @@ h2 code, h3 code {
171171

172172
aside {
173173
border-bottom: 1px solid #9eabb7;
174-
padding-bottom: 10px;
174+
padding-bottom: 0.625em;
175175
position: absolute;
176176
width: 180px;
177177
right: -190px;
@@ -184,13 +184,13 @@ aside:last-child {
184184

185185
aside p {
186186
margin: 0;
187-
font-size: 13px;
187+
font-size: 0.8125em;
188188
font-family: Arial;
189189
line-height: 1.3em;
190190
}
191191

192192
article ol {
193-
margin-bottom: 32px;
193+
margin-bottom: 2em;
194194
list-style: decimal;
195195
}
196196

@@ -199,7 +199,7 @@ article ul {
199199
}
200200

201201
article li {
202-
font-size: 15px;
202+
font-size: 0.9375em;
203203
margin-top: 9px;
204204
}
205205

@@ -255,4 +255,53 @@ a abbr {
255255
.atn { color: #606; }
256256
.atv { color: #080; }
257257
.dec { color: #606; }
258-
.pln { color: #FFAA3E; }
258+
.pln { color: #FFAA3E; }
259+
260+
@media screen and (max-width: 1000px) {
261+
body {
262+
width: 100%;
263+
}
264+
265+
body > div {
266+
padding-left: 30px;
267+
margin-right: 0;
268+
}
269+
270+
nav {
271+
margin-left: 100%;
272+
width: 36%;
273+
}
274+
275+
article {
276+
width: 70%;
277+
}
278+
279+
aside {
280+
right: -42%;
281+
width: 38%;
282+
}
283+
}
284+
285+
@media screen and (max-width: 700px) {
286+
body > div {
287+
padding-right: 30px;
288+
}
289+
290+
article {
291+
font-size: 15px;
292+
width: 100%;
293+
}
294+
295+
aside {
296+
position: static;
297+
width: auto;
298+
margin: 30px;
299+
padding: 0.6em 1em 0.625em;
300+
border-top: 1px solid #9eabb7;
301+
opacity: 0.85;
302+
}
303+
304+
aside p {
305+
font-size: 13px;
306+
}
307+
}

css/print.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ article h2 a {
5050
}
5151

5252
article {
53+
font-size: 11px;
5354
width: 78%;
5455
padding-bottom: 0;
5556
border-bottom-width: 2px;
@@ -67,14 +68,13 @@ a {
6768
}
6869

6970
p, ul, ol {
70-
font-size: 11px;
71-
margin-bottom: 8px;
7271
orphans: 3;
7372
line-height: 1.3em;
7473
}
7574

7675
pre {
7776
background: #eee;
77+
padding: 6px 0 6px 20px;
7878
}
7979

8080
aside p {
@@ -84,15 +84,13 @@ aside p {
8484

8585
article code, article pre code {
8686
background: #eee;
87-
font-size: 10px;
8887
}
8988

9089
article code {
9190
padding: 1px 3px;
9291
}
9392

9493
article li {
95-
font-size: 13px;
9694
margin-top: 6px;
9795
}
9896

0 commit comments

Comments
 (0)