s4

view examples/common/default/default.css @ 481:856710101c49

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