UNPKG

6.82 kBCSSView Raw
1body {
2 padding-top: 70px;
3}
4
5/* Replacement for `body { background-attachment: fixed; }`, which has
6 performance issues when scrolling on large displays. See #1394. */
7body::before {
8 content: ' ';
9 position: fixed;
10 width: 100%;
11 height: 100%;
12 top: 0;
13 left: 0;
14 background-color: #f8f8f8;
15 background: url(../img/grid.png) repeat-x;
16 will-change: transform;
17 z-index: -1;
18}
19
20body > .container {
21 min-height: 400px;
22}
23
24ul.nav .main {
25 font-weight: bold;
26}
27
28.col-md-3 {
29 padding-left: 0;
30 z-index: 1;
31}
32
33.col-md-9 {
34 padding-bottom: 100px;
35}
36
37.source-links {
38 float: right;
39}
40
41.col-md-9 img {
42 max-width: 100%;
43 display: inline-block;
44 padding: 4px;
45 line-height: 1.428571429;
46 background-color: #fff;
47 border: 1px solid #ddd;
48 border-radius: 4px;
49 margin: 20px auto 30px auto;
50}
51
52/*
53 * The code below adds some padding to the top of the current anchor target so
54 * that, when navigating to it, the header isn't hidden by the navbar at the
55 * top.
56 */
57:target::before {
58 content: "";
59 display: block;
60 margin-top: -75px;
61 height: 75px;
62 pointer-events: none;
63}
64
65h1 {
66 color: #444;
67 font-weight: 400;
68 font-size: 42px;
69}
70
71h2, h3, h4, h5, h6 {
72 color: #444;
73 font-weight: 300;
74}
75
76hr {
77 border-top: 1px solid #aaa;
78}
79
80pre, .rst-content tt {
81 max-width: 100%;
82 background: #fff;
83 border: solid 1px #e1e4e5;
84 color: #333;
85 overflow-x: auto;
86}
87
88code.code-large, .rst-content tt.code-large {
89 font-size: 90%;
90}
91
92code {
93 padding: 2px 5px;
94 background: #fff;
95 border: solid 1px #e1e4e5;
96 color: #333;
97 white-space: pre-wrap;
98 word-wrap: break-word;
99}
100
101pre code {
102 background: transparent;
103 border: none;
104 white-space: pre;
105 word-wrap: normal;
106 font-family: monospace,serif;
107 font-size: 12px;
108}
109
110kbd {
111 padding: 2px 4px;
112 font-size: 90%;
113 color: #fff;
114 background-color: #333;
115 border-radius: 3px;
116 -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
117 box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
118}
119
120a code {
121 color: #2FA4E7;
122}
123
124a:hover code, a:focus code {
125 color: #157AB5;
126}
127
128footer {
129 margin-top: 30px;
130 margin-bottom: 10px;
131 text-align: center;
132 font-weight: 200;
133}
134
135.modal-dialog {
136 margin-top: 60px;
137}
138
139/*
140 * Side navigation
141 *
142 * Scrollspy and affixed enhanced navigation to highlight sections and secondary
143 * sections of docs content.
144 */
145
146/* By default it's not affixed in mobile views, so undo that */
147.bs-sidebar.affix { /* csslint allow: adjoining-classes */
148 position: static;
149}
150
151.bs-sidebar.well { /* csslint allow: adjoining-classes */
152 padding: 0;
153 max-height: 90%;
154 overflow-y: auto;
155}
156
157/* First level of nav */
158.bs-sidenav {
159 padding-top: 10px;
160 padding-bottom: 10px;
161 border-radius: 5px;
162}
163
164/* All levels of nav */
165.bs-sidebar .nav > li > a {
166 display: block;
167 padding: 5px 20px;
168 z-index: 1;
169}
170.bs-sidebar .nav > li > a:hover,
171.bs-sidebar .nav > li > a:focus {
172 text-decoration: none;
173 border-right: 1px solid;
174}
175.bs-sidebar .nav > .active > a,
176.bs-sidebar .nav > .active:hover > a,
177.bs-sidebar .nav > .active:focus > a {
178 font-weight: bold;
179 background-color: transparent;
180 border-right: 1px solid;
181}
182
183/* Nav: second level (shown on .active) */
184.bs-sidebar .nav .nav {
185 display: none; /* Hide by default, but at >768px, show it */
186 margin-bottom: 8px;
187}
188.bs-sidebar .nav .nav > li > a {
189 padding-top: 3px;
190 padding-bottom: 3px;
191 padding-left: 30px;
192 font-size: 90%;
193}
194
195/* Show and affix the side nav when space allows it */
196@media (min-width: 992px) {
197 /* Workaround a Safari bug when zooming to < 100%
198 https://github.com/mkdocs/mkdocs/issues/1050 */
199 .col-md-9 {
200 box-sizing: border-box; /* csslint allow: box-sizing */
201 padding-left: 25%;
202 width: 100%;
203 }
204 .bs-sidebar .nav > .active > ul {
205 display: block;
206 }
207 /* Widen the fixed sidebar */
208 .bs-sidebar.affix, /* csslint allow: adjoining-classes */
209 .bs-sidebar.affix-bottom { /* csslint allow: adjoining-classes */
210 width: 213px;
211 }
212 .bs-sidebar.affix { /* csslint allow: adjoining-classes */
213 position: fixed; /* Undo the static from mobile first approach */
214 top: 80px;
215 }
216 .bs-sidebar.affix-bottom { /* csslint allow: adjoining-classes */
217 position: absolute; /* Undo the static from mobile first approach */
218 }
219 .bs-sidebar.affix-bottom .bs-sidenav, /* csslint allow: adjoining-classes */
220 .bs-sidebar.affix .bs-sidenav { /* csslint allow: adjoining-classes */
221 margin-top: 0;
222 margin-bottom: 0;
223 }
224}
225@media (min-width: 1200px) {
226 /* Widen the fixed sidebar again */
227 .bs-sidebar.affix-bottom, /* csslint allow: adjoining-classes */
228 .bs-sidebar.affix { /* csslint allow: adjoining-classes */
229 width: 263px;
230 }
231}
232
233.headerlink {
234 font-family: FontAwesome;
235 font-size: 14px;
236 display: none;
237 padding-left: .5em;
238}
239
240h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink{
241 display:inline-block;
242}
243
244
245
246.admonition {
247 padding: 15px;
248 margin-bottom: 20px;
249 border: 1px solid transparent;
250 border-radius: 4px;
251 text-align: left;
252}
253
254.admonition.note { /* csslint allow: adjoining-classes */
255 color: #3a87ad;
256 background-color: #d9edf7;
257 border-color: #bce8f1;
258}
259
260.admonition.warning { /* csslint allow: adjoining-classes */
261 color: #c09853;
262 background-color: #fcf8e3;
263 border-color: #fbeed5;
264}
265
266.admonition.danger { /* csslint allow: adjoining-classes */
267 color: #b94a48;
268 background-color: #f2dede;
269 border-color: #eed3d7;
270}
271
272.admonition-title {
273 font-weight: bold;
274 text-align: left;
275}
276
277
278.dropdown-submenu {
279 position: relative;
280}
281
282.dropdown-submenu>.dropdown-menu {
283 top: 0;
284 left: 100%;
285 margin-top: -6px;
286 margin-left: -1px;
287 -webkit-border-radius: 0 6px 6px 6px;
288 -moz-border-radius: 0 6px 6px;
289 border-radius: 0 6px 6px 6px;
290}
291
292.dropdown-submenu:hover>.dropdown-menu {
293 display: block;
294}
295
296.dropdown-submenu>a:after {
297 display: block;
298 content: " ";
299 float: right;
300 width: 0;
301 height: 0;
302 border-color: transparent;
303 border-style: solid;
304 border-width: 5px 0 5px 5px;
305 border-left-color: #ccc;
306 margin-top: 5px;
307 margin-right: -10px;
308}
309
310.dropdown-submenu:hover>a:after {
311 border-left-color: #fff;
312}
313
314.dropdown-submenu.pull-left { /* csslint allow: adjoining-classes */
315 float: none;
316}
317
318.dropdown-submenu.pull-left>.dropdown-menu { /* csslint allow: adjoining-classes */
319 left: -100%;
320 margin-left: 10px;
321 -webkit-border-radius: 6px 0 6px 6px;
322 -moz-border-radius: 6px 0 6px 6px;
323 border-radius: 6px 0 6px 6px;
324}