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