]> git.plutz.net Git - shellwiki/blob - themes/default.css
css: clear gallery from floating elements
[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 /* === Editor === */
113
114 [id$="/[edit]"] main .pagemenu {
115   margin-bottom: 1em;
116 }
117
118 .tab[name=edithelp] ~ .tab.editor textarea,
119 .tab[name=edithelp] ~ .tab.syntax,
120 .tab[name=edithelp] ~ .tab.attach,
121 .tab[name=edithelp] ~ .tab.transl {
122   background-color: #FFF;
123   min-height: 20em; min-height: 50vh;
124 }
125
126 .tab[name=edithelp] ~ .tab.editor textarea {
127   width: 100%;
128   font-family: monospace;
129   font-size: inherit;
130 }
131
132 .tab[name=edithelp] ~ .tab.attach {
133   padding-top: 1em;
134   padding-left: 7em;
135 }
136 .tab[name=edithelp] ~ .tab.attach .aimg img {
137   float: left;
138   max-height: 4em;
139   margin-left: -6em;
140 }
141
142 .tab[name=edithelp] ~ .tab.transl {
143   font-family: monospace;
144   white-space: pre;
145 }
146
147 .tab[name=edithelp]#editor:checked ~ .tab.editor,
148 .tab[name=edithelp]#syntax:checked ~ .tab.syntax,
149 .tab[name=edithelp]#attach:checked ~ .tab.attach,
150 .tab[name=edithelp]#transl:checked ~ .tab.transl {
151   display: block;
152 }
153
154
155 /* === Attachments === */
156
157 .attachment.list button[name=delete] {
158   font-size: .75em;
159   line-height: 1.25em;
160   margin-right: 1.25em;
161 }
162 .attachment.list .size,
163 .attachment.list .date {
164   font-size: .875em;
165   top: -.25em;
166 }
167
168 .attachment.list .name:after {
169   white-space: pre-line;
170   content: "\0a";
171 }
172 .attachment.list .size {
173   margin-right: 1em;
174 }
175
176 .revisions li { margin: 1em 0; }
177 .revisions li span.hash,
178 .revisions li span.date {
179   margin-right: 1em;
180 }
181
182 .revisions .diff span {
183   font-family: monospace;
184   display: block;
185   white-space: pre;
186   line-height: 1.375em;
187 }
188 .revisions .diff span.linenum { color: #D60; }
189 .revisions .diff span.linedel { color: #A00; }
190 .revisions .diff span.lineadd { color: #0A0; }
191 .revisions .diff span.linenote { color: #AAA; }
192
193
194 [id$="/[attachment]"] input[type=radio].tab ~ div.tab {
195   display: block;
196   padding-top: 1em;
197 }
198 [id$="/[attachment]"] input[type=radio].tab ~ div.tab ul.attachment.list {
199   list-style: none;
200   margin-left: 0;
201 }
202
203 .tab ul li input[name=select],
204 .tab ul li label.name,
205 .tab ul li a.name,
206 .tab ul li input.name {
207   display: none;
208 }
209
210 [id$="/[attachment]"] input[type=radio].tab#tview:checked ~ div.tab ul li a.name,
211 [id$="/[attachment]"] input[type=radio].tab#tdel:checked  ~ div.tab ul li input[name=select],
212 [id$="/[attachment]"] input[type=radio].tab#tdel:checked  ~ div.tab ul li label.name,
213 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab ul li input[name=select],
214 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab ul li label.name {
215   display: inline;
216 }
217 [id$="/[attachment]"] input[type=radio].tab#tren:checked ~ .tab ul li input.name {
218   display: block;
219 }
220
221 [id$="/[attachment]"] label[for=moveto], [id$="/[attachment]"] input#moveto,
222 [id$="/[attachment]"] button[name=action] { display: none; }
223
224 [id$="/[attachment]"] .upload button[name=action] { display: inline-block; }
225 [id$="/[attachment]"] input[type=radio].tab#tdel:checked  ~ div.tab button[name=action][value=delete],
226 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab label[for=moveto],
227 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab input#moveto,
228 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab button[name=action][value=move],
229 [id$="/[attachment]"] input[type=radio].tab#tren:checked  ~ div.tab button[name=action][value=rename] {
230   display: inline;
231 }
232
233
234 /* === Macros === */
235
236 .macro.toc {
237   display: inline-block;
238   list-style-position: inside;
239   margin-left: 0;
240   background-color: #DDD;
241   background-color: rgba(0, 0, 0, .125);
242   padding: .75em 1em;
243   border: 1pt solid;
244   border-radius: 2pt;
245 }
246 .macro.toc li.h2 { margin-left: 1.25em; }
247 .macro.toc li.h3 { margin-left: 2.5em; }
248 .macro.toc li.h4 { margin-left: 3.75em; }
249 .macro.toc li.h5 { margin-left: 5em; }
250 .macro.toc li.h6 { margin-left: 6.25em; }
251
252
253 .macro.gallery {
254   text-align: center;
255   margin: 2em 0;
256   padding: .5em .125em;
257   background-color: #444;
258   clear: both;
259 }
260 .macro.gallery img {
261   max-height: 9em;
262   margin: 0 .25em;
263 }
264
265
266 .macro.changes td .date {
267   display: block;
268   font-size: .75em;
269 }
270 .macro.changes td.outdated,
271 .macro.changes td.current,
272 .macro.changes td.missing {
273   text-align: center;
274 }
275 .macro.changes th { background-color: #EEF; }
276 .macro.changes td { background-color: #DFF; }
277 .macro.changes td.outdated { background-color: #FFD; }
278 .macro.changes td.current  { background-color: #DFD; }
279 .macro.changes td.missing  { background-color: #FDD; }