]> git.plutz.net Git - shellwiki/blob - themes/default.css
Merge commit 'ef47a42e878d7668aadeb1e14d9cb031303e92a3'
[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: 70vh;
118   font-family: monospace;
119   font-size: inherit;
120 }
121
122 /* === Attachments === */
123
124 .attachment.list button[name=delete] {
125   font-size: .75em;
126   line-height: 1.25em;
127   margin-right: 1.25em;
128 }
129 .attachment.list .size,
130 .attachment.list .date {
131   font-size: .875em;
132   top: -.25em;
133 }
134
135 .attachment.list .name:after {
136   white-space: pre-line;
137   content: "\0a";
138 }
139 .attachment.list .size {
140   margin-right: 1em;
141 }
142
143 .revisions li { margin: 1em 0; }
144 .revisions li span.hash,
145 .revisions li span.date {
146   margin-right: 1em;
147 }
148
149 [id$="/[attachment]"] input[type=radio].tab ~ div.tab {
150   display: block;
151   padding-top: 1em;
152 }
153 [id$="/[attachment]"] input[type=radio].tab ~ div.tab ul.attachment.list {
154   list-style: none;
155   margin-left: 0;
156 }
157
158 .tab ul li input[name=select],
159 .tab ul li label.name,
160 .tab ul li a.name,
161 .tab ul li input.name {
162   display: none;
163 }
164
165 [id$="/[attachment]"] input[type=radio].tab#tview:checked ~ div.tab ul li a.name,
166 [id$="/[attachment]"] input[type=radio].tab#tdel:checked  ~ div.tab ul li input[name=select],
167 [id$="/[attachment]"] input[type=radio].tab#tdel:checked  ~ div.tab ul li label.name,
168 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab ul li input[name=select],
169 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab ul li label.name {
170   display: inline;
171 }
172 [id$="/[attachment]"] input[type=radio].tab#tren:checked ~ .tab ul li input.name {
173   display: block;
174 }
175
176 [id$="/[attachment]"] label[for=moveto], [id$="/[attachment]"] input#moveto,
177 [id$="/[attachment]"] button[name=action] { display: none; }
178
179 [id$="/[attachment]"] .upload button[name=action] { display: inline-block; }
180 [id$="/[attachment]"] input[type=radio].tab#tdel:checked  ~ div.tab button[name=action][value=delete],
181 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab label[for=moveto],
182 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab input#moveto,
183 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab button[name=action][value=move],
184 [id$="/[attachment]"] input[type=radio].tab#tren:checked  ~ div.tab button[name=action][value=rename] {
185   display: inline;
186 }
187
188
189 /* === Macros === */
190
191 .macro.toc {
192   display: inline-block;
193   list-style-position: inside;
194   margin-left: 0;
195   background-color: #DDD;
196   background-color: rgba(0, 0, 0, .125);
197   padding: .75em 1em;
198   border: 1pt solid;
199   border-radius: 2pt;
200 }
201 .macro.toc li.h2 { margin-left: 1.25em; }
202 .macro.toc li.h3 { margin-left: 2.5em; }
203 .macro.toc li.h4 { margin-left: 3.75em; }
204 .macro.toc li.h5 { margin-left: 5em; }
205 .macro.toc li.h6 { margin-left: 6.25em; }
206