Skip to content

Commit 4b4d401

Browse files
committed
Updated print stylesheet
1 parent 239a53d commit 4b4d401

File tree

1 file changed

+76
-197
lines changed

1 file changed

+76
-197
lines changed

css/garden.css

Lines changed: 76 additions & 197 deletions
Original file line numberDiff line numberDiff line change
@@ -1,258 +1,137 @@
1-
/* Eric Meyer's reset.css v1.0 | 20080212 */
2-
3-
html, body, div, span,
4-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
5-
a, abbr, acronym, address, cite, code,
6-
del, em, img, ins, kbd,
7-
strong, sub, sup,
8-
dl, dt, dd, ol, ul, li,
9-
fieldset, form, label, legend,
10-
table, caption, tbody, tfoot, thead, tr, th, td {
11-
margin: 0;
12-
padding: 0;
13-
border: 0;
14-
outline: 0;
15-
font-size: 100%;
16-
vertical-align: baseline;
17-
background: transparent;
18-
}
191
body {
20-
line-height: 1;
21-
}
22-
ol, ul {
23-
list-style: none;
24-
}
25-
blockquote, q {
26-
quotes: none;
27-
}
28-
blockquote:before, blockquote:after,
29-
q:before, q:after {
30-
content: '';
31-
content: none;
32-
}
33-
34-
/* remember to highlight inserts somehow! */
35-
ins {
36-
text-decoration: none;
37-
}
38-
del {
39-
text-decoration: line-through;
40-
}
41-
42-
/* tables still need 'cellspacing="0"' in the markup */
43-
table {
44-
border-collapse: collapse;
45-
border-spacing: 0;
46-
}
47-
48-
article, aside, figure, footer, header, hgroup, menu, nav, section {
49-
display: block;
50-
}
51-
52-
body {
53-
width: 960px;
54-
margin: 0 auto;
55-
font-family: Georgia, 'Nimbus Roman No9 L', 'Liberation Serif', monospace;
56-
font-size: 14px;
57-
background: #0D2E4C;
58-
color: #E6EAED;
2+
font-family: Arial, sans-serif;
3+
width: 100%;
4+
background: #fff;
5+
color: #000;
596
}
607

618
body > div {
62-
margin-right: 410px;
63-
}
64-
65-
header h1 {
66-
padding: 40px 0 30px;
67-
font-size: 75px;
68-
line-height: 1.2em;
69-
font-weight: normal;
70-
text-shadow: 0 2px 2px #000;
9+
margin-right: 0;
7110
}
7211

7312
nav {
74-
position: fixed;
75-
margin-left: 750px;
76-
top: 0;
77-
padding: 20px 0;
78-
height: 100%;
79-
background-color: #556c81;
80-
text-shadow: none;
81-
width: 240px;
82-
}
83-
84-
nav h1 {
85-
margin: 0 0 20px 30px;
86-
font-size: 22px;
87-
font-weight: normal;
88-
}
89-
90-
article {
91-
padding-bottom: 20px;
92-
border-bottom: 4px dotted #8696a5;
13+
display: none;
9314
}
9415

