s4

view examples/common/default/default.css @ 557:591838015ac3

Put inaccessible mark on such attached file icon.
author HIROSE Yuuji <yuuji@gentei.org>
date Sat, 13 Apr 2019 19:00:56 +0900
parents 4a33f5424767
children b86a82ffe407
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 {background: blue; color: white;}
94 table.bloghead {margin-bottom: 1em;}
96 table.blog_replies, .blog_replies tr, .blog_replies td {
97 border: 1px solid #999; 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 for overlapping image */
151 img.overlap {position: absolute; top: 40px; left: 50px; z-index: 2;}
153 /* Used in user's home page */
154 p.profimg {float: left; max-width: 50%; max-height: 400px;
155 overflow: hidden; margin: 0 1em 1ex;
156 padding: 0; border: white 1px solid; box-shadow: 2px 3px 4px
157 }
158 p.profimg img {max-width: 400px;}
159 div.home+* {clear: both;}
160 body.grouphome p.groupimg {
161 float: right; margin: 0 1em 1ex;
162 overflow: hidden;}
163 body.grouphome p.groupimg img {
164 max-width: 380px; max-height: 380px;}
166 div.fold {margin-top: 1em; border-top: 1px solid black; padding-top: 1em;}
167 div.noborder {border: 0px; margin: 0;}
168 div.fold > div {
169 xxdisplay: none; max-height: 80%; overflow: auto;
170 height: 0px; opacity: 0; padding: 0 1ex;
171 }
172 div.fold input[type="checkbox"]:checked ~ div,
173 div.fold input[type="radio"]:checked ~ div {
174 display: block; background: #fadede;
175 height: auto; opacity: 1.0; transition: 1s;
176 }
178 /* fold2!! */
179 div.foldtabs {
180 position: relative; height: 5em; margin-top: 1em;
181 border-top: 1px solid black; padding-top: 1em;
182 }
183 div.foldtabs > div {
184 position: absolute; top: 2.5em; opacity: 0.0; background: pink;
185 margin: 2px; overflow: auto;
186 }
187 div.foldtabs input[type="radio"] {display: none;}
188 div.foldtabs input[type="radio"]:checked + label + div {
189 display: block; opacity: 1.0; transition: 0.2s; width: 100%;
190 margin: 0; z-index: 2;
191 }
192 div.foldtabs > label {
193 border: 1px outset #ddd; background: #ddd; xbackground: pink;
194 border-top-left-radius: 0.8em; border-top-right-radius: 0.8em;
195 margin: 0;
196 padding: 0.2ex 0.5em; height: 3em;
197 }
198 div.foldtabs > input:active + label {background: white;}
199 div.foldtabs input:checked + label {
200 background: pink; border: pink 1px solid; border-bottom-width: 6px;
201 }
202 div.foldtabs input:checked + label:last-of-type {border-width: 1px;}
203 input[type="checkbox"] + label + input[type="submit"] {display: none;}
204 input[type="checkbox"]:checked + label + input[type="submit"] {
205 display: inline;}
206 div.foldtabs p {margin: 0;}
208 /* ToDo List CheckBox inspired by https://cultureacademia.jp/webcreate/303/ */
209 input.s4-checkbox {display: none;} /* Do not show real checkbox */
210 input.s4-checkbox + label {
211 position: relative; padding-left: 0.8em; margin-right: 1em;
212 }
213 input.s4-checkbox + label:before,
214 input.s4-checkbox + label:after {
215 content: ""; display: block; /* Mimic Checkbox by absolute box */
216 position: absolute; top: 0; left: 0; margin: 0;
217 }
218 input.s4-checkbox + label:before { /* checkbox frame */
219 width: 0.8em; height: 0.8em; border: 1px solid #aaa; border-radius: 20%;
220 background: #ddd;
221 }
222 input.s4-checkbox:checked + label:before { /* checked frame bg */
223 background: pink;
224 }
225 input.s4-checkbox:checked + label { /* checked text */
226 /* text-shadow: red 1px 1px; */
227 }
228 input.s4-checkbox:checked + label:after { /* checked mark */
229 width: 0.6em; height: 0.4em; top: 0.05em; left: 0.1em;
230 border-bottom: 3px solid navy;
231 border-left: 3px solid navy;
232 transform: rotate(-40deg);
233 }
234 /* ---------------------------------------------------- */
236 div.dumptable {max-height: 15em; overflow: auto;}
237 div.dumptable tr:hover {background-color: #fee;}
238 table.dumpblogs td,
239 div.lcto td { /* LINK + CTIME + TITLE + OWNER + something... */
240 white-space: nowrap; overflow: hidden;}
241 table.dumpblogs td:nth-child(4),
242 div.lcto td:nth-child(2) {max-width: 8em;}
243 table.dumpblogs td:nth-child(5), /* team */
244 table.dumpblogs td:nth-child(6), /* title */
245 table.dumpblogs td:nth-child(7), /* heading */
246 div.lcto td:nth-child(3), /* title */
247 div.lcto td:nth-child(4) /* owner */
248 {max-width: 14em;}
250 table.dumpblogs tr.凍結 td:nth-child(n+2) {opacity: 0.5;}
251 table.dumpblogs tr.凍結 td:last-child {opacity: 1.0; color: blue;}
252 *.frozen, *.凍結 {color: blue;}
254 /*
255 table.dumpblogs td:nth-child(4) {
256 max-width: 7.6em; overflow: hidden;}
257 table.dumpblogs td:nth-child(5),
258 table.dumpblogs td:nth-child(6) {
259 max-width: 12em; overflow: hidden;}
260 table.dumpblogs td:nth-child(7) {
261 min-width: 5em; overflow: hidden;}
262 */
264 /********************* icon list *********************/
265 div.iconlist {
266 text-align: center; float: left; margin: 1ex 1em;
267 border: dotted #dfd 2px; padding: 1ex;
268 }
269 div.iconlist p {margin: 0; padding: 0;}
270 div.iconlist p.tag {background: #ffa; border-radius: 4em;}
271 div.iconlist p._temp {background: cyan;}
272 div.iconlist p._lecture {background: pink;}
273 div.iconlist p._admin {background: yellow;}
274 div.iconlist p._friend {background: fuchsia;}
275 div.iconlist p._fellows {background: #9f9;} /* light green */
276 div.iconlist p._club {background: #4bb;} /* light teal */
277 div.iconlist p._event {background: maroon; color: white;}
278 div.iconlist p._misc {background: purple; color: white;}
279 div.iconlist p._record {background: red; color: white;}
280 div.iconlist p._info {background: #eff;} /* light cyan */
281 div.iconlist p._support {background: #ffe;} /* light yellow */
282 div.iconlist p._test {background: #ffb6c1;} /* light pink */
283 div.xy120x120 {min-width: 120px; min-height: 140px;}
284 div.xy96x96 {min-width: 96px; min-height: 116px;}
285 div.xy96x96 img {max-width: 96px;}
286 div.xy50x50 {min-width: 50px; min-height: 70px;}
287 div.xy50x50 img {max-width: 50px;}
288 div.moderated {background: rgba(255, 215, 0, 0.3);} /* gold */
289 body.moderated {background: #fffec4;} /* #faed8a */
290 body.ismember, div.ismember {border-top: 4px red solid; margin-top: 0;}
291 div.right, div.search {clear: both; float: right;}
292 *.clear {clear: both;}
293 div.search input[type="text"] {
294 border: solid 1px #bbb; border-radius: 0.5ex; min-height: 20px;
295 margin: 1em; padding: 0 0.5ex; padding-left: 18px;
296 background: url("../../img/loupe.png") left center no-repeat
297 rgba(242,240,240,0.7);
298 position: relative;
299 }
300 div.search div.fr, *.relative {position: relative;}
301 div.search p.help, textarea + p.help {display: none;}
302 div.search input:focus + p.help,
303 textarea:focus + p.help {
304 display: block; background: white;
305 position: absolute; right: 15em; white-space: pre;
306 border: 1px solid #888; border-radius: 1em; padding: 1ex;
307 box-shadow: #555 2px 2px;
308 }
309 textarea:focus + p.help {
310 position: fixed;
311 top: 0em; left: 0;
312 }
313 form.summary input[type=submit] {background: #cfc;}
315 /*
316 * PR Web
317 */
318 body.pr {font-size: 200%;}
319 body.pr h1 {
320 text-align: center; width: 80%; padding: 3ex 0; margin: 0 auto;
321 background: #ffefef; border: double 5px navy;
322 }