Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
nginx
GitHub Repository: nginx/nginx.org
Path: blob/main/css/style_en.css
1 views
1
body {
2
background: white;
3
color: black;
4
font-family: sans-serif;
5
line-height: 1.4em;
6
text-align: center;
7
margin: 0;
8
padding: 0;
9
}
10
11
#banner {
12
background: black;
13
color: #F2F2F2;
14
line-height: 1.2em;
15
padding: .3em 1em .3em 1em;
16
box-shadow: 0 5px 10px black;
17
}
18
19
#banner a {
20
color: #00B140;
21
}
22
23
#main {
24
text-align: left;
25
margin: 0 auto;
26
min-width: 32em;
27
max-width: 66em;
28
}
29
30
#menu {
31
float: right;
32
width: 13em;
33
padding: 0;
34
border-left: 2px solid #DDD;
35
}
36
.nav ul{
37
margin:0;
38
padding:20px;
39
}
40
.nav h1{
41
padding:0 20px;
42
}
43
.nav ul li{
44
list-style-type:none;
45
padding:0;
46
margin:0;
47
}
48
49
#content {
50
margin-right: 13.5em;
51
padding: 0 2.5em 0 1.5em;
52
}
53
54
h1 {
55
display: block;
56
font-size: 3em;
57
text-align: left;
58
margin: 0.5rem 0 0 0;
59
}
60
61
h1 img {
62
width: 100%;
63
}
64
65
h2 {
66
font-size: 2rem;
67
line-height: 2.25rem;
68
margin: 1rem 0 .5rem 0;
69
overflow-wrap: break-word;
70
}
71
72
h4 {
73
font-size: 1.5rem;
74
margin: 2rem 0 .5rem 0;
75
}
76
/* Center field override */
77
center h4 {
78
text-align: left!important;
79
}
80
81
h5 {
82
font-size: 1.25rem;
83
text-align: center;
84
margin: 0.25rem 0 0 0;
85
}
86
87
p {
88
text-align: justify;
89
margin-bottom: 0;
90
}
91
92
table.news p {
93
margin-top: 0;
94
}
95
96
table.news td {
97
vertical-align: baseline;
98
}
99
100
table.news .date {
101
text-align: right;
102
padding: 0.75rem 0.5rem 0 0;
103
white-space: nowrap;
104
}
105
106
table.donors td {
107
vertical-align: baseline;
108
}
109
110
table.donors li {
111
text-align: left;
112
}
113
114
/* News Archive button */
115
.dropbtn {
116
background-color: #808080;
117
color: white;
118
padding: 0.3rem;
119
font-size: 1rem;
120
border: 1px solid #606060;
121
}
122
.dropdown {
123
position: relative;
124
display: inline-block;
125
padding-bottom: 0.5em;
126
}
127
.dropdown-content {
128
display: none;
129
position: absolute;
130
background-color: #f0f0f0;
131
min-width: 160px;
132
box-shadow: 0px 8px 12px 0px #909090;
133
z-index: 1;
134
}
135
.dropdown-content a {
136
padding: 0.33em;
137
text-decoration: none;
138
display: block;
139
}
140
.dropdown-content a:hover {background-color: #a0a0a0;}
141
.dropdown:hover .dropdown-content {display: block;}
142
.dropdown:hover .dropbtn {background-color: #909090;}
143
144
div.directive {
145
background: #F2F2F2;
146
line-height: 1em;
147
margin: 1em 0 1em -1em;
148
padding: .7em .7em .7em 1em;
149
border-top: 2px solid #DDD;
150
width:100%;
151
}
152
153
div.directive th {
154
padding-left: 0;
155
padding-right: .5em;
156
vertical-align: baseline;
157
text-align: left;
158
font-weight: normal;
159
}
160
161
div.directive td {
162
vertical-align: baseline;
163
}
164
165
div.directive pre {
166
padding: 0;
167
margin: 0;
168
}
169
170
div.directive code {
171
background: none!important;
172
padding: 0!important;
173
border: none;
174
}
175
176
div.directive p {
177
margin: .5em 0 0 .1em;
178
font-size: .8em;
179
}
180
181
a.notrans {
182
color: #808080;
183
text-decoration:none;
184
}
185
186
span.initial {
187
font-size: 200%;
188
float: left;
189
padding-right: 10pt;
190
}
191
192
ul, ol {
193
margin: .5em 0 1em 1em;
194
padding: 0 .5em;
195
}
196
197
ol {
198
list-style-position: inside;
199
}
200
201
li {
202
padding: .5em 0 0 1px;
203
}
204
205
.compact li {
206
padding-top: 0;
207
}
208
209
dl {
210
margin: .5em 0 1em 0;
211
}
212
213
dt {
214
margin: 1em 0 0 0!important;
215
font-size: 0.9rem;
216
}
217
218
.compact dt {
219
margin-bottom: .2em;
220
}
221
222
dd {
223
margin: 0.25rem 0 1.5rem 1rem;
224
padding-left: 1px;
225
text-align: justify;
226
}
227
228
td.list {
229
background: #f2f2f2;
230
}
231
232
blockquote {
233
margin: 0.5rem 0 0 0;
234
padding: 0;
235
}
236
237
li blockquote, dd blockquote {
238
margin: .7em 0;
239
}
240
241
blockquote.note {
242
padding: 0.5rem;
243
border: 1px dotted #999;
244
line-height: 1.2em;
245
text-align: justify;
246
}
247
248
pre {
249
border: 0;
250
display: block;
251
margin: 1em 0;
252
padding: 0.6em 1em;
253
overflow-x: auto;
254
line-height: 1.05rem;
255
}
256
257
code,.legacy{
258
font-size: 100%;
259
padding: 3px 7px;
260
overflow-x: scroll;
261
background: #eee;
262
}
263
264
pre code{
265
background: none;
266
padding: 0;
267
border-radius: 0;
268
}
269
270
blockquote pre {
271
background-color: #f8f8f8!important;
272
color: #222!important;
273
margin: 0;
274
border: 1px solid #ddd;
275
}
276
277
blockquote.terminal pre{
278
background-color: #444!important;
279
color: #fff!important;
280
}
281
282
blockquote.example {
283
line-height: 1em;
284
}
285
286
sup {
287
font-size: 50%;
288
}
289
290
.video {
291
position: relative;
292
padding-bottom: 56.25%;
293
overflow: hidden;
294
}
295
296
.video iframe, .video object, .video embed {
297
position: absolute;
298
top:0;
299
left:0;
300
width:100%;
301
height:100%;
302
}
303
304
@media screen and (max-width:750px) {
305
#main {
306
padding: 20px;
307
min-width: inherit;
308
}
309
#main #content {
310
width: 100%!important;
311
padding: 0;
312
border: none;
313
}
314
315
#banner-content {
316
max-width: 70vw;
317
}
318
319
#menu {
320
text-align: left;
321
}
322
323
/* Menu Mobile */
324
:root {
325
--white: #f9f9f9;
326
--black: #000;
327
--gray: #85888C;
328
--green: #b6d7a8;
329
color-scheme: light dark;
330
} /* variables*/
331
332
/* Nav menu */
333
.nav {
334
width: 15rem;
335
height: 100%;
336
max-height: 0;
337
position: fixed;
338
top: 50px;
339
right: 0;
340
border-left: 1px solid #909090;
341
background-color: var(--white);
342
overflow: hidden;
343
transition: .5s ease-in-out;
344
}
345
.nav ul {
346
margin: 0;
347
padding: 20px;
348
}
349
.nav h1 {
350
padding: 0 20px;
351
}
352
.nav ul li {
353
list-style-type: none;
354
padding:0;
355
margin:0;
356
}
357
358
.hamb {
359
cursor: pointer;
360
float: right;
361
position: absolute;
362
top: 0;
363
right: 0.25em;
364
width: 3.5em;
365
padding-top: 1.5em;
366
z-index: 1100;
367
}
368
.hamb-line {
369
background: var(--green);
370
display: block;
371
position: relative;
372
height: 0.3em;
373
width: 2.75em;
374
border-radius:3px;
375
}
376
.hamb-line::before,.hamb-line::after {
377
background: var(--green);
378
content: '';
379
display: block;
380
height: 100%;
381
position: absolute;
382
transition: all .2s ease-in-out;
383
width: 100%;
384
border-radius:3px;
385
}
386
.hamb-line::before{
387
top: 10px;
388
}
389
.hamb-line::after{
390
top: -10px;
391
}
392
.side-menu {
393
display: none;
394
} /* Hide checkbox */
395
.side-menu:checked ~ .nav{
396
max-height: 100%;
397
top: 50px;
398
399
}
400
.side-menu:checked ~ .hamb .hamb-line {
401
background: transparent;
402
}
403
.side-menu:checked ~ .hamb .hamb-line::before {
404
transform: rotate(-45deg);
405
top: 0;
406
}
407
.side-menu:checked ~ .hamb .hamb-line::after {
408
transform: rotate(45deg);
409
top: 0;
410
}
411
412
code {
413
white-space: pre-line;
414
}
415
}
416
417
@media screen and (min-width:750px){
418
.side-menu,.hamb-line {
419
display: none;
420
}
421
}
422
423
/* Dark Mode */
424
@media (prefers-color-scheme: dark) {
425
body {
426
background-color: #1c262d;
427
color:#eee;
428
}
429
h1,h2,h3,h4,h5,h6,p {
430
color: #eee;
431
}
432
a {
433
color: #55A4F1;
434
text-decoration: underline;
435
}
436
a:visited {
437
color: #8b79c0!important;
438
}
439
.nav {
440
background:var(--black);
441
}
442
#menu a {
443
color: #55A4F1;
444
}
445
blockquote pre {
446
color: #ddd!important;
447
background: #0f1b29!important;
448
border: 1px solid #132235;
449
}
450
div.directive {
451
background: #0c1622!important;
452
border-top: 2px solid #203c5e!important;
453
}
454
code {
455
background:#0c1622;
456
color: #ddd!important;
457
}
458
.lightimage {
459
display: none!important;
460
}
461
.darkimageWrapper, .darkimage {
462
display: block!important;
463
}
464
.dropbtn {background-color: #202020;}
465
.dropdown-content {
466
background-color: #404040;
467
box-shadow: 0px 8px 12px 0px #101010;
468
}
469
.dropdown-content a:hover {background-color: #242424;}
470
.dropdown:hover .dropbtn {background-color: #202020;}
471
}
472
473