s4

view examples/common/default/default.css @ 484:66189fcd8c0c

(TEST) <hr> in reply field has margin-bottom: -1em
author HIROSE Yuuji <yuuji@gentei.org>
date Fri, 02 Feb 2018 10:09:49 +0900
parents 856710101c49
children 021e7943fd99
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.blog_replies p.proficon {
101 float: right; margin: 0 1ex 0 0;
102 }
103 table.blog_replies+p.update_link {margin-top: 0; margin-bottom: 14em;}
104 .blog_replies td.repl {
105 vertical-align: top; min-width: 30em; height: 3em;
106 max-width: 50em;
107 }
108 td.repl h2, td.repl h3, td.repl h4 {
109 display: inline; /* Because td.repl's white space is pre-wrap */
110 /* text-shadow: blue 0px 1px; */
111 }
112 td.repl hr {margin-bottom: -1em;}
113 td.repl h2:before {content: "■"; color: #a22;}
114 td.repl h3:before {content: "◆"; color: #a22;}
115 td.repl h4:before {content: "○";}
116 .blog_replies td.repatt {min-width: 12em;}
117 table.blog_replies iframe {
118 width: 400px; height: 300px; max-width: 50em; max-height: 20em;
119 padding: 0; border: 0;
120 }
121 table.blog_replies td.new { /* New Article from last visit */
122 background: white
123 }
124 table.mini, table.mini tr, table.mini th, table.mini td {
125 margin: 0; border-width: 0;
126 border-collapse: collapse;
127 vertical-align: top; width: auto; height: 1em;
128 }
129 table.mini th {background: #bcc;}
130 table.mini tr {border-bottom: solid 1px #bcc;}
131 table.mini th, table.mini td {text-align: justify;}
132 table.mini td, table.mini th {padding: 1px 1ex; min-width: 1em;}
133 table.mini {margin-left: 1em; border-left: 2px solid #686;}
135 /* "visibility: collapse" not working on chromium browser */
136 div.noprofimg tr.profimg {visibility: collapse; display: none;}
137 div.noprofimg tr:hover + tr.profimg, div.noprofimg tr:active + tr.profimg,
138 div.noprofimg tr.profimg:hover, div.noprofimg tr.profimg:active {
139 visibility: visible; display: table-row;}
141 /* Used in user's home page */
142 p.profimg {float: left; max-width: 50%; max-height: 400px;
143 overflow: hidden; margin: 0 1em 1ex;
144 padding: 0; border: white 1px solid; box-shadow: 2px 3px 4px
145 }
146 p.profimg img {max-width: 400px;}
147 div.home+* {clear: both;}
148 body.grouphome p.groupimg {
149 float: right; margin: 0 1em 1ex;
150 overflow: hidden;}
151 body.grouphome p.groupimg img {
152 max-width: 380px; max-height: 380px;}
154 div.fold {margin-top: 1em; border-top: 1px solid black; padding-top: 1em;}
155 div.noborder {border: 0px; margin: 0;}
156 div.fold > div {
157 xxdisplay: none; max-height: 80%; overflow: auto;
158 height: 0px; opacity: 0; padding: 0 1ex;
159 }
160 div.fold input[type="checkbox"]:checked ~ div,
161 div.fold input[type="radio"]:checked ~ div {
162 display: block; background: #fadede;
163 height: auto; opacity: 1.0; transition: 1s;
164 }
166 /* fold2!! */
167 div.foldtabs {
168 position: relative; height: 5em; margin-top: 1em;
169 border-top: 1px solid black; padding-top: 1em;
170 }
171 div.foldtabs > div {
172 position: absolute; top: 2.5em; opacity: 0.0; background: pink;
173 margin: 2px; overflow: auto;
174 }
175 div.foldtabs input[type="radio"] {display: none;}
176 div.foldtabs input[type="radio"]:checked + label + div {
177 display: block; opacity: 1.0; transition: 0.2s; width: 100%;
178 margin: 0; z-index: 2;
179 }
180 div.foldtabs > label {
181 border: 1px outset #ddd; background: #ddd; xbackground: pink;
182 border-top-left-radius: 0.8em; border-top-right-radius: 0.8em;
183 margin: 0;
184 padding: 0.2ex 0.5em; height: 3em;
185 }
186 div.foldtabs > input:active + label {background: white;}
187 div.foldtabs input:checked + label {
188 background: pink; border: pink 1px solid; border-bottom-width: 6px;
189 }
190 div.foldtabs input:checked + label:last-of-type {border-width: 1px;}
191 input[type="checkbox"] + label + input[type="submit"] {display: none;}
192 input[type="checkbox"]:checked + label + input[type="submit"] {
193 display: inline;}
194 div.foldtabs p {margin: 0;}
196 div.dumptable {max-height: 15em; overflow: auto;}
197 div.dumptable tr:hover {background-color: #fee;}
198 table.dumpblogs td,
199 div.lcto td { /* LINK + CTIME + TITLE + OWNER + something... */
200 white-space: nowrap; overflow: hidden;}
201 table.dumpblogs td:nth-child(4),
202 div.lcto td:nth-child(2) {max-width: 8em;}
203 table.dumpblogs td:nth-child(5), /* team */
204 table.dumpblogs td:nth-child(6), /* title */
205 table.dumpblogs td:nth-child(7), /* heading */
206 div.lcto td:nth-child(3), /* title */
207 div.lcto td:nth-child(4) /* owner */
208 {max-width: 14em;}
210 table.dumpblogs tr.凍結 td:nth-child(n+2) {opacity: 0.5;}
211 table.dumpblogs tr.凍結 td:last-child {opacity: 1.0; color: blue;}
212 *.frozen, *.凍結 {color: blue;}
214 /*
215 table.dumpblogs td:nth-child(4) {
216 max-width: 7.6em; overflow: hidden;}
217 table.dumpblogs td:nth-child(5),
218 table.dumpblogs td:nth-child(6) {
219 max-width: 12em; overflow: hidden;}
220 table.dumpblogs td:nth-child(7) {
221 min-width: 5em; overflow: hidden;}
222 */
224 /********************* icon list *********************/
225 div.iconlist {
226 text-align: center; float: left; margin: 1ex 1em;
227 border: dotted #dfd 2px; padding: 1ex;
228 }
229 div.iconlist p {margin: 0; padding: 0;}
230 div.iconlist p.tag {background: #ffa; border-radius: 4em;}
231 div.iconlist p._temp {background: cyan;}
232 div.iconlist p._lecture {background: pink;}
233 div.iconlist p._admin {background: yellow;}
234 div.iconlist p._friend {background: fuchsia;}
235 div.iconlist p._fellows {background: #9f9;} /* light green */
236 div.iconlist p._club {background: #4bb;} /* light teal */
237 div.iconlist p._event {background: maroon; color: white;}
238 div.iconlist p._misc {background: purple; color: white;}
239 div.iconlist p._record {background: red; color: white;}
240 div.iconlist p._info {background: #eff;} /* light cyan */
241 div.iconlist p._support {background: #ffe;} /* light yellow */
242 div.iconlist p._test {background: #ffb6c1;} /* light pink */
243 div.xy120x120 {min-width: 120px; min-height: 140px;}
244 div.xy96x96 {min-width: 96px; min-height: 116px;}
245 div.xy96x96 img {max-width: 96px;}
246 div.xy50x50 {min-width: 50px; min-height: 70px;}
247 div.xy50x50 img {max-width: 50px;}
248 div.moderated {background: rgba(255, 215, 0, 0.3);} /* gold */
249 body.moderated {background: #fffec4;} /* #faed8a */
250 body.ismember, div.ismember {border-top: 4px red solid; margin-top: 0;}
251 div.right, div.search {clear: both; float: right;}
252 *.clear {clear: both;}
253 div.search input[type="text"] {
254 border: solid 1px #bbb; border-radius: 0.5ex; min-height: 20px;
255 margin: 1em; padding: 0 0.5ex; padding-left: 18px;
256 background: url("../../img/loupe.png") left center no-repeat
257 rgba(242,240,240,0.7);
258 position: relative;
259 }
260 div.search div.fr {position: relative;}
261 div.search p.help, textarea + p.help {display: none;}
262 div.search input:focus + p.help,
263 textarea:focus + p.help {
264 display: block; background: white;
265 position: absolute; right: 15em; white-space: pre;
266 border: 1px solid #888; border-radius: 1em; padding: 1ex;
267 box-shadow: #555 2px 2px;
268 }
269 textarea:focus + p.help {
270 position: fixed;
271 top: 0em; left: 0;
272 }
273 form.summary input[type=submit] {background: #cfc;}
275 /*
276 * PR Web
277 */
278 body.pr {font-size: 200%;}
279 body.pr h1 {
280 text-align: center; width: 80%; padding: 3ex 0; margin: 0 auto;
281 background: #ffefef; border: double 5px navy;
282 }