Mercurial > hgrepos > hgweb.cgi > s4
annotate examples/common/default/default.css @ 234:52a802a655a9
typo
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sat, 25 Jun 2016 08:57:26 +0859 |
parents | acd904062e55 |
children | ba4efe0b53e0 |
rev | line source |
---|---|
6 | 1 /* |
2 * Default CSS definitions | |
3 */ | |
4 body {background: #eff;} | |
221 | 5 h2, h3, hr {clear: both;} |
116 | 6 *.warn {color: red;} |
6 | 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;} | |
21 | |
22 ldiv.topmenu + h1 {clear: both; margin-top: 3em;} | |
23 | |
24 td {padding-left: 0.5ex; padding-right: 0.5ex;} | |
25 table.td2r td:nth-child(2) {text-align: right;} | |
26 table.td3r td:nth-child(3) {text-align: right;} | |
27 table.form, table.b, table.b tr, table.b td, table.b th { | |
28 border: 1px solid black; border-collapse: collapse; | |
29 } | |
185 | 30 table.b, table.bloghead { |
31 border-radius: 1ex; box-shadow: rgb(250,222,222) 1px 2px 3px; | |
32 } | |
6 | 33 td.warn {background: #fcc;} |
34 input[type="checkbox"][name="rm"]:checked ~ table {background: red;} | |
35 input[type="checkbox"][name="rm"] ~ span {display: none;} | |
36 input[type="checkbox"][name="rm"]:checked ~ span {display: inline;} | |
37 | |
38 input[type="radio"][value="replace"] + input.replace[type="file"] { | |
39 visibility: hidden;} | |
40 input[type="radio"][value="replace"]:checked + input.replace[type="file"] { | |
41 visibility: visible; | |
42 } | |
153
f7b4f7e5df2a
Commission of grp_adm pulled back into grpaction()
HIROSE Yuuji <yuuji@gentei.org>
parents:
152
diff
changeset
|
43 label.admin span {border-bottom: 1px solid blue;} |
f7b4f7e5df2a
Commission of grp_adm pulled back into grpaction()
HIROSE Yuuji <yuuji@gentei.org>
parents:
152
diff
changeset
|
44 label.admin:after {content: "(ADMIN)"; color: red; text-decoration: none;} |
6 | 45 |
46 /* keep/edit/rm action selector */ | |
47 input.action ~ input:not(.action), input.action ~ textarea { | |
48 display: none; | |
49 } | |
50 input.action[value="edit"]:checked ~ input {display: inline;} | |
51 input.action[value="edit"]:checked ~ textarea {display: block;} | |
52 input.action[value="edit"]:checked ~ span {display: none;} | |
53 input.action[value="rm"]:checked ~ span {background: red;} | |
54 label.confirm {display: none;} | |
55 input.action[value="rm"]:checked ~ label.confirm { | |
56 display: inline; | |
57 } | |
58 | |
59 form.replyblog {margin-bottom: 40%;} | |
60 div.blogcomment { | |
61 position: fixed; bottom: 0; left: 0; | |
193 | 62 z-index: 2; background-color: rgba(250,222,222,0.6); |
6 | 63 } |
211 | 64 /* div.blogcomment textarea:focus {background: yellow; |
65 position: fixed; top: 0; bottom: auto; } Need to consider narrow display */ | |
6 | 66 div.blogcomment * {opacity: 1.0;} |
67 table.bloghead, .bloghead tr, .bloghead td { | |
68 border: 1px solid black; border-collapse: collapse; | |
69 min-width: 30em; | |
70 } | |
71 table.bloghead tr:nth-child(2) { | |
72 font-size: 150%; background: yellow; text-align: center; | |
73 } | |
74 table.bloghead {margin-bottom: 1em;} | |
75 | |
76 table.blog_replies, .blog_replies tr, .blog_replies td { | |
77 border: 1px solid black; border-collapse: collapse; | |
185 | 78 white-space: pre-wrap; |
6 | 79 } |
219
e2dea2f63a69
Duplicate posting by reload avoided
HIROSE Yuuji <yuuji@gentei.org>
parents:
211
diff
changeset
|
80 table.blog_replies+p.update_link {margin-top: 0; margin-bottom: 14em;} |
6 | 81 .blog_replies td:nth-child(2) { |
82 vertical-align: top; min-width: 30em; height: 3em; | |
185 | 83 max-width: 50em; |
6 | 84 } |
146 | 85 p.profimg {float: left; max-width: 400px; max-height: 400px; |
86 overflow: hidden; margin-right: 1em; | |
87 padding: 0; border: white 1px solid; box-shadow: 2px 3px 4px | |
88 } | |
149
0e28561bf73a
Specify `max-width: 400px' to p.profimg img
HIROSE Yuuji <yuuji@gentei.org>
parents:
146
diff
changeset
|
89 p.profimg img {max-width: 400px;} |
146 | 90 div.home+* {clear: both;} |
6 | 91 |
92 div.fold {margin-top: 1em; border-top: 1px solid black; padding-top: 1em;} | |
93 div.fold > div { | |
32
280024035566
Folding div by `display none' breaks effects of transition.
HIROSE Yuuji <yuuji@gentei.org>
parents:
30
diff
changeset
|
94 xxdisplay: none; max-height: 80%; overflow: auto; |
30
a9f061d74153
Add transition to hidden div by div.fold
HIROSE Yuuji <yuuji@gentei.org>
parents:
24
diff
changeset
|
95 height: 0px; opacity: 0; padding: 0 1ex; |
6 | 96 } |
59 | 97 div.fold input[type="checkbox"]:checked ~ div, |
98 div.fold input[type="radio"]:checked ~ div { | |
193 | 99 display: block; background: #fadede; |
30
a9f061d74153
Add transition to hidden div by div.fold
HIROSE Yuuji <yuuji@gentei.org>
parents:
24
diff
changeset
|
100 height: auto; opacity: 1.0; transition: 1s; |
a9f061d74153
Add transition to hidden div by div.fold
HIROSE Yuuji <yuuji@gentei.org>
parents:
24
diff
changeset
|
101 } |
199
5f98d8f46af5
Recover to div.dumptable stand alone
HIROSE Yuuji <yuuji@gentei.org>
parents:
198
diff
changeset
|
102 div.dumptable {max-height: 15em; overflow: auto;} |
197
d0a5ffc2cabf
div.dumptable within div.fold should have scroll bar
HIROSE Yuuji <yuuji@gentei.org>
parents:
193
diff
changeset
|
103 |
6 | 104 |
105 /********************* icon list *********************/ | |
106 div.iconlist { | |
107 text-align: center; float: left; margin: 1ex 1em; | |
108 border: dotted #dfd 2px; padding: 1ex; | |
109 } | |
110 div.iconlist p {margin: 0; padding: 0;} | |
111 div.iconlist p.tag {background: #ffa; border-radius: 4em;} | |
19 | 112 div.iconlist p._temp {background: cyan;} |
113 div.iconlist p._lecture {background: pink;} | |
114 div.iconlist p._admin {background: yellow;} | |
115 div.iconlist p._friend {background: fuchsia;} | |
23 | 116 div.iconlist p._fellows {background: #9f9;} /* light green */ |
24 | 117 div.iconlist p._club {background: #4bb;} /* light teal */ |
23 | 118 div.iconlist p._event {background: maroon; color: white;} |
119 div.iconlist p._misc {background: purple; color: white;} | |
38 | 120 div.iconlist p._record {background: red; color: white;} |
190
ba6c2c3c0373
Add CSS for "info", "support" and "test" group.
HIROSE Yuuji <yuuji@gentei.org>
parents:
185
diff
changeset
|
121 div.iconlist p._info {background: #eff;} /* light cyan */ |
ba6c2c3c0373
Add CSS for "info", "support" and "test" group.
HIROSE Yuuji <yuuji@gentei.org>
parents:
185
diff
changeset
|
122 div.iconlist p._support {background: #ffe;} /* light yellow */ |
ba6c2c3c0373
Add CSS for "info", "support" and "test" group.
HIROSE Yuuji <yuuji@gentei.org>
parents:
185
diff
changeset
|
123 div.iconlist p._test {background: #ffb6c1;} /* light pink */ |
6 | 124 div.xy120x120 {min-width: 120px; min-height: 140px;} |
125 div.xy96x96 {min-width: 96px; min-height: 116px;} | |
126 div.xy50x50 {min-width: 50px; min-height: 70px;} | |
127 div.right {clear: both; float: right;} | |
234 | 128 *.clear {clear: both;} |
126 | 129 |
130 /* | |
131 * PR Web | |
132 */ | |
133 body.pr {font-size: 200%;} | |
134 body.pr h1 { | |
135 text-align: center; width: 80%; padding: 3ex 0; margin: 0 auto; | |
136 background: #ffefef; border: double 5px navy; | |
137 } |