s4

view examples/common/default/default.css @ 502:46a8da2740d9

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