|
a |
|
b/docs/theme_dir/css/extra.css |
|
|
1 |
/* From Keras theme_extrac css file: */ |
|
|
2 |
|
|
|
3 |
/* |
|
|
4 |
* Long navigations run off the bottom of the screen as the nav |
|
|
5 |
* area doesn't scroll. |
|
|
6 |
* |
|
|
7 |
* https://github.com/mkdocs/mkdocs/pull/202 |
|
|
8 |
*/ |
|
|
9 |
.wy-nav-side { |
|
|
10 |
height: 100%; |
|
|
11 |
overflow-y: auto; |
|
|
12 |
} |
|
|
13 |
|
|
|
14 |
.wy-nav-content { |
|
|
15 |
max-width: 900px; |
|
|
16 |
} |
|
|
17 |
|
|
|
18 |
/* |
|
|
19 |
* readthedocs theme hides nav items when the window height is |
|
|
20 |
* too small to contain them. |
|
|
21 |
* |
|
|
22 |
* https://github.com/mkdocs/mkdocs/issues/#348 |
|
|
23 |
*/ |
|
|
24 |
.wy-menu-vertical ul { |
|
|
25 |
margin-bottom: 2em; |
|
|
26 |
} |
|
|
27 |
|
|
|
28 |
/* |
|
|
29 |
* Fix wrapping in the code highlighting |
|
|
30 |
* |
|
|
31 |
* https://github.com/mkdocs/mkdocs/issues/233 |
|
|
32 |
*/ |
|
|
33 |
code { |
|
|
34 |
white-space: pre; |
|
|
35 |
font-size: 90%; |
|
|
36 |
color: #9E0F00; |
|
|
37 |
background: #FFFAFA; |
|
|
38 |
} |
|
|
39 |
|
|
|
40 |
/* |
|
|
41 |
* Wrap inline code samples otherwise they shoot of the side and |
|
|
42 |
* can't be read at all. |
|
|
43 |
* |
|
|
44 |
* https://github.com/mkdocs/mkdocs/issues/313 |
|
|
45 |
*/ |
|
|
46 |
p code { |
|
|
47 |
word-wrap: break-word; |
|
|
48 |
} |
|
|
49 |
|
|
|
50 |
/* |
|
|
51 |
* The CSS classes from highlight.js seem to clash with the |
|
|
52 |
* ReadTheDocs theme causing some code to be incorrectly made |
|
|
53 |
* bold and italic. |
|
|
54 |
* |
|
|
55 |
* https://github.com/mkdocs/mkdocs/issues/411 |
|
|
56 |
*/ |
|
|
57 |
code.cs, code.c { |
|
|
58 |
font-weight: inherit; |
|
|
59 |
font-style: inherit; |
|
|
60 |
} |
|
|
61 |
|
|
|
62 |
/* |
|
|
63 |
* Fix some issues with the theme and non-highlighted code |
|
|
64 |
* samples. Without and highlighting styles attached the |
|
|
65 |
* formatting is broken. |
|
|
66 |
* |
|
|
67 |
* https://github.com/mkdocs/mkdocs/issues/319 |
|
|
68 |
*/ |
|
|
69 |
.no-highlight { |
|
|
70 |
display: block; |
|
|
71 |
padding: 0.5em; |
|
|
72 |
color: #333; |
|
|
73 |
} |