s4

view examples/common/default/default.css @ 743:af0cb6f59c8e

s/annex/world/
author HIROSE Yuuji <yuuji@gentei.org>
date Sat, 06 Jun 2020 11:43:42 +0900
parents 3d2502af9c07
children 567980314463
line source
1 /*
2 * Default CSS definitions
3 */
4 body {background: #eff; margin: 2px; padding: 6px;}
5 h2, h3, hr {clear: both;}
6 *.warn {color: red;}
7 div.topmenu {
8 margin: 0; padding: 0; width: 100%; height: 2em;
9 }
10 div.topmenu ul {width: 100%; position: fixed; z-index: 5; margin: 0;
11 margin: 0 auto;}
12 div.topmenu ul li {
13 float: left; width: 18%;
14 background: rgba(68,255,102,0.8); border: #3e5 2px groove; margin: 0;
15 text-align: center; font-size: 80%; list-style: none;
16 box-shadow: #242 2px 3px 5px;
17 text-shadow: #fff 0px 0px 10px;
18 }
19 div.topmenu ul li:hover {background: #8fa;}
20 div.topmenu ul a {text-decoration: none;}
22 ldiv.topmenu + h1 {clear: both; margin-top: 3em;}
23 pre.list {
24 overflow: auto; width: 96%; height: 40%; background: white;
25 border: 2px inset;
26 }
27 p.copyright {
28 border-top: 2px inset #555; text-align: right; clear: both;
29 font-size: 50%;
30 }
31 p.copyright a {text-decoration: none;}
33 td {padding-left: 0.5ex; padding-right: 0.5ex;}
34 table.td2r td:nth-child(2) {text-align: right;}
35 table.td3r td:nth-child(3) {text-align: right;}
36 table.td3rr td:nth-child(n+3) {text-align: right;}
37 table.td3evw th:nth-child(2n+4) {background: white;}
38 table.thl th {text-align: left;}
39 span#reverse {background: white; padding: 0 0 0 0.4ex; border: outset;}
41 table.form, table.b, table.b tr, table.b td, table.b th {
42 border: 1px solid black; border-collapse: collapse;
43 }
44 table.b, table.bloghead {
45 border-radius: 1ex; box-shadow: rgb(250,222,222) 1px 2px 3px;
46 }
47 td.warn {background: #fcc;}
48 input[type="checkbox"][name="rm"]:checked ~ table {background: red;}
49 input[type="checkbox"][name="rm"] ~ span {display: none;}
50 input[type="checkbox"][name="rm"]:checked ~ span {display: inline;}
52 input[type="radio"][value="replace"] + input.replace[type="file"] {
53 visibility: hidden;}
54 input[type="radio"][value="replace"]:checked + input.replace[type="file"] {
55 visibility: visible;
56 }
57 label.admin span {border-bottom: 1px solid blue;}
58 label.admin:after {content: "(ADMIN)"; color: red; text-decoration: none;}
60 /* keep/edit/rm action selector */
61 input.action ~ input:not(.action), input.action ~ textarea {
62 display: none;
63 }
64 input.action[value="edit"]:checked ~ input {display: inline;}
65 input.action[value="edit"]:checked ~ textarea {display: block;}
66 input.action[value="edit"]:checked ~ span {display: none;}
67 input.action[value="rm"]:checked ~ span {background: red;}
68 label.confirm {display: none;}
69 input.action[value="rm"]:checked ~ label.confirm {
70 display: inline;
71 }
72 input.hidesub ~ input[type="submit"] {visibility: hidden;}
73 input.hidesub:focus ~ input[type="submit"],
74 p:active input[type="submit"]
75 {visibility: visible;}
76 input[type=text]:focus {background: #ffa;}
78 form.replyblog {xxx-margin-bottom: 40%;}
79 div.blogcomment {
80 position: fixed; bottom: 0; left: 0;
81 z-index: 2; background-color: rgba(250,222,222,0.6);
82 }
83 /* div.blogcomment textarea:focus {background: yellow;
84 position: fixed; top: 0; bottom: auto; } Need to consider narrow display */
85 div.blogcomment * {opacity: 1.0;}
86 table.bloghead, .bloghead tr, .bloghead td {
87 border: 1px solid black; border-collapse: collapse;
88 min-width: 30em;
89 }
90 table.bloghead tr.preface {
91 font-size: 150%; background: yellow; /* text-align: center; */
92 white-space: pre-wrap;
93 }
94 table.bloghead tr.frozen {
95 background: #ccf; border: blue thick solid; color: navy;
96 }
98 table.bloghead {margin-bottom: 1em;}
100 table.blog_replies, .blog_replies tr, .blog_replies td {
101 border: 1px solid #999; border-collapse: collapse;
102 white-space: pre-wrap;
103 }
104 table.bloghead tr.preface td ul,
105 table.blog_replies video,
106 table.blog_replies iframe,
107 table.blog_replies ul, .blog_replies tr ul, .blog_replies td ul {
108 text-align: left; white-space: normal; margin: 1ex 0;
109 }
110 table.blog_replies p.proficon {
111 float: right; margin: 0 1ex 0 0;
112 }
113 table.blog_replies+p.update_link {margin-top: 0; margin-bottom: 14em;}
114 .blog_replies td.repl {
115 vertical-align: top; min-width: 30em; height: 3em;
116 max-width: 50em;
117 }
118 .blog_replies td.repl img {max-width: 30%;}
119 td.repl h2, td.repl h3, td.repl h4 {
120 display: inline; /* Because td.repl's white space is pre-wrap */
121 /* text-shadow: blue 0px 1px; */
122 }
123 td.repl hr {display: inline-block; width: 95%; color: #cde}
124 td.repl em {color: #a00; text-decoration: underline; padding-right: 0.3ex;}
125 td.repl strong {color: white; background: #00a; padding: 0 0.5ex;}
126 td.repl h2:before {content: "■"; color: #a22;}
127 td.repl h3:before {content: "◆"; color: #a22;}
128 td.repl h4:before {content: "○";}
129 .blog_replies td.repatt {min-width: 12em;}
130 table.blog_replies iframe {
131 width: 400px; height: 300px; max-width: 50em; max-height: 20em;
132 padding: 0; border: 0;
133 }
134 table.blog_replies td.new { /* New Article from last visit */
135 background: white
136 }
137 table.mini, table.mini tr, table.mini th, table.mini td {
138 margin: 0; border-width: 0;
139 border-collapse: collapse;
140 vertical-align: top; width: auto; height: 1em;
141 }
142 table.mini th {background: #cee;}
143 table.mini tr {border-bottom: solid 1px #bcc;}
144 table.mini th, table.mini td {text-align: justify;}
145 table.mini td, table.mini th {padding: 1px 0.5ex; min-width: 1em;}
146 table.mini {margin-left: 1em; border-left: 2px solid #686;}
148 /* "visibility: collapse" not working on chromium browser */
149 div.noprofimg tr.profimg {visibility: collapse; display: none;}
150 div.noprofimg tr:hover + tr.profimg, div.noprofimg tr:active + tr.profimg,
151 div.noprofimg tr.profimg:hover, div.noprofimg tr.profimg:active {
152 visibility: visible; display: table-row;}
154 /* Used for overlapping image */
155 img.overlap {position: absolute; top: 40px; left: 50px; z-index: 2;}
157 /* Used in user's home page */
158 p.profimg {float: left; max-width: 50%; max-height: 400px;
159 overflow: hidden; margin: 0 1em 1ex;
160 padding: 0; border: white 1px solid; box-shadow: 2px 3px 4px
161 }
162 p.profimg img {max-width: 400px;}
163 div.home+* {clear: both;}
164 body.grouphome p.groupimg {
165 float: right; margin: 0 1em 1ex;
166 overflow: hidden;}
167 body.grouphome p.groupimg img {
168 max-width: 380px; max-height: 380px;}
170 div.fold {margin-top: 1em; border-top: 1px solid black; padding-top: 1em;}
171 div.noborder {border: 0px; margin: 0;}
172 div.fold > div {
173 xxdisplay: none; max-height: 80%; overflow: auto;
174 height: 0px; opacity: 0; padding: 0 1ex;
175 }
176 div.fold input[type="checkbox"]:checked ~ div,
177 div.fold input[type="radio"]:checked ~ div {
178 display: block; background: #fadede;
179 height: auto; opacity: 1.0; transition: 1s;
180 }
181 input.fold + label + *.folded {opacity: 0; display: none; hight: 0;}
182 input[type="checkbox"].fold:checked + label + *.folded {
183 opacity: 1.0; transition: 2s;
184 }
185 input[type="checkbox"].fold:checked + label + div.folded {
186 display: block; hight: auto; transition: 2s;
187 }
189 /* fold2!! */
190 div.foldtabs {
191 position: relative; height: 5em; margin-top: 1em;
192 border-top: 1px solid black; padding-top: 1em;
193 }
194 div.foldtabs > div {
195 position: absolute; top: 2.5em; opacity: 0.0; background: pink;
196 margin: 2px; overflow: auto;
197 }
198 div.foldtabs input[type="radio"] {display: none;}
199 div.foldtabs input[type="radio"]:checked + label + div {
200 display: block; opacity: 1.0; transition: 0.2s; width: 100%;
201 margin: 0; z-index: 2;
202 }
203 div.foldtabs > label {
204 border: 1px outset #ddd; background: #ddd; xbackground: pink;
205 border-top-left-radius: 0.8em; border-top-right-radius: 0.8em;
206 margin: 0;
207 padding: 0.2ex 0.5em; height: 3em;
208 }
209 div.foldtabs > input:active + label {background: white;}
210 div.foldtabs input:checked + label {
211 background: pink; border: pink 1px solid; border-bottom-width: 6px;
212 }
213 div.foldtabs input:checked + label:last-of-type {border-width: 1px;}
214 input[type="checkbox"] + label + input[type="submit"] {display: none;}
215 input[type="checkbox"]:checked + label + input[type="submit"] {
216 display: inline;}
217 div.foldtabs p {margin: 0;}
219 /* ToDo List CheckBox inspired by https://cultureacademia.jp/webcreate/303/ */
220 input.s4-checkbox {display: none;} /* Do not show real checkbox */
221 input.s4-checkbox + label {
222 position: relative; padding-left: 0.8em; margin-right: 1em;
223 }
224 input.s4-checkbox + label:before,
225 input.s4-checkbox + label:after {
226 content: ""; display: block; /* Mimic Checkbox by absolute box */
227 position: absolute; top: 0; left: 0; margin: 0;
228 }
229 input.s4-checkbox + label:before { /* checkbox frame */
230 width: 0.8em; height: 0.8em; border: 1px solid #aaa; border-radius: 20%;
231 background: #ddd;
232 }
233 input.s4-checkbox:checked + label:before { /* checked frame bg */
234 background: pink;
235 }
236 input.s4-checkbox:checked + label { /* checked text */
237 /* text-shadow: red 1px 1px; */
238 }
239 input.s4-checkbox:checked + label:after { /* checked mark */
240 width: 0.6em; height: 0.4em; top: 0.05em; left: 0.1em;
241 border-bottom: 3px solid navy;
242 border-left: 3px solid navy;
243 transform: rotate(-40deg);
244 }
245 /* ---------------------------------------------------- */
247 div.dumptable {max-height: 15em; overflow: auto;}
248 div.dumptable tr:hover {background-color: #fee;}
249 table.dumpblogs td,
250 div.lcto td { /* LINK + CTIME + TITLE + OWNER + something... */
251 white-space: nowrap; overflow: hidden;}
252 table.dumpblogs td:nth-child(4),
253 div.lcto td:nth-child(2) {max-width: 8em;}
254 table.dumpblogs td:nth-child(5), /* team */
255 table.dumpblogs td:nth-child(6), /* title */
256 table.dumpblogs td:nth-child(7), /* heading */
257 div.lcto td:nth-child(3), /* title */
258 div.lcto td:nth-child(4) /* owner */
259 {max-width: 14em;}
261 table.dumpblogs tr.凍結 td:nth-child(n+2) {opacity: 0.5;}
262 table.dumpblogs tr.凍結 td:last-child {opacity: 1.0; color: blue;}
263 *.frozen, *.凍結 {color: blue;}
265 /*
266 table.dumpblogs td:nth-child(4) {
267 max-width: 7.6em; overflow: hidden;}
268 table.dumpblogs td:nth-child(5),
269 table.dumpblogs td:nth-child(6) {
270 max-width: 12em; overflow: hidden;}
271 table.dumpblogs td:nth-child(7) {
272 min-width: 5em; overflow: hidden;}
273 */
275 /********************* icon list *********************/
276 div.iconlist {
277 text-align: center; float: left; margin: 1ex 1em;
278 border: dotted #dfd 2px; padding: 1ex;
279 }
280 div.iconlist p {margin: 0; padding: 0;}
281 div.iconlist p.tag {background: #ffa; border-radius: 4em;}
282 div.iconlist p._temp {background: cyan;}
283 div.iconlist p._lecture {background: pink;}
284 div.iconlist p._admin {background: yellow;}
285 div.iconlist p._friend {background: fuchsia;}
286 div.iconlist p._fellows {background: #9f9;} /* light green */
287 div.iconlist p._club {background: #4bb;} /* light teal */
288 div.iconlist p._event {background: maroon; color: white;}
289 div.iconlist p._misc {background: purple; color: white;}
290 div.iconlist p._record {background: red; color: white;}
291 div.iconlist p._info {background: #eff;} /* light cyan */
292 div.iconlist p._support {background: #ffe;} /* light yellow */
293 div.iconlist p._test {background: #ffb6c1;} /* light pink */
294 input#ismembtn:checked ~ div.iconlist,
295 input#isadmbtn:checked ~ div.iconlist {display: none;}
296 input#ismembtn:checked ~ div.iconlist.Member,
297 input#isadmbtn:checked ~ div.iconlist.ADMIN,
298 input#ismembtn:checked ~ div.iconlist.ADMIN {display: block;}
299 div.xy120x120 {min-width: 120px; min-height: 140px;}
300 div.xy96x96 {min-width: 96px; min-height: 116px;}
301 div.xy96x96 img {max-width: 96px;}
302 div.xy50x50 {min-width: 50px; min-height: 70px;}
303 div.xy50x50 img {max-width: 50px;}
304 div.moderated {background: rgba(255, 215, 0, 0.3);} /* gold */
305 body.moderated {background: #fffec4;} /* #faed8a */
306 body.ismember, div.ismember {border-top: 4px red solid; margin-top: 0;}
307 div.right, div.search {clear: both; float: right;}
308 *.clear {clear: both;}
309 div.search input[type="text"] {
310 border: solid 1px #bbb; border-radius: 0.5ex; min-height: 20px;
311 margin: 1em; padding: 0 0.5ex; padding-left: 18px;
312 background: url("../../img/loupe.png") left center no-repeat
313 rgba(242,240,240,0.7);
314 position: relative;
315 }
316 div.search div.fr, *.relative {position: relative;}
317 div.search p.help, textarea + p.help {display: none;}
318 div.search input:focus + p.help,
319 textarea:focus + p.help {
320 display: block; background: white;
321 position: absolute; right: 15em; white-space: pre;
322 border: 1px solid #888; border-radius: 1em; padding: 1ex;
323 box-shadow: #555 2px 2px;
324 }
325 textarea:focus + p.help {
326 position: fixed;
327 top: 0em; left: 0;
328 }
329 form.summary input[type=submit],
330 input[type="submit"].all {background: #cfc; padding: 0.4ex 2ex;}
331 input[type="reset"] {margin-left: 4em;}
333 /*
334 * World List
335 */
336 li.casmenu div {display: none; position: relative; width: 200%;
337 min-width: 80%; margin-right: 0;}
338 li.casmenu div table {
339 background: white; position: absolute; top: 0em; border: 3px solid navy;
340 max-width: 100%;
341 }
342 li.casmenu div table td {text-align: left; padding: 0.5ex 1em;}
343 li.casmenu:hover div, li.casmenu:active div,
344 li.casmenu div:hover, li.casmenu div:active
345 {display: block;}
347 /*
348 * PR Web
349 */
350 body.pr {font-size: 200%;}
351 body.pr h1 {
352 text-align: center; width: 80%; padding: 3ex 0; margin: 0 auto;
353 background: #ffefef; border: double 5px navy;
354 }