]> git.plutz.net Git - shellwiki/blob - themes/default.css
Merge commit 'd03c336720e5cc6d24cce791e161b16371b9bd4d'
[shellwiki] / themes / default.css
1 html { min-height: 100%; }
2
3 body {
4   position: absolute;
5   width: 100%;
6   min-height: 100%;
7   padding-bottom: 6em;
8   background-color: #EEE;
9   font-size: 12pt;
10 }
11
12 header, footer {
13   background-color: #FFF;
14   box-shadow: 0 0 .75em;
15   width: 100%;
16   z-index: 1;
17 }
18
19 footer {
20   padding-top: .5em;
21   position: absolute;
22   bottom: 0;
23 }
24
25 header > :last-child,
26 main > :last-child {
27   margin-bottom: 0;
28 }
29
30 header h1,
31 header h2,
32 header .menu,
33 footer .menu {
34   display: inline-block;
35 }
36
37 header .menu,
38 footer .menu { list-style: none; }
39
40 header .menu > ul > li,
41 header .menu > ol > li,
42 footer .menu > ul > li,
43 footer .menu > ol > li {
44   display: inline-block;
45   margin-right: .5em;
46   vertical-align: top;
47 }
48
49 header .menu.dropdown li > ul,
50 header .menu.dropdown li > ol {
51   display: none;
52   position: absolute;
53   background-color: #FFF;
54   margin: 0;
55   padding: .25em .5em;
56   padding-left: 1.5em;
57   box-shadow: 0 0 .75em;
58 }
59 header .menu.dropdown li:hover > ul,
60 header .menu.dropdown li:hover > ol {
61   display: table;
62 }
63
64 main .pagemenu {
65   list-style: none;
66   background-color: #666;
67   margin: 0;
68   box-shadow: 0 0 .5em;
69   padding: .25em 2em;
70 }
71 main .pagemenu li {
72   display: inline-block;
73   margin-right: 1em;
74 }
75 main .pagemenu li a { color: #FFF; }
76
77 main article,
78 main > form#renamepage, main > form#movepage,
79 main > form#deletepage, 
80 [id$="/[attachment]"] main > form {
81   margin: 1em;
82   padding: .125em 1em 1em 1em;
83   box-shadow: .25em .25em .75em;
84   background-color: #FFF;
85 }
86
87 [id$="/[revision]"] main .revisions,
88 [id$="/[attachment]"] main > .attachment.list {
89   margin: 1em;
90   padding: 1em 2em;
91 }
92 [id$="/[revision]"] main .revisions:before,
93 [id$="/[attachment]"] main > .attachment.list:before {
94   content: '';
95   position: absolute;
96   top: 0; bottom: 0; left: 0; right: 0;
97   background-color: #FFF;
98   box-shadow: .25em .25em .75em;
99 }
100
101 main code {
102   padding: .125em .25em;
103   background-color: #CCC;
104 }
105 main pre {
106   padding: .5em .5em;
107   background-color: #CCC;
108   max-width: 100%;
109   overflow-x: auto;
110 }
111
112 li.task > input[type=checkbox][disabled],
113 li.task > p > input[type=checkbox][disabled] {
114   display: none;
115 }
116 li.task > p:first-child { display: inline-block;}
117
118 -li.task:before { font-size: 1.125em; }
119 li.task.pending:before  { content: '\274f  '; color: #222; }
120 li.task.partial:before  { content: '\25d4  '; color: #880; }
121 li.task.negative:before { content: '\2718  '; color: #800; }
122 li.task.done:before     { content: '\2714  '; color: #080; }
123 li.task.unsure:before   { content: '?  '    ; color: #880; font-weight: bold; padding-left: 2pt; }
124
125 /* Alternative Check Symbols, all from "geometric shapes" block */ /*
126 -li.task.pending:before  { content: '\25a1  '; color: #222; }
127 -li.task.partial:before  { content: '\25d4  '; color: #880; }
128 -li.task.negative:before { content: '\25a8  '; color: #800; }
129 -li.task.done:before     { content: '\25a3  '; color: #080; }
130 */
131
132
133 /* === Editor === */
134
135 [id$="/[edit]"] main .pagemenu {
136   margin-bottom: 1em;
137 }
138
139 .tab[name=edithelp] ~ .tab.editor textarea,
140 .tab[name=edithelp] ~ .tab.syntax,
141 .tab[name=edithelp] ~ .tab.attach,
142 .tab[name=edithelp] ~ .tab.transl {
143   background-color: #FFF;
144   min-height: 20em; min-height: 50vh;
145 }
146
147 .tab[name=edithelp] ~ .tab.editor textarea {
148   width: 100%;
149   font-family: monospace;
150   font-size: inherit;
151 }
152
153 .tab[name=edithelp] ~ .tab.attach {
154   padding-top: 1em;
155   padding-left: 7em;
156 }
157 .tab[name=edithelp] ~ .tab.attach .aimg img {
158   float: left;
159   max-height: 4em;
160   margin-left: -6em;
161 }
162
163 .tab[name=edithelp] ~ .tab.transl {
164   font-family: monospace;
165   white-space: pre;
166 }
167
168 .tab[name=edithelp]#editor:checked ~ .tab.editor,
169 .tab[name=edithelp]#syntax:checked ~ .tab.syntax,
170 .tab[name=edithelp]#attach:checked ~ .tab.attach,
171 .tab[name=edithelp]#transl:checked ~ .tab.transl {
172   display: block;
173 }
174
175
176 /* === Attachments === */
177
178 .attachment.list button[name=delete] {
179   font-size: .75em;
180   line-height: 1.25em;
181   margin-right: 1.25em;
182 }
183 .attachment.list .size,
184 .attachment.list .date {
185   font-size: .875em;
186   top: -.25em;
187 }
188
189 .attachment.list .name:after {
190   white-space: pre-line;
191   content: "\0a";
192 }
193 .attachment.list .size {
194   margin-right: 1em;
195 }
196
197 .revisions li { margin: 1em 0; }
198 .revisions li span.hash,
199 .revisions li span.date {
200   margin-right: 1em;
201 }
202
203 .revisions .diff span {
204   font-family: monospace;
205   display: block;
206   white-space: pre;
207   line-height: 1.375em;
208 }
209 .revisions .diff span.linenum { color: #D60; }
210 .revisions .diff span.linedel { color: #A00; }
211 .revisions .diff span.lineadd { color: #0A0; }
212 .revisions .diff span.linenote { color: #AAA; }
213
214
215 [id$="/[attachment]"] input[type=radio].tab ~ div.tab {
216   display: block;
217   padding-top: 1em;
218 }
219 [id$="/[attachment]"] input[type=radio].tab ~ div.tab ul.attachment.list {
220   list-style: none;
221   margin-left: 0;
222 }
223
224 .tab ul li input[name=select],
225 .tab ul li label.name,
226 .tab ul li a.name,
227 .tab ul li input.name {
228   display: none;
229 }
230
231 [id$="/[attachment]"] input[type=radio].tab#tview:checked ~ div.tab ul li a.name,
232 [id$="/[attachment]"] input[type=radio].tab#tdel:checked  ~ div.tab ul li input[name=select],
233 [id$="/[attachment]"] input[type=radio].tab#tdel:checked  ~ div.tab ul li label.name,
234 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab ul li input[name=select],
235 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab ul li label.name {
236   display: inline;
237 }
238 [id$="/[attachment]"] input[type=radio].tab#tren:checked ~ .tab ul li input.name {
239   display: block;
240 }
241
242 [id$="/[attachment]"] label[for=moveto], [id$="/[attachment]"] input#moveto,
243 [id$="/[attachment]"] button[name=action] { display: none; }
244
245 [id$="/[attachment]"] .upload button[name=action] { display: inline-block; }
246 [id$="/[attachment]"] input[type=radio].tab#tdel:checked  ~ div.tab button[name=action][value=delete],
247 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab label[for=moveto],
248 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab input#moveto,
249 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab button[name=action][value=move],
250 [id$="/[attachment]"] input[type=radio].tab#tren:checked  ~ div.tab button[name=action][value=rename] {
251   display: inline;
252 }
253
254
255 /* === Macros === */
256
257 .macro.toc {
258   display: inline-block;
259   list-style-position: inside;
260   margin-left: 0;
261   background-color: #DDD;
262   background-color: rgba(0, 0, 0, .125);
263   padding: .75em 1em;
264   border: 1pt solid;
265   border-radius: 2pt;
266 }
267 .macro.toc li.h2 { margin-left: 1.25em; }
268 .macro.toc li.h3 { margin-left: 2.5em; }
269 .macro.toc li.h4 { margin-left: 3.75em; }
270 .macro.toc li.h5 { margin-left: 5em; }
271 .macro.toc li.h6 { margin-left: 6.25em; }
272
273
274 .macro.gallery {
275   text-align: center;
276   margin: 2em 0;
277   padding: .5em .125em;
278   background-color: #444;
279   clear: both;
280 }
281 .macro.gallery img {
282   max-height: 9em;
283   margin: 0 .25em;
284 }
285
286
287 .macro.changes td .date {
288   display: block;
289   font-size: .75em;
290 }
291 .macro.changes td.outdated,
292 .macro.changes td.current,
293 .macro.changes td.missing {
294   text-align: center;
295 }
296 .macro.changes th { background-color: #EEF; }
297 .macro.changes td { background-color: #DFF; }
298 .macro.changes td.outdated { background-color: #FFD; }
299 .macro.changes td.current  { background-color: #DFD; }
300 .macro.changes td.missing  { background-color: #FDD; }