-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
396 lines (362 loc) · 8.98 KB
/
main.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
*{
padding:0;
margin:0;
}
html,body {
height:100%;
}
body{
background-color: #fafafa;
display: flex;
flex-flow: column;
font-family: Sans-Serif;
overflow: hidden;
}
a{text-decoration: none;}
a, a:visited{color: #555;}
a, a:active, a:focus {outline: none;}
blockquote{
font-family: serif;
font-style: italic;
padding: .25rem .5rem;
width: 96%;
margin: 2rem 2%;
}
blockquote p{margin: .5rem auto;}
code{
font-family: monospace;
font-size: .75rem;
overflow-x: auto;
white-space: no-wrap;
}
h1{font-size:28px}
h2{font-size:24px}
h3{font-size:20px}
h4{font-size:18px}
h5{font-size:16px}
h6{font-size:14px}
p {margin: 0 auto 1rem auto;}
pre{
font-family: monospace;
font-size: .75rem;
margin: .25rem 0 1rem 0;
overflow-x: auto;
white-space: no-wrap;
}
figure {
margin: 2rem auto;
}
figure *{
margin: 0 auto;
}
figure figcaption {
color: #555;
font-style: italic;
margin: .5rem auto;
text-align: center;
}
figure img {
background: #fff;
border: 1px #555 solid;
box-shadow: 0 0 1rem rgba(0, 0, 0, 0.4);
display: block;
margin: 0 auto;
padding: 5px;
max-width: 90%;
}
table{
border: thin #555 solid;
border-collapse: collapse;
color: #555;
}
tr:nth-child(odd) { background-color: #eee; }
tr:nth-child(even) { background-color: #fff; }
td,th{
border: thin #555 solid;
padding: .25rem .4rem;
}
th{
background-color: #485969;
color: white;
font-weight: 400;
}
/* the top header */
header.main-header{
background-color: #485969;
display:flex;
flex-flow: row;
font-weight: 400;
font-family: Metropolis,"Avenir Next","Helvetica Neue",Arial,sans-serif;
letter-spacing: .01em;
color: #fafafa;
text-decoration: none;
height: 60px;
font-size: 1em;
line-height: 60px;
margin-bottom:.5rem;
}
header.main-header a {
color: #fff;
}
/* vmw logo */
header.main-header div:first-child{
padding-top:12px;
padding-left: 1.5em;
padding-right: .75em;
}
/* github logo */
header.main-header div:last-child{
margin-left: auto;
}
header.main-header div:last-child a{
display: flex;
align-items: center;
height: 16px;
margin: .5rem .75rem 0 0;
border: 1px solid #fafafa;
border-radius: .25em;
background-color: #fafafa;
color: #000;
font-size: 12px;
font-weight: 600;
padding: 5px;
}
header.main-header div:last-child a *{
padding: 0 2px;
}
/* the page content including navs */
article.main-article {
flex:1;
display:flex;
flex-flow: row;
overflow: hidden;
}
/* the main left-hand nav. the left nav is a ul which contains sub-menu ul. sub-menu text is wrapped in a span. */
/* ul.top-level is the top-level ul */
/* li.open is for open sub-menus */
/* li.parent is a parent menu item of the current page */
nav.left-nav {
background-color: #fafafa;
color: #555;
width:200px;
padding-left:.25rem;
}
nav.left-nav a{padding-right:.2rem;}
nav.left-nav a:hover{color: #000;}
nav.left-nav a.active{color: #e05244;}
nav.left-nav span{
cursor: pointer;
display:block;
font-weight:600;
padding: .1rem .2rem .1rem 0;
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
nav.left-nav span:hover{color: #1d428a;}
nav.left-nav li {
display:block;
font-size: .75rem;
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
nav.left-nav li ul { /* a sub-menu */
transition: opacity .5s ease-out;
opacity: 0;
height: 0;
overflow: hidden;
}
nav.left-nav ul.top-level > li > span{background-color:#eee; font-size:.9rem; padding:.25rem 0;}
nav.left-nav ul.top-level > li.open {border-bottom:3px solid #eee;}
nav.left-nav ul.top-level > li.parent:not(.open) > span{color:#1d428a;}
nav.left-nav ul:not(.top-level) > li > ul {padding-left:.2rem;}
nav.left-nav li.parent > span{font-weight:600; color:#1d428a;}
nav.left-nav li.open > ul {height:auto; opacity:1;}
/* the main content */
main {
color: #555;
flex: 1;
font-size: .75em;
overflow-y: auto;
margin: 0 0 2rem 0;
}
main a, main a:visited{color: #0091da;}
main a:hover{color: #e05244;}
main h1, main h2, main h3, main h4, main h5{
font-weight: 500;
margin: .5rem 0;
}
main h1{font-size: 2.25rem;}
main h2{font-size: 2rem;}
main h3{font-size: 1.5rem;}
main h4{font-size: 1.25rem;}
main h5{font-size: 1rem;}
main h6{font-size: .75rem;}
/* the right-hand toc menu */
div.TableOfContents{
border-bottom:3px solid #eee;
font-size: .7rem;
min-height: 100px;
width: 200px;
overflow-y: auto;
position: sticky;
float:right;
top:0;
}
div.TableOfContents li{
display: block;
padding-left: .25rem;
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
div.TableOfContents li > ul{padding-left: .2rem;}
div.TableOfContents li{padding-bottom: .1rem;}
div.TableOfContents h1{
background-color: #eee;
padding: .1rem 0 .1rem .25rem;
font-size: .9rem;
font-weight: 600;
margin: 0;
}
/* the top-level article for home page */
article.home{margin: 0 1rem;}
article.home h1{font-size: 2rem;}
article.home h2{font-size: 1.75rem;}
/* the top-level article for single-page views */
article.content{margin: 0 1rem;}
article.content h2:not(:first-of-type){margin-top: 7rem;}
article.content h2{text-decoration: underline;}
article.content h3{margin-top: 2.5rem;}
article.content h4, article.content h5, article.content h6{margin-top: 1.5rem;}
article.content ol, article.content ul{margin: 0 0 1.75rem 1.5rem;}
article.content li{
margin: .2rem 0;
padding-left: .25rem;
}
article.content.news h2:not(:first-of-type){margin-top: 2rem;}
article.content.news h2{font-size: 1.75rem;}
article.content.news h3{font-size: 1.5rem; margin-top: 1.5rem;}
article.content.news h4, article.content h5, article.content h6{margin-top: 1rem;}
article.content.with-toc{padding-right: 200px;} /* make room for toc if present */
/* the top-level articles for list views */
article.content-list{
margin: 0 1rem;
padding: 0 1rem;
}
/* article summaries for list views */
article.summary{
background-color: #fff;
border: 1px solid #eee;
margin: .5rem 0;
padding: .5rem;
}
article.summary h1 a{color:#555}
article.summary.news h1{font-size: 1.5rem;}
article.summary.news h2{font-size: 1.25rem;}
article.summary.news h3{font-size: 1rem;}
/* guide articles within full-guide views */
article.guide:not(:first-of-type){
padding-top: 7rem;
}
/* the main content header */
header.content-header{
border-bottom: 2px solid #555;
margin-bottom: 3rem;
padding-bottom: .25rem;
}
header.content-header h1{font-size:2.5rem; font-style:italic; font-weight:600; text-decoration:none;}
header.content-header h2{font-size:1.5rem; font-style:italic; font-weight:600; margin:0; text-decoration:none;}
/* the article headers for full-guide views */
header.guide-header{
background-color: #eee;
margin-bottom: 4rem;
padding: .25rem 0;
}
header.guide-header h1{font-size: 2.75rem;font-style: italic; font-weight:600; text-decoration:none;}
header.guide-header h2{font-size: 2rem;font-style: italic; font-weight:600; margin:0; text-decoration:none;}
/* main content footer */
footer.content-footer{
border-top: 2px solid #eee;
font-style: italic;
margin-top: 5rem;
padding-top: 1rem;
}
footer.content-footer div{
margin: .5rem;
}
/* general header styling */
header.bold{font-weight: 600;}
header.medium{font-size: 1.25rem;}
header.large{font-size: 1.5rem;}
header.xlarge{font-size: 2rem;}
/* figure styling */
figure.no-center {
margin: 2rem 0;
width: max-content;
}
figure.full-width > *{width: 100%;}
/* used for export link inside fig shortcode */
figure div.tab{
text-align: right;
width: auto;
}
figure div.tab a{padding: .1rem .25rem;}
/* section styling */
section{margin: 0 0 1rem 0;}
section.bordered{
border: 1px solid #eee;
padding: 0.5rem 1rem;
}
section header{
font-weight: 600;
margin-bottom: .5rem;
}
section.checklist ol, section.checklist ul{list-style-type: "\2610";}
section.callout{
background-color: #eee;
border-left: 3px solid #0091da;
font-style: italic;
padding: .25rem .5rem;
width: 96%;
margin: 2rem 0;
}
section.callout.red{border-left: 3px solid #e05244;}
section.callout.green{border-left: 3px solid #6db33f;}
section.callout header{font-size: 1rem;}
section.callout ol, section.callout ul{margin: 0 0 .5rem 1.5rem;}
/* span lists*/
span.list{
display: inline;
margin:0;
}
span.list span:after {content: ", ";}
span.list span:last-child:after {content: "";}
/* pre styling */
pre.bordered{
border: 1px solid #eee;
padding: 0.5rem 1rem;
}
pre.select-all{user-select: all;}
/* Too narrow to support three columns */
@media all and (max-width: 640px) {
article {
flex-direction: column;
}
}
@media print{
header.main-header,nav.left-nav,div.TableOfContents,footer.content-footer{display: none;}
body,article,main{
display: block !important; /* without this, only first page prints. !important overrides class settings. */
margin: 0 !important;
padding: 0 !important;
}
article.guide:not(:first-of-type){page-break-before: always;}
article.content h2{margin-top:0 !important;}
article.content h2:not(:first-of-type){page-break-before: always;}
figure,table{page-break-inside: avoid;}
}
@page {
size: A4;
}