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