aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/html/css/theme_extra.css
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/css/theme_extra.css')
-rw-r--r--doc/html/css/theme_extra.css193
1 files changed, 193 insertions, 0 deletions
diff --git a/doc/html/css/theme_extra.css b/doc/html/css/theme_extra.css
new file mode 100644
index 00000000..e53d320a
--- /dev/null
+++ b/doc/html/css/theme_extra.css
@@ -0,0 +1,193 @@
1/*
2 * Sphinx doesn't have support for section dividers like we do in
3 * MkDocs, this styles the section titles in the nav
4 *
5 * https://github.com/mkdocs/mkdocs/issues/175
6 */
7.wy-menu-vertical span {
8 line-height: 18px;
9 padding: 0.4045em 1.618em;
10 display: block;
11 position: relative;
12 font-size: 90%;
13 color: #838383;
14}
15
16.wy-menu-vertical .subnav a {
17 padding: 0.4045em 2.427em;
18}
19
20/*
21 * Long navigations run off the bottom of the screen as the nav
22 * area doesn't scroll.
23 *
24 * https://github.com/mkdocs/mkdocs/pull/202
25 *
26 * Builds upon pull 202 https://github.com/mkdocs/mkdocs/pull/202
27 * to make toc scrollbar end before navigations buttons to not be overlapping.
28 */
29.wy-nav-side {
30 height: calc(100% - 45px);
31 overflow-y: auto;
32 min-height: 0;
33}
34
35.rst-versions{
36 border-top: 0;
37 height: 45px;
38}
39
40@media screen and (max-width: 768px) {
41 .wy-nav-side {
42 height: 100%;
43 }
44}
45
46/*
47 * readthedocs theme hides nav items when the window height is
48 * too small to contain them.
49 *
50 * https://github.com/mkdocs/mkdocs/issues/#348
51 */
52.wy-menu-vertical ul {
53 margin-bottom: 2em;
54}
55
56/*
57 * Wrap inline code samples otherwise they shoot of the side and
58 * can't be read at all.
59 *
60 * https://github.com/mkdocs/mkdocs/issues/313
61 * https://github.com/mkdocs/mkdocs/issues/233
62 * https://github.com/mkdocs/mkdocs/issues/834
63 */
64code {
65 white-space: pre-wrap;
66 word-wrap: break-word;
67 padding: 2px 5px;
68}
69
70/**
71 * Make code blocks display as blocks and give them the appropriate
72 * font size and padding.
73 *
74 * https://github.com/mkdocs/mkdocs/issues/855
75 * https://github.com/mkdocs/mkdocs/issues/834
76 * https://github.com/mkdocs/mkdocs/issues/233
77 */
78pre code {
79 white-space: pre;
80 word-wrap: normal;
81 display: block;
82 padding: 12px;
83 font-size: 12px;
84}
85
86/*
87 * Fix link colors when the link text is inline code.
88 *
89 * https://github.com/mkdocs/mkdocs/issues/718
90 */
91a code {
92 color: #2980B9;
93}
94a:hover code {
95 color: #3091d1;
96}
97a:visited code {
98 color: #9B59B6;
99}
100
101/*
102 * The CSS classes from highlight.js seem to clash with the
103 * ReadTheDocs theme causing some code to be incorrectly made
104 * bold and italic.
105 *
106 * https://github.com/mkdocs/mkdocs/issues/411
107 */
108pre .cs, pre .c {
109 font-weight: inherit;
110 font-style: inherit;
111}
112
113/*
114 * Fix some issues with the theme and non-highlighted code
115 * samples. Without and highlighting styles attached the
116 * formatting is broken.
117 *
118 * https://github.com/mkdocs/mkdocs/issues/319
119 */
120.no-highlight {
121 display: block;
122 padding: 0.5em;
123 color: #333;
124}
125
126
127/*
128 * Additions specific to the search functionality provided by MkDocs
129 */
130
131.search-results article {
132 margin-top: 23px;
133 border-top: 1px solid #E1E4E5;
134 padding-top: 24px;
135}
136
137.search-results article:first-child {
138 border-top: none;
139}
140
141form .search-query {
142 width: 100%;
143 border-radius: 50px;
144 padding: 6px 12px; /* csslint allow: box-model */
145 border-color: #D1D4D5;
146}
147
148.wy-menu-vertical li ul {
149 display: inherit;
150}
151
152.wy-menu-vertical li ul.subnav ul.subnav{
153 padding-left: 1em;
154}
155
156.wy-menu-vertical .subnav li.current > a {
157 padding-left: 2.42em;
158}
159.wy-menu-vertical .subnav li.current > ul li a {
160 padding-left: 3.23em;
161}
162
163/*
164 * Improve inline code blocks within admonitions.
165 *
166 * https://github.com/mkdocs/mkdocs/issues/656
167 */
168 .admonition code {
169 color: #404040;
170 border: 1px solid #c7c9cb;
171 border: 1px solid rgba(0, 0, 0, 0.2);
172 background: #f8fbfd;
173 background: rgba(255, 255, 255, 0.7);
174}
175
176/*
177 * Account for wide tables which go off the side.
178 * Override borders to avoid wierdness on narrow tables.
179 *
180 * https://github.com/mkdocs/mkdocs/issues/834
181 * https://github.com/mkdocs/mkdocs/pull/1034
182 */
183.rst-content .section .docutils {
184 width: 100%;
185 overflow: auto;
186 display: block;
187 border: none;
188}
189
190td, th {
191 border: 1px solid #e1e4e5 !important; /* csslint allow: important */
192 border-collapse: collapse;
193}