Mercurial > hg > nginx-site
annotate xsls/style.xsls @ 1316:4b2038d262a1
A link to nginx.com removed as nginx.org already has enough
links to nginx.com.
author | Maxim Konovalov <maxim@nginx.com> |
---|---|
date | Mon, 29 Sep 2014 14:52:44 +0000 |
parents | b6fd4402ab2e |
children | 15b49619f7fc |
rev | line source |
---|---|
580
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
496
diff
changeset
|
1 <!-- |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
496
diff
changeset
|
2 Copyright (C) Igor Sysoev |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
496
diff
changeset
|
3 Copyright (C) Nginx, Inc. |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
496
diff
changeset
|
4 --> |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
496
diff
changeset
|
5 |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
6 X:stylesheet { |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
7 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
8 X:template style (lang) { |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
9 |
93
9151d4344e65
Added required attribute "type" for the <style> element.
Ruslan Ermilov <ru@nginx.com>
parents:
71
diff
changeset
|
10 <style type="text/css">!{ normalize-space(' |
1079
2d49e9ef39c3
Explicitly set background and font colors for body.
Valentin Bartenev <vbart@nginx.com>
parents:
802
diff
changeset
|
11 body { background: white; |
2d49e9ef39c3
Explicitly set background and font colors for body.
Valentin Bartenev <vbart@nginx.com>
parents:
802
diff
changeset
|
12 color: black; |
1310
fd567779aac1
Design: switched to sans-serif font family.
Valentin Bartenev <vbart@nginx.com>
parents:
1308
diff
changeset
|
13 font-family: sans-serif; |
1311
b6fd4402ab2e
Design: tuned line spacing.
Valentin Bartenev <vbart@nginx.com>
parents:
1310
diff
changeset
|
14 line-height: 1.4em; |
1308
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
15 text-align: center; |
1219
69445572ea13
Design: added left padding for main text layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1218
diff
changeset
|
16 margin: 0; |
1308
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
17 padding: 0; } |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
18 #banner { background: black; |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
19 color: #F2F2F2; |
1311
b6fd4402ab2e
Design: tuned line spacing.
Valentin Bartenev <vbart@nginx.com>
parents:
1310
diff
changeset
|
20 line-height: 1.2em; |
1308
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
21 padding: .3em 0; |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
22 box-shadow: 0 5px 10px black; } |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
23 #banner a { color: #00B140; } |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
24 #main { text-align: left; |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
25 margin: 0 auto; |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
26 min-width: 32em; |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
27 max-width: 64em; } |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
28 #menu { float: right; |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
29 width: 11em; |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
30 padding: 0 .5em 1em .5em; |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
31 border-left: 2px solid #DDD; } |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
32 #content { margin-right: 13.5em; |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
33 padding: 0 .2em 0 1.5em; } |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
34 h1 { display: block; |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
35 font-size: 3em; |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
36 text-align: left; |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
37 margin: 0; |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
38 margin-bottom: .5em; } |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
39 h1 img { width: 100%; } |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
40 h2 { text-align: center; } |
112
d3e240f7157c
Inside the "directive" prologue block, addressed the vertical
Ruslan Ermilov <ru@nginx.com>
parents:
93
diff
changeset
|
41 p { text-align: justify; } |
129
523a80fc32b4
Fixed a fallout from switching to standard HTML.
Ruslan Ermilov <ru@nginx.com>
parents:
126
diff
changeset
|
42 table.news p { margin-top: 0; } |
167
921ab40baff4
Fixed vertical alignment of the news table cells.
Ruslan Ermilov <ru@nginx.com>
parents:
134
diff
changeset
|
43 table.news td { vertical-align: baseline; } |
134
0991bf45cbb8
Added "white-space: nowrap" to prevent date wrapping.
Maxim Dounin <mdounin@mdounin.ru>
parents:
129
diff
changeset
|
44 table.news .date { text-align: right; |
0991bf45cbb8
Added "white-space: nowrap" to prevent date wrapping.
Maxim Dounin <mdounin@mdounin.ru>
parents:
129
diff
changeset
|
45 padding-right: 0.5em; |
0991bf45cbb8
Added "white-space: nowrap" to prevent date wrapping.
Maxim Dounin <mdounin@mdounin.ru>
parents:
129
diff
changeset
|
46 white-space: nowrap; } |
778
cd73f6e9aaf3
Donation page refactored: multi-column layout, donated sums ranges.
Maxim Konovalov <maxim@nginx.com>
parents:
693
diff
changeset
|
47 table.donors td { vertical-align: baseline; } |
cd73f6e9aaf3
Donation page refactored: multi-column layout, donated sums ranges.
Maxim Konovalov <maxim@nginx.com>
parents:
693
diff
changeset
|
48 table.donors li { text-align: left; } |
1308
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
49 div.directive { background: #F2F2F2; |
1311
b6fd4402ab2e
Design: tuned line spacing.
Valentin Bartenev <vbart@nginx.com>
parents:
1310
diff
changeset
|
50 line-height: 1em; |
1219
69445572ea13
Design: added left padding for main text layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1218
diff
changeset
|
51 margin: 1em 0 1em -1em; |
1308
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
52 padding: .7em .7em .7em 1em; |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1222
diff
changeset
|
53 border-top: 2px solid #DDD; } |
1222
5188cb06bb13
Design: better looking directive block.
Valentin Bartenev <vbart@nginx.com>
parents:
1221
diff
changeset
|
54 div.directive th { padding-left: 0; |
5188cb06bb13
Design: better looking directive block.
Valentin Bartenev <vbart@nginx.com>
parents:
1221
diff
changeset
|
55 padding-right: .5em; |
5188cb06bb13
Design: better looking directive block.
Valentin Bartenev <vbart@nginx.com>
parents:
1221
diff
changeset
|
56 vertical-align: baseline; |
5188cb06bb13
Design: better looking directive block.
Valentin Bartenev <vbart@nginx.com>
parents:
1221
diff
changeset
|
57 text-align: left; |
5188cb06bb13
Design: better looking directive block.
Valentin Bartenev <vbart@nginx.com>
parents:
1221
diff
changeset
|
58 font-weight: normal; } |
112
d3e240f7157c
Inside the "directive" prologue block, addressed the vertical
Ruslan Ermilov <ru@nginx.com>
parents:
93
diff
changeset
|
59 div.directive td { vertical-align: baseline; } |
d3e240f7157c
Inside the "directive" prologue block, addressed the vertical
Ruslan Ermilov <ru@nginx.com>
parents:
93
diff
changeset
|
60 div.directive pre { padding: 0; |
d3e240f7157c
Inside the "directive" prologue block, addressed the vertical
Ruslan Ermilov <ru@nginx.com>
parents:
93
diff
changeset
|
61 margin: 0; } |
1222
5188cb06bb13
Design: better looking directive block.
Valentin Bartenev <vbart@nginx.com>
parents:
1221
diff
changeset
|
62 div.directive p { margin: .5em 0 0 .1em; |
5188cb06bb13
Design: better looking directive block.
Valentin Bartenev <vbart@nginx.com>
parents:
1221
diff
changeset
|
63 font-size: .8em; } |
693
095d1972dad9
Added ability to switch languages without context change.
Vladimir Homutov <vl@nginx.com>
parents:
692
diff
changeset
|
64 a.notrans { color: gray; |
095d1972dad9
Added ability to switch languages without context change.
Vladimir Homutov <vl@nginx.com>
parents:
692
diff
changeset
|
65 text-decoration:none; } |
112
d3e240f7157c
Inside the "directive" prologue block, addressed the vertical
Ruslan Ermilov <ru@nginx.com>
parents:
93
diff
changeset
|
66 span.initial { font-size: 200%; |
d3e240f7157c
Inside the "directive" prologue block, addressed the vertical
Ruslan Ermilov <ru@nginx.com>
parents:
93
diff
changeset
|
67 float: left; |
d3e240f7157c
Inside the "directive" prologue block, addressed the vertical
Ruslan Ermilov <ru@nginx.com>
parents:
93
diff
changeset
|
68 padding-right: 10pt;} |
1220
cf956e070d9b
Design: improved multilevel text alignment.
Valentin Bartenev <vbart@nginx.com>
parents:
1219
diff
changeset
|
69 ul, ol { margin: .5em 0 1em 1em; |
cf956e070d9b
Design: improved multilevel text alignment.
Valentin Bartenev <vbart@nginx.com>
parents:
1219
diff
changeset
|
70 padding: 0 .5em; } |
cf956e070d9b
Design: improved multilevel text alignment.
Valentin Bartenev <vbart@nginx.com>
parents:
1219
diff
changeset
|
71 ol { list-style-position: inside; } |
473
cac48e2d0d9b
Added the "compact" attribute to the "list" element.
Ruslan Ermilov <ru@nginx.com>
parents:
354
diff
changeset
|
72 li { text-align: justify; |
1220
cf956e070d9b
Design: improved multilevel text alignment.
Valentin Bartenev <vbart@nginx.com>
parents:
1219
diff
changeset
|
73 padding: .5em 0 0 1px; } |
473
cac48e2d0d9b
Added the "compact" attribute to the "list" element.
Ruslan Ermilov <ru@nginx.com>
parents:
354
diff
changeset
|
74 .compact li { padding-top: 0; } |
1220
cf956e070d9b
Design: improved multilevel text alignment.
Valentin Bartenev <vbart@nginx.com>
parents:
1219
diff
changeset
|
75 dl { margin: .5em 0 1em 0; } |
cf956e070d9b
Design: improved multilevel text alignment.
Valentin Bartenev <vbart@nginx.com>
parents:
1219
diff
changeset
|
76 dt { margin: .5em 0; } |
cf956e070d9b
Design: improved multilevel text alignment.
Valentin Bartenev <vbart@nginx.com>
parents:
1219
diff
changeset
|
77 .compact dt { margin-bottom: .2em; } |
cf956e070d9b
Design: improved multilevel text alignment.
Valentin Bartenev <vbart@nginx.com>
parents:
1219
diff
changeset
|
78 dd { margin-left: 1.5em; |
cf956e070d9b
Design: improved multilevel text alignment.
Valentin Bartenev <vbart@nginx.com>
parents:
1219
diff
changeset
|
79 padding-left: 1px; |
cf956e070d9b
Design: improved multilevel text alignment.
Valentin Bartenev <vbart@nginx.com>
parents:
1219
diff
changeset
|
80 text-align: justify; } |
1221
80125318f42e
Design: lighter background of blocks.
Valentin Bartenev <vbart@nginx.com>
parents:
1220
diff
changeset
|
81 td.list { background: #F2F2F2; } |
1220
cf956e070d9b
Design: improved multilevel text alignment.
Valentin Bartenev <vbart@nginx.com>
parents:
1219
diff
changeset
|
82 blockquote { margin: 1em 0 1em 1em; |
1216
053c7860f0b6
Design: equalize padding and margin for all blockquotes.
Valentin Bartenev <vbart@nginx.com>
parents:
1215
diff
changeset
|
83 padding: .5em; } |
1220
cf956e070d9b
Design: improved multilevel text alignment.
Valentin Bartenev <vbart@nginx.com>
parents:
1219
diff
changeset
|
84 li blockquote, dd blockquote |
cf956e070d9b
Design: improved multilevel text alignment.
Valentin Bartenev <vbart@nginx.com>
parents:
1219
diff
changeset
|
85 { margin: .7em 0; } |
1218
28ccc8a37e7d
Design: new style for notes.
Valentin Bartenev <vbart@nginx.com>
parents:
1217
diff
changeset
|
86 blockquote.note { border: 1px dotted #999; |
1311
b6fd4402ab2e
Design: tuned line spacing.
Valentin Bartenev <vbart@nginx.com>
parents:
1310
diff
changeset
|
87 line-height: 1.2em; |
1218
28ccc8a37e7d
Design: new style for notes.
Valentin Bartenev <vbart@nginx.com>
parents:
1217
diff
changeset
|
88 text-align: justify; } |
354
4e3b681cae20
Unified the padding and margins of examples and notes blocks.
Ruslan Ermilov <ru@nginx.com>
parents:
328
diff
changeset
|
89 blockquote.example { |
1311
b6fd4402ab2e
Design: tuned line spacing.
Valentin Bartenev <vbart@nginx.com>
parents:
1310
diff
changeset
|
90 line-height: 1em; |
1217
9f05352eb65a
Design: added left border for example blocks.
Valentin Bartenev <vbart@nginx.com>
parents:
1216
diff
changeset
|
91 border-left: 1px solid #BBB; } |
354
4e3b681cae20
Unified the padding and margins of examples and notes blocks.
Ruslan Ermilov <ru@nginx.com>
parents:
328
diff
changeset
|
92 blockquote.example pre { |
4e3b681cae20
Unified the padding and margins of examples and notes blocks.
Ruslan Ermilov <ru@nginx.com>
parents:
328
diff
changeset
|
93 padding: 0; |
4e3b681cae20
Unified the padding and margins of examples and notes blocks.
Ruslan Ermilov <ru@nginx.com>
parents:
328
diff
changeset
|
94 margin: 0; } |
126
d4133c439eeb
'registered' element added
Sergey Budnevitch <sb@waeme.net>
parents:
112
diff
changeset
|
95 sup { font-size: 50%; } |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
96 ') } |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
97 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
98 X:if "$lang = 'he'" { |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
99 !{ normalize-space(' |
112
d3e240f7157c
Inside the "directive" prologue block, addressed the vertical
Ruslan Ermilov <ru@nginx.com>
parents:
93
diff
changeset
|
100 pre { text-align: left; |
d3e240f7157c
Inside the "directive" prologue block, addressed the vertical
Ruslan Ermilov <ru@nginx.com>
parents:
93
diff
changeset
|
101 direction: ltr; } |
d3e240f7157c
Inside the "directive" prologue block, addressed the vertical
Ruslan Ermilov <ru@nginx.com>
parents:
93
diff
changeset
|
102 code { direction: ltr; |
d3e240f7157c
Inside the "directive" prologue block, addressed the vertical
Ruslan Ermilov <ru@nginx.com>
parents:
93
diff
changeset
|
103 unicode-bidi: embed; } |
d3e240f7157c
Inside the "directive" prologue block, addressed the vertical
Ruslan Ermilov <ru@nginx.com>
parents:
93
diff
changeset
|
104 .ltr { direction: ltr; |
d3e240f7157c
Inside the "directive" prologue block, addressed the vertical
Ruslan Ermilov <ru@nginx.com>
parents:
93
diff
changeset
|
105 unicode-bidi: embed; } |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
106 ') } |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
107 } |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
108 |
802
8af7fe0794b0
Improved appearance of Chinese documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
778
diff
changeset
|
109 X:if "$lang = 'cn'" { |
8af7fe0794b0
Improved appearance of Chinese documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
778
diff
changeset
|
110 !{ normalize-space(' |
8af7fe0794b0
Improved appearance of Chinese documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
778
diff
changeset
|
111 p { text-align: left; } |
8af7fe0794b0
Improved appearance of Chinese documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
778
diff
changeset
|
112 li { text-align: left; } |
8af7fe0794b0
Improved appearance of Chinese documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
778
diff
changeset
|
113 dd { text-align: left; } |
8af7fe0794b0
Improved appearance of Chinese documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
778
diff
changeset
|
114 blockquote.note { text-align: left; } |
8af7fe0794b0
Improved appearance of Chinese documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
778
diff
changeset
|
115 ') } |
8af7fe0794b0
Improved appearance of Chinese documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
778
diff
changeset
|
116 } |
8af7fe0794b0
Improved appearance of Chinese documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
778
diff
changeset
|
117 |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
118 </style> |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
119 } |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
120 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
121 } |