Skip to content

Commit 8434182

Browse files
committed
Cleaning up CSS for smaller download.
1 parent 667e8a9 commit 8434182

File tree

1 file changed

+106
-172
lines changed

1 file changed

+106
-172
lines changed
+106-172
Original file line numberDiff line numberDiff line change
@@ -1,186 +1,120 @@
1-
@import url('reset-fonts-grids.css');
2-
3-
html, body {background-image: url('./orange-background.jpg'); background-repeat:no-repeat; background-position:left top; background-attachment:fixed; background-color:black}
4-
body {font:12pt sans-serif; color:black}
5-
#custom-doc { width:80%;*width:720px; min-width:720px; max-width:960px; margin:auto; text-align:left; padding-top:16px; margin-top:0}
6-
#hd { padding: 4px 0 12px 0}
7-
#bd { background:#C5D88A}
8-
#ft { color:#C5D88A; font-size:90%; padding-bottom: 2em}
9-
10-
pre {
11-
font-family: Monaco, monospace;
12-
font-size: 14px;
13-
background:#333;
14-
background:-moz-linear-gradient(-90deg, #333, #222 60%);
15-
background: -webkit-gradient(linear, 0 top, 0 bottom, from(#333), to(#222), color-stop(60%, #222));
16-
border-width:1px 0;
17-
margin: 1em 0;
18-
padding: .3em .4em;
19-
overflow: auto;
20-
line-height: 1.3em;
21-
color: #CCC;
22-
border-radius:3px;
23-
-moz-border-radius:3px;
24-
-webkit-border-radius:3px;
25-
padding:1em;
26-
}
27-
28-
1+
@import url('reset-fonts-grids.css');html,body{background-image:url('./orange-background.jpg');background-repeat:no-repeat;background-position:left top;background-attachment:fixed;background-color:black;}
2+
body{font:12pt sans-serif;color:black;}
3+
#custom-doc{width:80%;*width:720px;min-width:720px;max-width:960px;margin:auto;text-align:left;padding-top:16px;margin-top:0;}
4+
#hd{padding:4px 0 12px 0;}
5+
#bd{background:#C5D88A;}
6+
#ft{color:#C5D88A;font-size:90%;padding-bottom:2em;}
7+
pre{font-family:Monaco,monospace;font-size:14px;background:#333;background:-moz-linear-gradient(-90deg,#333,#222 60%);background:-webkit-gradient(linear,0 top,0 bottom,from(#333),to(#222),color-stop(60%,#222));border-width:1px 0;margin:1em 0;padding:.3em .4em;overflow:auto;line-height:1.3em;color:#CCC;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;padding:1em;}
298
/*** links ***/
30-
a {text-decoration: none; font-weight: bold}
31-
a img {border: none}
32-
a:link, a:visited { color:#800000}
33-
#bd a:link, #bd a:visited { color:#800000; text-decoration:underline}
34-
#bd #sidebar a:link, #bd #sidebar a:visited { color:#8B4513; text-decoration:none}
35-
a:hover { color:#000}
36-
#bd a:hover { background-color:#FF9955; color:black; text-decoration:none}
37-
#bd #sidebar a:hover { color:#FF9955; background:none}
38-
h2 a, h3 a, h4 a { text-decoration:none !important}
39-
a.reference em { color: #FF9955;font-style:normal;font-weight:bold;}
40-
9+
a{text-decoration:none;font-weight:bold}
10+
a img{border:none}
11+
a:link,a:visited{color:#800000}
12+
#bd a:link,#bd a:visited{color:#800000;text-decoration:underline}
13+
#bd #sidebar a:link,#bd #sidebar a:visited{color:#8B4513;text-decoration:none}
14+
a:hover{color:#000}
15+
#bd a:hover{background-color:#FF9955;color:black;text-decoration:none}
16+
#bd #sidebar a:hover{color:#FF9955;background:none}
17+
h2 a,h3 a,h4 a{text-decoration:none !important}
18+
a.reference em{color:#FF9955;font-style:normal;font-weight:bold;}
4119
/*** sidebar ***/
42-
#sidebar div.sphinxsidebarwrapper { font-size:92%; margin-right: 14px}
43-
#sidebar h3, #sidebar h4 { color: #487858; font-size: 125%}
44-
#sidebar a { color: #8B4513}
45-
#sidebar ul ul { margin-top:0; margin-bottom:0}
46-
#sidebar li { margin-top: 0.2em; margin-bottom: 0.2em; list-style-position: inside; list-style-type: square;}
47-
20+
#sidebar div.sphinxsidebarwrapper{font-size:92%;margin-right:14px}
21+
#sidebar h3,#sidebar h4{color:#487858;font-size:125%}
22+
#sidebar a{color:#8B4513}
23+
#sidebar ul ul{margin-top:0;margin-bottom:0}
24+
#sidebar li{margin-top:0.2em;margin-bottom:0.2em;list-style-position:inside;list-style-type:square;}
4825
/*** nav ***/
49-
div.nav { margin: 0; font-size: 12px; text-align: right; color: #487858}
50-
div.nav a:link, div.nav a:visited { color: white }
51-
#hd div.nav { margin-top: -27px}
52-
#ft div.nav { margin-bottom: -18px}
53-
#hd h1 a { color: #EFFFEF}
54-
#global-nav { position:absolute; top:5px; margin-left: -5px; padding:7px 0; color:#263E2B}
55-
#global-nav a {padding:0 4px}
56-
#global-nav a.about {padding-left:0}
57-
#global-nav a { color:#fff}
58-
26+
div.nav{margin:0;font-size:12px;text-align:right;color:#487858}
27+
div.nav a:link,div.nav a:visited{color:white}
28+
#hd div.nav{margin-top:-27px}
29+
#ft div.nav{margin-bottom:-18px}
30+
#hd h1 a{color:#EFFFEF}
31+
#global-nav{position:absolute;top:5px;margin-left:-5px;padding:7px 0;color:#263E2B}
32+
#global-nav a{padding:0 4px}
33+
#global-nav a.about{padding-left:0}
34+
#global-nav a{color:#fff}
5935
/*** content ***/
60-
#yui-main {
61-
-moz-border-radius:3px;
62-
-moz-box-shadow:0 0 9px rgba(0, 0, 0, 0.5);
63-
-webkit-border-radius:3px;
64-
-webkit-box-shadow:0 0 9px rgba(0, 0, 0, 0.5);
65-
border-radius:3px;
66-
box-shadow:0 0 9px rgba(0, 0, 0, 0.5);
67-
background:none repeat scroll 0 0 #F0F7F0;
68-
}
69-
#yui-main div.yui-b { position: relative}
70-
#yui-main div.yui-b { background: #FFF; color: #164B2B; padding: 0.3em 2em 1em 2em}
71-
36+
#yui-main{-moz-border-radius:3px;-moz-box-shadow:0 0 9px rgba(0,0,0,0.5);-webkit-border-radius:3px;-webkit-box-shadow:0 0 9px rgba(0,0,0,0.5);border-radius:3px;box-shadow:0 0 9px rgba(0,0,0,0.5);background:none repeat scroll 0 0 #F0F7F0;}
37+
#yui-main div.yui-b{position:relative}
38+
#yui-main div.yui-b{background:#FFF;color:#164B2B;padding:0.3em 2em 1em 2em}
7239
/*** basic styles ***/
73-
dd { margin-left:15px}
74-
h1,h2,h3,h4 { margin-top:1em; font-weight:normal}
75-
h1 { font-size:218%; font-weight:bold; margin-top:0.6em; margin-bottom:.4em; line-height:1.1em}
76-
h2 { font-size:175%; font-weight:bold; margin-bottom:.6em; line-height:1.2em; color:#092e20}
77-
h3 { font-size:150%; font-weight:bold; margin-bottom:.2em; color:#487858}
78-
h4 { font-size:125%; font-weight:bold; margin-top:1.5em; margin-bottom:3px}
79-
div.figure { text-align: center}
80-
div.figure p.caption { font-size:1em; margin-top:0; margin-bottom:1.5em; color: black}
81-
hr { color:#ccc; background-color:#ccc; height:1px; border:0}
82-
p, ul, dl { margin-top:.6em; color: #333}
83-
#yui-main div.yui-b img { max-width: 50em; margin-left: auto; margin-right: auto; display: block; margin-top: 10px; margin-bottom: 10px}
84-
caption { font-size:1em; font-weight:bold; margin-top:0.5em; margin-bottom:0.5em; margin-left: 2px; text-align: center}
85-
blockquote { padding: 0 1em; margin: 1em 0; font:"Times New Roman", serif; color:#234f32}
86-
strong { font-weight: bold}
87-
em { font-style: italic}
88-
ins { font-weight: bold; text-decoration: none}
89-
40+
dd{margin-left:15px}
41+
h1,h2,h3,h4{margin-top:1em;font-weight:normal}
42+
h1{font-size:218%;font-weight:bold;margin-top:0.6em;margin-bottom:.4em;line-height:1.1em}
43+
h2{font-size:175%;font-weight:bold;margin-bottom:.6em;line-height:1.2em;color:#092e20}
44+
h3{font-size:150%;font-weight:bold;margin-bottom:.2em;color:#487858}
45+
h4{font-size:125%;font-weight:bold;margin-top:1.5em;margin-bottom:3px}
46+
div.figure{text-align:center}
47+
div.figure p.caption{font-size:1em;margin-top:0;margin-bottom:1.5em;color:black}
48+
hr{color:#ccc;background-color:#ccc;height:1px;border:0}
49+
p,ul,dl{margin-top:.6em;color:#333}
50+
#yui-main div.yui-b img{max-width:50em;margin-left:auto;margin-right:auto;display:block;margin-top:10px;margin-bottom:10px}
51+
caption{font-size:1em;font-weight:bold;margin-top:0.5em;margin-bottom:0.5em;margin-left:2px;text-align:center}
52+
blockquote{padding:0 1em;margin:1em 0;font:"Times New Roman",serif;color:#234f32}
53+
strong{font-weight:bold}
54+
em{font-style:italic}
55+
ins{font-weight:bold;text-decoration:none}
9056
/*** lists ***/
91-
ol.arabic li { list-style-type: decimal}
92-
ul li { font-size: 1em}
93-
ol li { margin-bottom: .4em}
94-
ul ul { padding-left:1.2em}
95-
ul ul ul { padding-left:1em}
96-
ul.linklist, ul.toc { padding-left:0}
97-
ul.toc ul { margin-left:.6em}
98-
ul.toc ul li { list-style-type:square}
99-
ul.toc ul ul li { list-style-type:disc}
100-
ul.linklist li, ul.toc li { list-style-type:none}
101-
dt { font-weight:bold; margin-top:.5em; font-size:1em}
102-
dd { margin-bottom:.8em}
103-
ol.toc { margin-bottom: 2em}
104-
ol.toc li { font-size:125%; padding: .5em; line-height:1.2em; clear: right}
105-
ol.toc li.b { background-color: #E0FFB8}
106-
ol.toc li a:hover { background-color: transparent !important; text-decoration: underline !important}
107-
ol.toc span.release-date { color:#487858; float: right; font-size: 85%; padding-right: .5em}
108-
ol.toc span.comment-count { font-size: 75%; color: #999}
109-
ul.simple li { list-style-type: disc; margin-left: 2em}
110-
57+
ol.arabic li{list-style-type:decimal}
58+
ul li{font-size:1em}
59+
ol li{margin-bottom:.4em}
60+
ul ul{padding-left:1.2em}
61+
ul ul ul{padding-left:1em}
62+
ul.linklist,ul.toc{padding-left:0}
63+
ul.toc ul{margin-left:.6em}
64+
ul.toc ul li{list-style-type:square}
65+
ul.toc ul ul li{list-style-type:disc}
66+
ul.linklist li,ul.toc li{list-style-type:none}
67+
dt{font-weight:bold;margin-top:.5em;font-size:1em}
68+
dd{margin-bottom:.8em}
69+
ol.toc{margin-bottom:2em}
70+
ol.toc li{font-size:125%;padding:.5em;line-height:1.2em;clear:right}
71+
ol.toc li.b{background-color:#E0FFB8}
72+
ol.toc li a:hover{background-color:transparent !important;text-decoration:underline !important}
73+
ol.toc span.release-date{color:#487858;float:right;font-size:85%;padding-right:.5em}
74+
ol.toc span.comment-count{font-size:75%;color:#999}
75+
ul.simple li{list-style-type:disc;margin-left:2em}
11176
/*** tables ***/
112-
table { color:#000; margin-bottom: 1em; width: 100%}
113-
table.docutils td p { margin-top:0; margin-bottom:.5em}
114-
table.docutils td, table.docutils th { border-bottom:1px solid #dfdfdf; padding:4px 2px}
115-
table.docutils thead th { border-bottom:2px solid #dfdfdf; text-align:left; font-weight: bold; #487858-space: nowrap}
116-
table.docutils thead th p { margin: 0; padding: 0}
117-
table.docutils { border-collapse:collapse}
118-
77+
table{color:#000;margin-bottom:1em;width:100%}
78+
table.docutils td p{margin-top:0;margin-bottom:.5em}
79+
table.docutils td,table.docutils th{border-bottom:1px solid #dfdfdf;padding:4px 2px}
80+
table.docutils thead th{border-bottom:2px solid #dfdfdf;text-align:left;font-weight:bold;#487858-space:nowrap}
81+
table.docutils thead th p{margin:0;padding:0}
82+
table.docutils{border-collapse:collapse}
11983
/*** code blocks ***/
120-
.literal { #487858-space:nowrap}
121-
.literal { color:#234f32}
122-
#sidebar .literal { color:#487858; background:transparent; font-size:11px}
123-
h4 .literal { color: #234f32; font-size: 13px}
124-
125-
dt .literal, table .literal { background:none}
126-
#bd a.reference { text-decoration: none}
127-
#bd a.reference tt.literal { border-bottom: 1px #234f32 dotted}
128-
84+
.literal{#487858-space:nowrap}
85+
.literal{color:#234f32}
86+
#sidebar .literal{color:#487858;background:transparent;font-size:11px}
87+
h4 .literal{color:#234f32;font-size:13px}
88+
dt .literal,table .literal{background:none}
89+
#bd a.reference{text-decoration:none}
90+
#bd a.reference tt.literal{border-bottom:1px #234f32 dotted}
12991
/*** notes & admonitions ***/
130-
.note, .admonition {
131-
padding:.8em 1em .8em; margin: 1em 0; background-color: #E8FFE8;
132-
-moz-border-radius:3px;
133-
-moz-box-shadow:0 1px 2px rgba(0, 0, 0, 0.3);
134-
-webkit-border-radius:3px;
135-
-webkit-box-shadow:0 1px 2px rgba(0, 0, 0, 0.3);
136-
border-radius:3px;
137-
box-shadow:0 1px 2px rgba(0, 0, 0, 0.3);
138-
}
139-
.admonition-title { font-weight:bold; margin-top:0 !important; margin-bottom:0 !important}
140-
.admonition .last { margin-bottom:0 !important}
141-
div.admonition-philosophy { padding-left:65px; background:url(docicons-philosophy.png) .8em .8em no-repeat}
142-
div.admonition-behind-the-scenes { padding-left:65px; background:url(docicons-behindscenes.png) .8em .8em no-repeat}
143-
92+
.note,.admonition{padding:.8em 1em .8em;margin:1em 0;background-color:#E8FFE8;-moz-border-radius:3px;-moz-box-shadow:0 1px 2px rgba(0,0,0,0.3);-webkit-border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.3);border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,0.3);}
93+
.admonition-title{font-weight:bold;margin-top:0 !important;margin-bottom:0 !important}
94+
.admonition .last{margin-bottom:0 !important}
95+
div.admonition-philosophy{padding-left:65px;background:url(docicons-philosophy.png) .8em .8em no-repeat}
96+
div.admonition-behind-the-scenes{padding-left:65px;background:url(docicons-behindscenes.png) .8em .8em no-repeat}
14497
/*** versoinadded/changes ***/
145-
div.versionadded, div.versionchanged { }
146-
div.versionadded span.title, div.versionchanged span.title { font-weight: bold}
147-
98+
div.versionadded,div.versionchanged{}
99+
div.versionadded span.title,div.versionchanged span.title{font-weight:bold}
148100
/*** p-links ***/
149-
a.headerlink { color: #c60f0f; font-size: 0.8em; padding: 0 4px 0 4px; text-decoration: none; visibility: hidden}
150-
h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, h4:hover > a.headerlink, h5:hover > a.headerlink, h6:hover > a.headerlink, dt:hover > a.headerlink { visibility: visible}
151-
101+
a.headerlink{color:#c60f0f;font-size:0.8em;padding:0 4px 0 4px;text-decoration:none;visibility:hidden}
102+
h1:hover > a.headerlink,h2:hover > a.headerlink,h3:hover > a.headerlink,h4:hover > a.headerlink,h5:hover > a.headerlink,h6:hover > a.headerlink,dt:hover > a.headerlink{visibility:visible}
152103
/*** index ***/
153-
table.indextable td { text-align: left; vertical-align: top}
154-
table.indextable dl, table.indextable dd { margin-top: 0; margin-bottom: 0}
155-
table.indextable tr.pcap { height: 10px}
156-
table.indextable tr.cap { margin-top: 10px; background-color: #f2f2f2}
157-
104+
table.indextable td{text-align:left;vertical-align:top}
105+
table.indextable dl,table.indextable dd{margin-top:0;margin-bottom:0}
106+
table.indextable tr.pcap{height:10px}
107+
table.indextable tr.cap{margin-top:10px;background-color:#f2f2f2}
158108
/*** page-specific overrides ***/
159-
160-
div#contents ul { margin-bottom: 0}
161-
div#contents ul li { margin-bottom: 0}
162-
div#contents ul ul li { margin-top: 0.3em}
163-
109+
div#contents ul{margin-bottom:0}
110+
div#contents ul li{margin-bottom:0}
111+
div#contents ul ul li{margin-top:0.3em}
164112
/*** IE hacks ***/
165-
* pre {
166-
}
167-
.footer {
168-
color: white;
169-
}
170-
171-
.footer a {
172-
color: #333;
173-
}
174-
175-
img {
176-
margin: 10px 0 10px 0;
177-
}#index p.rubric { font-size:150%; font-weight:normal; margin-bottom:.2em; color:#252; }
178-
179-
#index div.section dt { font-weight: normal; }
180-
181-
tt.py-exc.literal {
182-
color: red;
183-
}
184-
185-
186-
tt.xref span.pre { color: green; }
113+
* pre{}
114+
.footer{color:white;}
115+
.footer a{color:#333;}
116+
img{margin:10px 0 10px 0;}
117+
#index p.rubric{font-size:150%;font-weight:normal;margin-bottom:.2em;color:#252;}
118+
#index div.section dt{font-weight:normal;}
119+
tt.py-exc.literal{color:red;}
120+
tt.xref span.pre{color:green;}

0 commit comments

Comments
 (0)