Skip to content

Commit da147d5

Browse files
committed
Sphinx styles
1 parent d1b584d commit da147d5

File tree

3 files changed

+280
-0
lines changed

3 files changed

+280
-0
lines changed

docs/_static/css/custom.css

Lines changed: 230 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,230 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,400;0,700;0,800;1,400;1,800&display=swap');
2+
3+
div.document {
4+
margin-top: 0;
5+
}
6+
7+
div.body {
8+
min-width: 0 !important;
9+
}
10+
11+
div.body p, div.body li {
12+
line-height: 1.45;
13+
}
14+
15+
div.body li {
16+
margin-bottom: 4px;
17+
}
18+
19+
div.topic {
20+
margin: 0;
21+
padding: 8px 12px;
22+
}
23+
24+
p.topic-title {
25+
margin: 0;
26+
}
27+
28+
div.topic ul {
29+
margin-top: 6px;
30+
}
31+
@media screen and (max-width: 870px) {
32+
ul {
33+
margin: 10px 0 10px 20px;
34+
}
35+
}
36+
37+
div.sphinxsidebar h1.logo,
38+
div.sphinxsidebar h3 {
39+
font-family: 'Libre Franklin', "Helvetica", "Liberation Sans", Arial, sans-serif;
40+
}
41+
42+
div.sphinxsidebarwrapper h1.logo {
43+
font-size: 1.85em;
44+
font-weight: 800;
45+
}
46+
47+
@media (min-width: 875px) {
48+
div.sphinxsidebar {
49+
margin-top: 85px;
50+
}
51+
}
52+
53+
@media screen and (max-width: 875px) {
54+
div.sphinxsidebar {
55+
width: auto;
56+
padding: 10px 20px;
57+
margin: 50px 0 0 0;
58+
}
59+
}
60+
61+
div.admonition {
62+
padding: 15px;
63+
}
64+
65+
div.warning {
66+
background-color: #EEE;
67+
border: 1px solid #CCC;
68+
}
69+
70+
div.admonition p.admonition-title {
71+
font-family: 'Libre Franklin', "Helvetica", "Liberation Sans", Arial, sans-serif;
72+
margin: 0;
73+
}
74+
75+
div.related nav {
76+
padding-right: 10px;
77+
}
78+
79+
body {
80+
font-family: 'Libre Franklin', "Helvetica", "Liberation Sans", Arial, sans-serif;
81+
font-size: 20px;
82+
line-height: 1.45;
83+
text-align: left;
84+
}
85+
@media screen and (max-width: 875px) {
86+
body {
87+
margin: 0;
88+
padding: 0;
89+
}
90+
div.body > .section,
91+
div.body > section {
92+
padding: 0 20px;
93+
}
94+
}
95+
96+
@media (max-width: 550px) {
97+
body {
98+
font-size: 0.85em;
99+
}
100+
}
101+
102+
div.body h1, div.body h2, div.body h3, div.body h4, div.body h5, div.body h6 {
103+
font-family: 'Libre Franklin', "Helvetica", "Liberation Sans", Arial, sans-serif;
104+
font-weight: 700;
105+
}
106+
107+
div.body h1 {
108+
font-weight: 800;
109+
font-size: 220%;
110+
}
111+
112+
pre {
113+
padding: 7px;
114+
}
115+
116+
.cell_output {
117+
overflow: auto;
118+
}
119+
120+
.toctree-wrapper p.caption {
121+
font-weight: 700;
122+
}
123+
124+
.toggle-details {
125+
display: none;
126+
}
127+
128+
.row {
129+
width: 100%;
130+
max-width: 660px;
131+
margin: 0 auto;
132+
overflow: hidden;
133+
}
134+
.row .fivecol {
135+
width: 43%;
136+
float: right;
137+
min-height: 1px;
138+
}
139+
.row .sevencol {
140+
width: 37%;
141+
float: left;
142+
min-height: 1px;
143+
}
144+
@media (max-width: 550px) {
145+
.row .fivecol, .row .sevencol {
146+
padding: 0 20px;
147+
}
148+
}
149+
150+
/* The header */
151+
nav {
152+
display: block;
153+
margin-top: 0.75em;
154+
margin-bottom: 0.5em;
155+
font-size: 1em;
156+
line-height: 1.7em;
157+
}
158+
nav .shingle {
159+
font-size: 1.7em;
160+
font-weight: bold;
161+
text-align: left;
162+
padding-left: 0.15em;
163+
}
164+
nav .shingle a {
165+
text-decoration: none;
166+
font-weight: bold;
167+
color: #000;
168+
}
169+
nav .shingle a:hover {
170+
color: #686868;
171+
}
172+
@media (max-width: 550px) {
173+
nav .shingle {
174+
float: left;
175+
margin-bottom: 5px;
176+
padding-left: 0;
177+
}
178+
}
179+
nav .links {
180+
text-align: right;
181+
}
182+
nav .links ul {
183+
float: right;
184+
list-style-type: none;
185+
margin: 4px 0 0 0;
186+
}
187+
nav .links li {
188+
float: left;
189+
list-style-position: inside;
190+
margin-left: 0.5em;
191+
font-size: 0.9em;
192+
font-weight: 300;
193+
margin-bottom: 0;
194+
}
195+
@media (max-width: 550px) {
196+
nav .links li {
197+
font-size: .825em;
198+
}
199+
}
200+
nav .links li a {
201+
text-decoration: none;
202+
}
203+
nav .links li a:hover {
204+
text-decoration: underline;
205+
}
206+
.last {
207+
margin-right: 0;
208+
}
209+
210+
.topbar {
211+
border-bottom: solid 10px #e5e5e5;
212+
margin-bottom: 20px;
213+
width: 100%;
214+
}
215+
216+
a:link {
217+
text-decoration: none;
218+
color: #686868;
219+
}
220+
a:visited {
221+
text-decoration: none;
222+
color: #686868;
223+
}
224+
a:hover {
225+
text-decoration: underline;
226+
}
227+
a:active {
228+
text-decoration: underline;
229+
color: #000;
230+
}

docs/_templates/nav.html

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<nav>
2+
<div class="row">
3+
<div class="sevencol">
4+
<div class="shingle">
5+
<a href="https://palewi.re/">
6+
<div rel="rnews:copyrightedBy rnews:hasSource rnews:providedBy">
7+
<div about="http://palewi.re/" typeof="rnews:Organization">
8+
<div property="rnews:name">palewire</div>
9+
</div>
10+
</div>
11+
</a>
12+
</div>
13+
</div>
14+
<div class="fivecol last links">
15+
<ul>
16+
<li>
17+
<a href="http://palewi.re/posts/" title="Posts">
18+
Posts
19+
</a>
20+
</li>
21+
<li>
22+
<a href="http://palewi.re/work/" title="Work">
23+
Work
24+
</a>
25+
</li>
26+
<li>
27+
<a href="http://palewi.re/talks/" title="Talks">
28+
Talks
29+
</a>
30+
</li>
31+
<li>
32+
<a href="http://palewi.re/docs/" title="Docs">
33+
Docs
34+
</a>
35+
</li>
36+
<li>
37+
<a href="http://palewi.re/who-is-ben-welsh/" title="Who is Ben Welsh?">
38+
About
39+
</a>
40+
</li>
41+
</ul>
42+
</div>
43+
</div>
44+
</nav>
45+
<div class="row topbar">
46+
<div class="twelvecol last"></div>
47+
</div>

docs/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
```{include} _templates/nav.html
2+
```
3+
14
# python-googlegeocoder
25

36
A simple Python wrapper for version three of Google's geocoder API.

0 commit comments

Comments
 (0)