Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit 65c59fe

Browse files
committed
Rearrange CSS + add CSS for note admonitions
1 parent c055ca3 commit 65c59fe

File tree

1 file changed

+82
-47
lines changed

1 file changed

+82
-47
lines changed

_theme/scipy/static/scipy.css_t

Lines changed: 82 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515

1616
@import url("css/scipy-central.css");
1717

18+
19+
/*
20+
* General tweaks
21+
*/
22+
1823
div.container-navbar-bottom {
1924
margin-top: 0;
2025
}
@@ -67,6 +72,17 @@ dl.method > dt > em {
6772
font-weight: normal;
6873
}
6974

75+
pre {
76+
border-radius: 0;
77+
border: none;
78+
font-family: monospace;
79+
}
80+
81+
82+
/*
83+
* Field lists
84+
*/
85+
7086
table.field-list {
7187
border-collapse: collapse;
7288
border-spacing: 5px;
@@ -110,13 +126,41 @@ dl.method blockquote p
110126
line-height: inherit;
111127
}
112128

113-
p.rubric {
114-
color: rgb(85, 85, 85);
129+
130+
/*
131+
* Sidebars and top logo
132+
*/
133+
134+
div.sphinxsidebarwrapper {
135+
overflow: hidden;
136+
}
137+
138+
div.spc-rightsidebar h3 {
115139
font-size: 120%;
116-
font-weight: normal;
117-
border-bottom: 1px solid rgb(204, 204, 204);
140+
line-height: inherit;
141+
border-bottom: none;
118142
}
119143

144+
div.spc-rightsidebar h4 {
145+
font-size: 120%;
146+
line-height: inherit;
147+
border-bottom: none;
148+
}
149+
150+
div.top-scipy-org-logo-header {
151+
text-align: left;
152+
background-color: rgb(140, 170, 230);
153+
border-bottom: 8px solid rgb(0, 51, 153);
154+
margin-top: 10px;
155+
padding: 5px;
156+
box-shadow: 0px 0px 3px rgb(136, 136, 136);
157+
}
158+
159+
160+
/*
161+
* Headers
162+
*/
163+
120164
h1 a { color: rgb(85, 85, 85); }
121165
h2 a { color: rgb(85, 85, 85); }
122166
h3 a { color: rgb(85, 85, 85); }
@@ -138,12 +182,41 @@ div#spc-section-body h4 { color: rgb(85, 85, 85); border-bottom: none; }
138182
div#spc-section-body h5 { color: rgb(85, 85, 85); border-bottom: none; }
139183
div#spc-section-body h6 { color: rgb(85, 85, 85); border-bottom: none; }
140184

185+
p.rubric {
186+
color: rgb(85, 85, 85);
187+
font-size: 120%;
188+
font-weight: normal;
189+
border-bottom: 1px solid rgb(204, 204, 204);
190+
}
191+
192+
193+
/*
194+
* Tables
195+
*/
196+
141197
table.citation {
142198
border: none;
143199
}
144200

145-
div.sphinxsidebarwrapper {
146-
overflow: hidden;
201+
table.docutils td, table.docutils th {
202+
border: none;
203+
}
204+
205+
table.docutils {
206+
margin-bottom: 9.5px;
207+
}
208+
209+
210+
/*
211+
* Admonitions
212+
*/
213+
214+
p.admonition-title {
215+
display: inline;
216+
}
217+
218+
p.admonition-title:after {
219+
content: ":";
147220
}
148221

149222
div.seealso {
@@ -168,45 +241,7 @@ div.warning {
168241
border: 1px solid #f66;
169242
}
170243

171-
p.admonition-title {
172-
display: inline;
173-
}
174-
175-
p.admonition-title:after {
176-
content: ":";
177-
}
178-
179-
pre {
180-
border-radius: 0;
181-
border: none;
182-
font-family: monospace;
183-
}
184-
185-
div.spc-rightsidebar h3 {
186-
font-size: 120%;
187-
line-height: inherit;
188-
border-bottom: none;
189-
}
190-
191-
div.spc-rightsidebar h4 {
192-
font-size: 120%;
193-
line-height: inherit;
194-
border-bottom: none;
195-
}
196-
197-
div.top-scipy-org-logo-header {
198-
text-align: left;
199-
background-color: rgb(140, 170, 230);
200-
border-bottom: 8px solid rgb(0, 51, 153);
201-
margin-top: 10px;
202-
padding: 5px;
203-
box-shadow: 0px 0px 3px rgb(136, 136, 136);
204-
}
205-
206-
table.docutils td, table.docutils th {
207-
border: none;
208-
}
209-
210-
table.docutils {
211-
margin-bottom: 9.5px;
244+
div.note {
245+
background-color: #eee;
246+
border: 1px solid #ccc;
212247
}

0 commit comments

Comments
 (0)