s4

view examples/common/default/default.css @ 644:50b3ceca8bf7

Frozen heading background color made lighter
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 05 May 2020 20:08:09 +0900
parents e09a5e6c79c6
children a36a2c3b3056
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;}
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 {
93 background: #ccf; border: blue thick solid; color: navy;
94 }
96 table.bloghead {margin-bottom: 1em;}
98 table.blog_replies, .blog_replies tr, .blog_replies td {
99 border: 1px solid #999; border-collapse: collapse;
100 white-space: pre-wrap;
101 }
102 table.bloghead tr.preface td ul,
103 table.blog_replies video,
104 table.blog_replies iframe,
105 table.blog_replies ul, .blog_replies tr ul, .blog_replies td ul {
106 text-align: left; white-space: normal; margin: 1ex 0;
107 }
108 table.blog_replies p.proficon {
109 float: right; margin: 0 1ex 0 0;
110 }
111 table.blog_replies+p.update_link {margin-top: 0; margin-bottom: 14em;}
112 .blog_replies td.repl {
113 vertical-align: top; min-width: 30em; height: 3em;
114 max-width: 50em;
115 }
116 .blog_replies td.repl img {max-width: 30%;}
117 td.repl h2, td.repl h3, td.repl h4 {
118 display: inline; /* Because td.repl's white space is pre-wrap */
119 /* text-shadow: blue 0px 1px; */
120 }
121 td.repl hr {display: inline-block; width: 95%; color: #cde}
122 td.repl em {color: #a00; text-decoration: underline; padding-right: 0.3ex;}
123 td.repl strong {color: white; background: #00a; padding: 0 0.5ex;}
124 td.repl h2:before {content: "■"; color: #a22;}
125 td.repl h3:before {content: "◆"; color: #a22;}
126 td.repl h4:before {content: "○";}
127 .blog_replies td.repatt {min-width: 12em;}
128 table.blog_replies iframe {
129 width: 400px; height: 300px; max-width: 50em; max-height: 20em;
130 padding: 0; border: 0;
131 }
132 table.blog_replies td.new { /* New Article from last visit */
133 background: white
134 }
135 table.mini, table.mini tr, table.mini th, table.mini td {
136 margin: 0; border-width: 0;
137 border-collapse: collapse;
138 vertical-align: top; width: auto; height: 1em;
139 }
140 table.mini th {background: #cee;}
141 table.mini tr {border-bottom: solid 1px #bcc;}
142 table.mini th, table.mini td {text-align: justify;}
143 table.mini td, table.mini th {padding: 1px 0.5ex; min-width: 1em;}
144 table.mini {margin-left: 1em; border-left: 2px solid #686;}
146 /* "visibility: collapse" not working on chromium browser */
147 div.noprofimg tr.profimg {visibility: collapse; display: none;}
148 div.noprofimg tr:hover + tr.profimg, div.noprofimg tr:active + tr.profimg,
149 div.noprofimg tr.profimg:hover, div.noprofimg tr.profimg:active {
150 visibility: visible; display: table-row;}
152 /* Used for overlapping image */
153 img.overlap {position: absolute; top: 40px; left: 50px; z-index: 2;}
155 /* Used in user's home page */
156 p.profimg {float: left; max-width: 50%; max-height: 400px;
157 overflow: hidden; margin: 0 1em 1ex;
158 padding: 0; border: white 1px solid; box-shadow: 2px 3px 4px
159 }
160 p.profimg img {max-width: 400px;}
161 div.home+* {clear: both;}
162 body.grouphome p.groupimg {
163 float: right; margin: 0 1em 1ex;
164 overflow: hidden;}
165 body.grouphome p.groupimg img {
166 max-width: 380px; max-height: 380px;}
168 div.fold {margin-top: 1em; border-top: 1px solid black; padding-top: 1em;}
169 div.noborder {border: 0px; margin: 0;}
170 div.fold > div {
171 xxdisplay: none; max-height: 80%; overflow: auto;
172 height: 0px; opacity: 0; padding: 0 1ex;
173 }
174 div.fold input[type="checkbox"]:checked ~ div,
175 div.fold input[type="radio"]:checked ~ div {
176 display: block; background: #fadede;
177 height: auto; opacity: 1.0; transition: 1s;
178 }
180 /* fold2!! */
181 div.foldtabs {
182 position: relative; height: 5em; margin-top: 1em;
183 border-top: 1px solid black; padding-top: 1em;
184 }
185 div.foldtabs > div {
186 position: absolute; top: 2.5em; opacity: 0.0; background: pink;
187 margin: 2px; overflow: auto;
188 }
189 div.foldtabs input[type="radio"] {display: none;}
190 div.foldtabs input[type="radio"]:checked + label + div {
191 display: block; opacity: 1.0; transition: 0.2s; width: 100%;
192 margin: 0; z-index: 2;
193 }
194 div.foldtabs > label {
195 border: 1px outset #ddd; background: #ddd; xbackground: pink;
196 border-top-left-radius: 0.8em; border-top-right-radius: 0.8em;
197 margin: 0;
198 padding: 0.2ex 0.5em; height: 3em;
199 }
200 div.foldtabs > input:active + label {background: white;}
201 div.foldtabs input:checked + label {
202 background: pink; border: pink 1px solid; border-bottom-width: 6px;
203 }
204 div.foldtabs input:checked + label:last-of-type {border-width: 1px;}
205 input[type="checkbox"] + label + input[type="submit"] {display: none;}
206 input[type="checkbox"]:checked + label + input[type="submit"] {
207 display: inline;}
208 div.foldtabs p {margin: 0;}
210 /* ToDo List CheckBox inspired by https://cultureacademia.jp/webcreate/303/ */
211 input.s4-checkbox {display: none;} /* Do not show real checkbox */
212 input.s4-checkbox + label {
213 position: relative; padding-left: 0.8em; margin-right: 1em;
214 }
215 input.s4-checkbox + label:before,
216 input.s4-checkbox + label:after {
217 content: ""; display: block; /* Mimic Checkbox by absolute box */
218 position: absolute; top: 0; left: 0; margin: 0;
219 }
220 input.s4-checkbox + label:before { /* checkbox frame */
221 width: 0.8em; height: 0.8em; border: 1px solid #aaa; border-radius: 20%;
222 background: #ddd;
223 }
224 input.s4-checkbox:checked + label:before { /* checked frame bg */
225 background: pink;
226 }
227 input.s4-checkbox:checked + label { /* checked text */
228 /* text-shadow: red 1px 1px; */
229 }
230 input.s4-checkbox:checked + label:after { /* checked mark */
231 width: 0.6em; height: 0.4em; top: 0.05em; left: 0.1em;
232 border-bottom: 3px solid navy;
233 border-left: 3px solid navy;
234 transform: rotate(-40deg);
235 }
236 /* ---------------------------------------------------- */
238 div.dumptable {max-height: 15em; overflow: auto;}
239 div.dumptable tr:hover {background-color: #fee;}
240 table.dumpblogs td,
241 div.lcto td { /* LINK + CTIME + TITLE + OWNER + something... */
242 white-space: nowrap; overflow: hidden;}
243 table.dumpblogs td:nth-child(4),
244 div.lcto td:nth-child(2) {max-width: 8em;}
245 table.dumpblogs td:nth-child(5), /* team */
246 table.dumpblogs td:nth-child(6), /* title */
247 table.dumpblogs td:nth-child(7), /* heading */
248 div.lcto td:nth-child(3), /* title */
249 div.lcto td:nth-child(4) /* owner */
250 {max-width: 14em;}
252 table.dumpblogs tr.凍結 td:nth-child(n+2) {opacity: 0.5;}
253 table.dumpblogs tr.凍結 td:last-child {opacity: 1.0; color: blue;}
254 *.frozen, *.凍結 {color: blue;}
256 /*
257 table.dumpblogs td:nth-child(4) {
258 max-width: 7.6em; overflow: hidden;}
259 table.dumpblogs td:nth-child(5),
260 table.dumpblogs td:nth-child(6) {
261 max-width: 12em; overflow: hidden;}
262 table.dumpblogs td:nth-child(7) {
263 min-width: 5em; overflow: hidden;}
264 */
266 /********************* icon list *********************/
267 div.iconlist {
268 text-align: center; float: left; margin: 1ex 1em;
269 border: dotted #dfd 2px; padding: 1ex;
270 }
271 div.iconlist p {margin: 0; padding: 0;}
272 div.iconlist p.tag {background: #ffa; border-radius: 4em;}
273 div.iconlist p._temp {background: cyan;}
274 div.iconlist p._lecture {background: pink;}
275 div.iconlist p._admin {background: yellow;}
276 div.iconlist p._friend {background: fuchsia;}
277 div.iconlist p._fellows {background: #9f9;} /* light green */
278 div.iconlist p._club {background: #4bb;} /* light teal */
279 div.iconlist p._event {background: maroon; color: white;}
280 div.iconlist p._misc {background: purple; color: white;}
281 div.iconlist p._record {background: red; color: white;}
282 div.iconlist p._info {background: #eff;} /* light cyan */
283 div.iconlist p._support {background: #ffe;} /* light yellow */
284 div.iconlist p._test {background: #ffb6c1;} /* light pink */
285 input#ismembtn:checked ~ div.iconlist,
286 input#isadmbtn:checked ~ div.iconlist {display: none;}
287 input#ismembtn:checked ~ div.iconlist.Member,
288 input#isadmbtn:checked ~ div.iconlist.ADMIN,
289 input#ismembtn:checked ~ div.iconlist.ADMIN {display: block;}
290 div.xy120x120 {min-width: 120px; min-height: 140px;}
291 div.xy96x96 {min-width: 96px; min-height: 116px;}
292 div.xy96x96 img {max-width: 96px;}
293 div.xy50x50 {min-width: 50px; min-height: 70px;}
294 div.xy50x50 img {max-width: 50px;}
295 div.moderated {background: rgba(255, 215, 0, 0.3);} /* gold */
296 body.moderated {background: #fffec4;} /* #faed8a */
297 body.ismember, div.ismember {border-top: 4px red solid; margin-top: 0;}
298 div.right, div.search {clear: both; float: right;}
299 *.clear {clear: both;}
300 div.search input[type="text"] {
301 border: solid 1px #bbb; border-radius: 0.5ex; min-height: 20px;
302 margin: 1em; padding: 0 0.5ex; padding-left: 18px;
303 background: url("../../img/loupe.png") left center no-repeat
304 rgba(242,240,240,0.7);
305 position: relative;
306 }
307 div.search div.fr, *.relative {position: relative;}
308 div.search p.help, textarea + p.help {display: none;}
309 div.search input:focus + p.help,
310 textarea:focus + p.help {
311 display: block; background: white;
312 position: absolute; right: 15em; white-space: pre;
313 border: 1px solid #888; border-radius: 1em; padding: 1ex;
314 box-shadow: #555 2px 2px;
315 }
316 textarea:focus + p.help {
317 position: fixed;
318 top: 0em; left: 0;
319 }
320 form.summary input[type=submit],
321 input[type="submit"].all {background: #cfc; padding: 0.4ex 2ex;}
322 input[type="reset"] {margin-left: 4em;}
324 /*
325 * PR Web
326 */
327 body.pr {font-size: 200%;}
328 body.pr h1 {
329 text-align: center; width: 80%; padding: 3ex 0; margin: 0 auto;
330 background: #ffefef; border: double 5px navy;
331 }