95-
article section {
96-
position: relative;
16+
header h1 {
17+
font-size: 35px;
18+
padding: 20px 0;
9719
}
9820

99-
nav ul li {
21+
h2 {
22+
margin: 20px 0 10px;
10023
font-size: 16px;
101-
margin: 0px;
102-
list-style: none;
103-
background-color: #556c81;
24+
padding-top: 0;
10425
}
10526

106-
nav a {
107-
color: white;
108-
font-family: Arial, sans-serif;
27+
h3 {
10928
font-size: 13px;
110-
display: block;
111-
padding: 4px 30px 6px;
112-
}
113-
114-
nav a:hover {
115-
background: #0D2E4C;
29+
margin: 15px 0 8px;
11630
}
11731

118-
p {
119-
line-height: 1.6em;
120-
font-size: 16px;
121-
margin-bottom: 20px;
122-
}
123-
124-
pre, code {
125-
font-family: Consolas, Inconsolata, 'Bitstream Vera Sans Mono', Menlo, Monaco, 'Andale Mono', 'Courier New', monospace;
126-
}
127-
128-
pre {
129-
padding: 8px 0 12px 20px;
130-
border-left: 4px solid #566D82;
131-
margin-bottom: 20px;
132-
background: #0F192A;
32+
h2, h3 {
33+
font-variant: normal;
34+
text-transform: capitalize;
35+
page-break-after: avoid;
13336
}
13437

135-
article pre code {
136-
font-size: 13px;
137-
line-height: 1.4em;
138-
padding: 0px;
139-
margin-top: 3px;
140-
margin-bottom: 1px;
141-
background: #0F192A;
38+
header h1, h2, h3 {
39+
text-shadow: none;
14240
}
14341

144-
article code {
145-
font-size: 0.85em;
146-
text-shadow: none;
147-
background: #314D67;
148-
padding: 3px 4px 1px;
42+
article h2 > code, article h3 > code {
43+
text-transform: none;
44+
font-size: 0.9em;
45+
vertical-align: 2px;
14946
}
15047

151-
h2, h3 {
152-
font-family: Arial, sans-serif;
153-
text-shadow: 0 1px 1px #222;
154-
font-variant: small-caps;
48+
article h2 a {
49+
display: none;
15550
}
15651

157-
h2 {
158-
font-size: 30px;
159-
margin: 15px 0 20px;
160-
padding-top: 50px;
52+
article {
53+
width: 78%;
54+
padding-bottom: 0;
55+
border-bottom-width: 2px;
16156
}
16257

163-
h3 {
164-
font-size: 18px;
165-
margin: 25px 0 15px;
58+
aside {
59+
width: 26%;
60+
right: -28%;
61+
padding-bottom: 6px;
62+
opacity: 1;
16663
}
16764

168-
h2 code, h3 code {
169-
font-variant: normal;
65+
a {
66+
color: inherit;
17067
}
17168

172-
aside {
173-
border-bottom: 1px solid #9eabb7;
174-
padding-bottom: 10px;
175-
position: absolute;
176-
width: 180px;
177-
right: -190px;
178-
opacity: 0.7;
69+
p, ul, ol {
70+
font-size: 11px;
71+
margin-bottom: 8px;
72+
orphans: 3;
73+
line-height: 1.3em;
17974
}
18075

181-
aside:last-child {
182-
bottom: 0;
76+
pre {
77+
background: #eee;
18378
}
18479

18580
aside p {
186-
margin: 0;
187-
font-size: 13px;
188-
font-family: Arial;
189-
line-height: 1.3em;
81+
font-size: 10px;
82+
color: #666;
19083
}
19184

192-
article ol {
193-
margin-bottom: 32px;
194-
list-style: decimal;
85+
article code, article pre code {
86+
background: #eee;
87+
font-size: 10px;
19588
}
19689

197-
article ul {
198-
list-style: square;
90+
article code {
91+
padding: 1px 3px;
19992
}
20093

20194
article li {
202-
font-size: 15px;
203-
margin-top: 9px;
95+
font-size: 13px;
96+
margin-top: 6px;
20497
}
20598

206-
article ul li {
207-
margin-left: -3px;
208-
padding-left: 3px;
99+
article ul, article ol {
100+
list-style-position: inside;
101+
margin-left: 8px;
209102
}
210103

211-
footer {
212-
padding-top: 10px;
104+
.com {
105+
color: #600;
106+
font-style: italic;
213107
}
214108

215-
a {
216-
color: #FFA500;
217-
text-decoration: none;
109+
.typ {
110+
color: #404;
111+
font-weight: bold;
218112
}
219113

220-
a:hover {
221-
color: #FFC76D;
114+
.lit {
115+
color: #044;
222116
}
223117

224-
article h2 a {
225-
color: #ccc;
226-
font-size: 16px;
227-
vertical-align: baseline;
228-
display: none;
229-
font-weight: normal;
230-
font-variant: normal;
118+
.pun {
119+
color: #440;
231120
}
232121

233-
article:hover h2 a {
234-
display: inline;
122+
.pln {
123+
color: #444;
235124
}
236125

237-
abbr {
238-
cursor: help;
239-
border-bottom: 1px dotted;
126+
.atn {
127+
color: #404;
240128
}
241129

242-
a abbr {
243-
cursor: pointer;
130+
.str, .atv {
131+
color: #060;
244132
}
245133

246-
/* Syntax Highlighting */
247-
248-
.str { color: #1DC116; }
249-
.kwd { color: #E83737; }
250-
.com { color: #428BDD; }
251-
.typ { color: #FFAA3E; }
252-
.lit { color: #D1EDFF; }
253-
.pun { color: #D1EDFF; }
254-
.tag { color: #008; }
255-
.atn { color: #606; }
256-
.atv { color: #080; }
257-
.dec { color: #606; }
258-
.pln { color: #FFAA3E; }
134+
.kwd, .tag {
135+
color: #006;
136+
font-weight: bold;
137+
}

0 commit comments

Comments
 (0)