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