]> git.plutz.net Git - shellwiki/blob - themes/default.css
modified default header and footer
[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 li,
41 footer .menu li {
42   display: inline-block;
43   margin-right: .5em;
44   vertical-align: top;
45 }
46
47 main .pagemenu {
48   list-style: none;
49   background-color: #666;
50   margin: 0;
51   box-shadow: 0 0 .5em;
52   padding: .25em 2em;
53 }
54 main .pagemenu li {
55   display: inline-block;
56   margin-right: 1em;
57 }
58 main .pagemenu li a { color: #FFF; }
59
60 main article,
61 main > form#renamepage, main > form#movepage,
62 main > form#deletepage, 
63 [id$="/[attachment]"] main > form {
64   margin: 1em;
65   padding: .125em 1em 1em 1em;
66   box-shadow: .25em .25em .75em;
67   background-color: #FFF;
68 }
69
70 [id$="/[revision]"] main .revisions,
71 [id$="/[attachment]"] main > .attachment.list {
72   margin: 1em;
73   padding: 1em 2em;
74 }
75 [id$="/[revision]"] main .revisions:before,
76 [id$="/[attachment]"] main > .attachment.list:before {
77   content: '';
78   position: absolute;
79   top: 0; bottom: 0; left: 0; right: 0;
80   background-color: #FFF;
81   box-shadow: .25em .25em .75em;
82 }
83
84 main code {
85   padding: .125em .25em;
86   background-color: #CCC;
87 }
88 main pre {
89   padding: .5em .5em;
90   background-color: #CCC;
91   max-width: 100%;
92   overflow-x: auto;
93 }
94
95 /* === Editor === */
96
97 body[id$="/[edit]"] textarea,
98 body[id$="/[newpage]"] textarea {
99   width: 100%;
100   min-height: 20em; min-height: 70vh;
101   font-family: monospace;
102   font-size: inherit;
103 }
104
105 /* === Attachments === */
106
107 .attachment.list button[name=delete] {
108   font-size: .75em;
109   line-height: 1.25em;
110   margin-right: 1.25em;
111 }
112 .attachment.list .size,
113 .attachment.list .date {
114   font-size: .875em;
115   top: -.25em;
116 }
117
118 .attachment.list .name:after {
119   white-space: pre-line;
120   content: "\0a";
121 }
122 .attachment.list .size {
123   margin-right: 1em;
124 }
125
126 .revisions li { margin: 1em 0; }
127 .revisions li span.hash,
128 .revisions li span.date {
129   margin-right: 1em;
130 }
131
132 [id$="/[attachment]"] input[type=radio].tab ~ div.tab {
133   display: block;
134   padding-top: 1em;
135 }
136 [id$="/[attachment]"] input[type=radio].tab ~ div.tab ul.attachment.list {
137   list-style: none;
138   margin-left: 0;
139 }
140
141 .tab ul li input[name=select],
142 .tab ul li label.name,
143 .tab ul li a.name,
144 .tab ul li input.name {
145   display: none;
146 }
147
148 [id$="/[attachment]"] input[type=radio].tab#tview:checked ~ div.tab ul li a.name,
149 [id$="/[attachment]"] input[type=radio].tab#tdel:checked  ~ div.tab ul li input[name=select],
150 [id$="/[attachment]"] input[type=radio].tab#tdel:checked  ~ div.tab ul li label.name,
151 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab ul li input[name=select],
152 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab ul li label.name {
153   display: inline;
154 }
155 [id$="/[attachment]"] input[type=radio].tab#tren:checked ~ .tab ul li input.name {
156   display: block;
157 }
158
159 [id$="/[attachment]"] label[for=moveto], [id$="/[attachment]"] input#moveto,
160 [id$="/[attachment]"] button[name=action] { display: none; }
161
162 [id$="/[attachment]"] .upload button[name=action] { display: inline-block; }
163 [id$="/[attachment]"] input[type=radio].tab#tdel:checked  ~ div.tab button[name=action][value=delete],
164 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab label[for=moveto],
165 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab input#moveto,
166 [id$="/[attachment]"] input[type=radio].tab#tmove:checked ~ div.tab button[name=action][value=move],
167 [id$="/[attachment]"] input[type=radio].tab#tren:checked  ~ div.tab button[name=action][value=rename] {
168   display: inline;
169 }
170
171
172 /* === Macros === */
173
174 .macro.toc {
175   display: inline-block;
176   list-style-position: inside;
177   margin-left: 0;
178   background-color: #DDD;
179   background-color: rgba(0, 0, 0, .125);
180   padding: .75em 1em;
181   border: 1pt solid;
182   border-radius: 2pt;
183 }
184 .macro.toc li.h2 { margin-left: 1.25em; }
185 .macro.toc li.h3 { margin-left: 2.5em; }
186 .macro.toc li.h4 { margin-left: 3.75em; }
187 .macro.toc li.h5 { margin-left: 5em; }
188 .macro.toc li.h6 { margin-left: 6.25em; }
189