chiark / gitweb /
Read the docs (#132)
[nlopt.git] / doc / nlopt-mkdocs-theme / css / theme_extra.css
1  }* Tweak the overal size to better match RTD.
2  */
3 body {
4     font-size: 90%;
5 }
6
7 h3, h4, h5, h6 {
8     color: #000000;
9     font-weight: 300
10 }
11
12 /*
13  * Sphinx doesn't have support for section dividers like we do in
14  * MkDocs, this styles the section titles in the nav
15  *
16  * https://github.com/mkdocs/mkdocs/issues/175
17  */
18 .wy-menu-vertical span {
19     line-height: 18px;
20     padding: 0.4045em 1.618em;
21     display: block;
22     position: relative;
23     font-size: 90%;
24     color: #838383;
25 }
26
27 .wy-menu-vertical .subnav a {
28     padding: 0.4045em 2.427em;
29 }
30
31 /*
32  * Long navigations run off the bottom of the screen as the nav
33  * area doesn't scroll.
34  *
35  * https://github.com/mkdocs/mkdocs/pull/202
36  */
37 .wy-nav-side {
38     height: 100%;
39     overflow-y: auto;
40 }
41
42 /*
43  * readthedocs theme hides nav items when the window height is
44  * too small to contain them.
45  *
46  * https://github.com/mkdocs/mkdocs/issues/#348
47  */
48 .wy-menu-vertical ul {
49   margin-bottom: 2em;
50 }
51
52 /*
53  * Wrap inline code samples otherwise they shoot of the side and
54  * can't be read at all.
55  *
56  * https://github.com/mkdocs/mkdocs/issues/313
57  */
58 /*
59 p code {
60     word-wrap: break-word;
61 }
62 */
63
64 /*
65  * The CSS classes from highlight.js seem to clash with the
66  * ReadTheDocs theme causing some code to be incorrectly made
67  * bold and italic.
68  *
69  * https://github.com/mkdocs/mkdocs/issues/411
70  */
71
72 code.cs, code.c {
73     font-weight: inherit;
74     font-style: inherit;
75 }
76
77 /*
78  * Fix some issues with the theme and non-highlighted code
79  * samples. Without and highlighting styles attached the
80  * formatting is broken.
81  *
82  * https://github.com/mkdocs/mkdocs/issues/319
83  */
84 .no-highlight {
85   display: block;
86   padding: 0.5em;
87   color: #333;
88 }
89
90
91 /*
92  * Additions specific to the search functionality provided by MkDocs
93  */
94
95 #mkdocs-search-results article h3
96 {
97     margin-top: 23px;
98     border-top: 1px solid #E1E4E5;
99     padding-top: 24px;
100 }
101
102 #mkdocs-search-results article:first-child h3 {
103     border-top: none;
104 }
105
106 #mkdocs-search-query{
107     width: 100%;
108     border-radius: 50px;
109     padding: 6px 12px;
110     border-color: #D1D4D5;
111 }
112
113 .wy-menu-vertical li ul {
114     display: inherit;
115 }
116
117 .wy-menu-vertical li ul.subnav ul.subnav{
118     padding-left: 1em;
119 }
120
121 /*
122  * Fix wrapping in the code highlighting
123  *
124  * https://github.com/mkdocs/mkdocs/issues/233
125  */
126 code {
127     white-space: pre;
128     border: none;
129     /*background-color: lightgray;*/
130     background-color: inherit;
131     color: black;
132     color: inherit;
133 }
134
135 pre {
136   padding: 5px 5px 5px 5px;
137   font-size: 125%;
138   /*border-style: dashed dashed dashed dashed;*/
139   border-width: 0pt black;
140   background: lightgray;
141   background-color: lightgray;
142   color: black;
143 }
144
145 .hljs {
146   background: lightgray;
147   background-color: lightgray;
148   color: black;
149 }
150
151 /*
152  * HR 20150603 I can't figure out any way to get
153  * small caps text other than via the following kluge:
154  *
155  * 1. Enable the 'wikilinks' markdown extension in the 
156  *    mkdocs.yml file     
157  *
158  * 2. Include the following style specification to ensure
159  *    that wikilinks are rendered in small caps but otherwise
160  *    like ordinary text (i.e. in ordinary black text and 
161  *    with the usual underline-on-hover feature turned off)
162  *
163  * 3. Then text delineated by double brackets (as in: [[scuff-em]])
164  *    be rendered in small caps.
165  */
166 a.wikilink {
167    font-variant: small-caps;
168    color: #000000;
169 }
170 a.wikilink:hover
171  {text-decoration:none }
172
173 .SmallCaps{
174    font-variant: small-caps;
175    font-variant-numeric: oldstyle-nums;
176 }
177
178 .SC{
179    font-variant: small-caps;
180    font-variant-numeric: oldstyle-nums;
181 }
182
183 ol.TOC { 
184   margin: 20px 0;
185   padding:5px;
186   border: 1px solid #aaaaaa;
187   background-color: #f9f9f9;
188 }
189
190 .toc { 
191   margin: 20px 0;
192   padding:5px;
193   border: 1px solid #aaaaaa;
194   background-color: #f9f9f9;
195 }
196
197 .toctitle 
198  { font-variant: small-caps; 
199    font-weight:  bold;
200    padding: 5px;
201    margin: 5px 5px;
202    text-align: center;
203  }
204
205 .shaded
206  { background-color: #EEEEEE;
207  }