Skip to content

Commit 5cd98a0

Browse files
committed
New print.css stylesheet
1 parent 981abdd commit 5cd98a0

File tree

2 files changed

+120
-19
lines changed

2 files changed

+120
-19
lines changed

html/css/print.css

Lines changed: 119 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,137 @@
1-
nav a {
2-
color: black !important;
3-
text-decoration: none;
1+
body {
2+
font-family: Arial, sans-serif;
3+
width: 100%;
4+
background: #fff;
5+
color: #000;
46
}
57

6-
nav a:active {
7-
color: black !important;
8+
body > div {
9+
margin-right: 0;
810
}
911

10-
nav a:visited {
11-
color: black !important;
12-
}
13-
14-
a {
15-
font-weight: bold;
16-
text-decoration: none;
17-
color: black !important;
12+
nav {
13+
display: none;
1814
}
1915

2016
header h1 {
21-
font-size: 75px;
17+
font-size: 35px;
18+
padding: 20px 0;
2219
}
2320

2421
h2 {
25-
margin-top: 30px;
26-
font-size: 30px;
22+
margin: 20px 0 10px;
23+
font-size: 16px;
24+
padding-top: 0;
25+
}
26+
27+
h3 {
28+
font-size: 13px;
29+
margin: 15px 0 8px;
30+
}
31+
32+
h2, h3 {
33+
font-variant: normal;
34+
text-transform: capitalize;
35+
page-break-after: avoid;
36+
}
37+
38+
header h1, h2, h3 {
39+
text-shadow: none;
40+
}
41+
42+
article h2 > code, article h3 > code {
43+
text-transform: none;
44+
font-size: 0.9em;
45+
vertical-align: 2px;
2746
}
2847

2948
article h2 a {
3049
display: none;
3150
}
3251

33-
h3 {
34-
font-size: 18px;
52+
article {
53+
width: 78%;
54+
padding-bottom: 0;
55+
border-bottom-width: 2px;
56+
}
57+
58+
aside {
59+
width: 26%;
60+
right: -28%;
61+
padding-bottom: 6px;
62+
opacity: 1;
63+
}
64+
65+
a {
66+
color: inherit;
67+
}
68+
69+
p, ul, ol {
70+
font-size: 11px;
71+
margin-bottom: 8px;
72+
orphans: 3;
73+
line-height: 1.3em;
74+
}
75+
76+
pre {
77+
background: #eee;
78+
}
79+
80+
aside p {
81+
font-size: 10px;
82+
color: #666;
83+
}
84+
85+
article code, article pre code {
86+
background: #eee;
87+
font-size: 10px;
88+
}
89+
90+
article code {
91+
padding: 1px 3px;
92+
}
93+
94+
article li {
95+
font-size: 13px;
96+
margin-top: 6px;
97+
}
98+
99+
article ul, article ol {
100+
list-style-position: inside;
101+
margin-left: 8px;
102+
}
103+
104+
.com {
105+
color: #600;
106+
font-style: italic;
107+
}
108+
109+
.typ {
110+
color: #404;
111+
font-weight: bold;
112+
}
113+
114+
.lit {
115+
color: #044;
116+
}
117+
118+
.pun {
119+
color: #440;
120+
}
121+
122+
.pln {
123+
color: #444;
124+
}
125+
126+
.atn {
127+
color: #404;
128+
}
129+
130+
.str, .atv {
131+
color: #060;
35132
}
36133

134+
.kwd, .tag {
135+
color: #006;
136+
font-weight: bold;
137+
}

html/template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>{title}</title>
77

88
<meta name="description" content="{description}">
9-
<link rel="stylesheet" href="css/garden.css" media="screen">
9+
<link rel="stylesheet" href="css/garden.css" media="all">
1010
<link rel="stylesheet" href="css/print.css" media="print">
1111
</head>
1212

0 commit comments

Comments
 (0)