Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Utilities/Sphinx/static/cmake.css
3153 views
1
/* Import the Sphinx theme style. */
2
@import url("default.css");
3
4
/* Navbar logo */
5
li.rootlink > img {
6
vertical-align: middle;
7
margin-top: -5px;
8
}
9
10
/* Push the footer to the bottom of the page. */
11
body {
12
display: flex;
13
flex-direction: column;
14
min-height: 100svh;
15
}
16
17
div.document {
18
flex-grow: 1;
19
}
20
21
div.bodywrapper,
22
div.body {
23
height: 100%;
24
}
25
26
/* Wrap sidebar content even within words so that long
27
document names do not escape sidebar borders. */
28
div.sphinxsidebarwrapper {
29
word-wrap: break-word;
30
}
31
32
/* Make links inside parsed-literal blocks more obvious
33
by using a background color and increased line spacing
34
to make them look boxed. */
35
.literal-block {
36
line-height: 1.4;
37
}
38
.literal-block a.reference.internal {
39
background-color: #dfdfdf;
40
}
41
42
/* Un-justify some elements. */
43
div.body table.docutils p,
44
div.body nav.contents p {
45
text-align: left;
46
}
47
48
/* Apply <pre> style (from classic.css) to signature directive argument. */
49
.signature .sig {
50
padding: 5px;
51
background-color: #eeeeee;
52
color: #333333;
53
line-height: 120%;
54
border: 1px solid #ac9;
55
border-left: none;
56
border-right: none;
57
}
58
59
/* Add additional styling to signature directive argument. */
60
.signature .sig {
61
margin-bottom: 5px;
62
padding-left: calc(5px + 3em);
63
text-indent: -3em;
64
font-family: monospace;
65
}
66
67
.signature .sig .code.sig-name {
68
font-weight: normal;
69
}
70
71
/* Implement non-breaking spaces in signatures. */
72
.nbsp {
73
white-space: nowrap;
74
}
75
76
/* Add hanging indent to deprecated and version-{added,changed} content. Don't
77
de-indent footnotes, because the brackets are rendered as floating elements
78
that ignore the padding, while the de-indenting will cause the following
79
text to overlap the footnote brackets. */
80
div.deprecated > *,
81
div.versionadded > *,
82
div.versionchanged > * {
83
padding-left: 2em;
84
}
85
86
:not(.footnote) > div.deprecated > :first-child,
87
:not(.footnote) > div.versionadded > :first-child,
88
:not(.footnote) > div.versionchanged > :first-child {
89
text-indent: -2em;
90
}
91
92
/* Remove unwanted margin in case list item contains a div-wrapping
93
directive like `.. versionadded` or `.. deprecated`. */
94
dd > :first-child > p {
95
margin-top: 0px;
96
}
97
98
div.outdated {
99
background-color: #f0f0c0;
100
color: black;
101
font-size: 90%;
102
padding-bottom: 5px;
103
padding-left: 2px;
104
padding-right: 2px;
105
padding-top: 5px;
106
text-align: center;
107
}
108
109
/* Revert style to the inherited (normal text) for `:guide:` links */
110
code.xref.cmake-guide {
111
font-size: inherit;
112
font-family: inherit;
113
font-weight: inherit;
114
padding: inherit;
115
}
116
code.xref.cmake-guide span.pre {
117
white-space: inherit;
118
}
119
120
/* Ensure top border for header-less tables. */
121
table.docutils td {
122
border-top: 1px solid #aaa;
123
}
124
125
/* Hide small screen specific items */
126
#sidebar-toggle,
127
#sidebar-check,
128
#sidebar-overlay {
129
display: none;
130
}
131
132
/* Small screen overrides */
133
@media screen and (max-width: 760px) {
134
135
/* Sticky header */
136
div.relbar1 {
137
position: sticky;
138
top: 0;
139
z-index: 10;
140
}
141
142
html {
143
scroll-padding-top: 56px;
144
}
145
146
/* Header and footer */
147
div.related {
148
line-height: 28px;
149
}
150
151
div.related ul {
152
white-space: nowrap;
153
overflow: hidden;
154
text-overflow: ellipsis;
155
}
156
157
div.related li.right {
158
display: none;
159
}
160
161
div.related li.rootlink {
162
display: block;
163
margin-bottom: -1px;
164
}
165
166
div.related span.reldelim1 {
167
display: none;
168
}
169
170
/* Popup sidebar */
171
div.sphinxsidebar {
172
background-color: #e4ece8;
173
margin-left: 0;
174
position: fixed;
175
top: 0;
176
right: 0;
177
width: 260px;
178
height: 100%;
179
overflow-y: scroll;
180
z-index: 30;
181
visibility: hidden;
182
transform: translateX(100%);
183
transition: transform 0.2s ease-out, visibility 0.2s;
184
}
185
186
#sidebar-check:checked ~ div.document div.sphinxsidebar {
187
visibility: visible;
188
transform: none;
189
}
190
191
div.sphinxsidebarwrapper {
192
padding-bottom: 10px;
193
display: flex;
194
flex-direction: column;
195
}
196
197
/* Put the search box first in the sidebar. */
198
#searchbox {
199
order: -1;
200
margin-bottom: 10px;
201
}
202
203
/* Popup sidebar overlay */
204
#sidebar-overlay {
205
display: block;
206
position: fixed;
207
top: 0;
208
width: 100%;
209
height: 200%;
210
background-color: #000;
211
z-index: 20;
212
visibility: hidden;
213
opacity: 0;
214
transition: opacity 0.2s ease-out, visibility 0.2s;
215
}
216
217
#sidebar-check:checked ~ #sidebar-overlay {
218
visibility: visible;
219
opacity: 0.5;
220
}
221
222
/* Popup sidebar button */
223
label.sidebar-toggle {
224
display: block;
225
float: right;
226
position: relative;
227
cursor: pointer;
228
width: 48px;
229
height: 56px;
230
background: no-repeat center/24px url("data:image/svg+xml,\
231
%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath\
232
d='M3,6H21 M3,12H21 M3,18H21' fill='none' stroke='white' stroke-width='2'\
233
stroke-linecap='square' /%3E%3C/svg%3E");
234
}
235
236
/* Force-wrap long words */
237
div.body span.pre {
238
white-space: pre-wrap;
239
}
240
241
/* Disable whole page horizontal scroll, enable selectively. */
242
div.body {
243
min-width: auto;
244
overflow-x: hidden;
245
overflow-wrap: break-word;
246
}
247
248
div.body h1 {
249
white-space: nowrap;
250
overflow-x: auto;
251
}
252
253
table.docutils {
254
display: block;
255
overflow-x: auto;
256
}
257
258
/* Adjust various margins */
259
div.bodywrapper {
260
margin: 0;
261
}
262
263
div.body {
264
padding: 0 12px 12px;
265
}
266
267
div.body h1,
268
div.body h2,
269
div.body h3,
270
div.body h4,
271
div.body h5,
272
div.body h6 {
273
margin: 20px -12px 10px;
274
padding: 3px 0px 3px 12px;
275
}
276
277
div.body h1 {
278
margin-top: 0;
279
}
280
281
div.body ul {
282
padding-left: 15px;
283
}
284
285
div.body dd {
286
margin-left: 10px;
287
}
288
289
div.sphinxsidebar h4 {
290
margin: 0;
291
}
292
293
div.sphinxsidebar ul {
294
margin: 5px 0 10px 10px;
295
}
296
297
div.sphinxsidebar ul ul {
298
margin: 0 0 0 10px;
299
}
300
301
div.sphinxsidebar li {
302
margin-top: 5px;
303
}
304
305
div.deprecated > *,
306
div.versionadded > *,
307
div.versionchanged > * {
308
padding-left: 10px;
309
}
310
311
div.deprecated > :first-child,
312
div.versionadded > :first-child,
313
div.versionchanged > :first-child {
314
text-indent: -10px;
315
}
316
317
a.headerlink {
318
display: none;
319
}
320
321
/* Make index single-column. */
322
table.indextable,
323
table.indextable tbody,
324
table.indextable tr,
325
table.indextable td {
326
display: block;
327
}
328
329
table.indextable td {
330
width: auto !important;
331
}
332
}
333
334