Mercurial > hgrepos > hgweb.cgi > s4
annotate examples/common/default/default.css @ 208:36b6354de5cb
Profile form should escape entities. Apply ^href conversion to Profile
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Tue, 26 Apr 2016 08:06:35 +0859 |
parents | 5f98d8f46af5 |
children | 2dbaad689d2d |
rev | line source |
---|---|
6 | 1 /* |
2 * Default CSS definitions | |
3 */ | |
4 body {background: #eff;} | |
5 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 } |
208
36b6354de5cb
Profile form should escape entities. Apply ^href conversion to Profile
HIROSE Yuuji <yuuji@gentei.org>
parents:
199
diff
changeset
|
64 div.blogcomment textarea:focus {background: yellow; |
36b6354de5cb
Profile form should escape entities. Apply ^href conversion to Profile
HIROSE Yuuji <yuuji@gentei.org>
parents:
199
diff
changeset
|
65 position: fixed; top: 0; bottom: auto; } |
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 } |
80 .blog_replies td:nth-child(2) { | |
81 vertical-align: top; min-width: 30em; height: 3em; | |
185 | 82 max-width: 50em; |
6 | 83 } |
146 | 84 p.profimg {float: left; max-width: 400px; max-height: 400px; |
85 overflow: hidden; margin-right: 1em; | |
86 padding: 0; border: white 1px solid; box-shadow: 2px 3px 4px | |
87 } | |
149
0e28561bf73a
Specify `max-width: 400px' to p.profimg img
HIROSE Yuuji <yuuji@gentei.org>
parents:
146
diff
changeset
|
88 p.profimg img {max-width: 400px;} |
146 | 89 div.home+* {clear: both;} |
6 | 90 |
91 div.fold {margin-top: 1em; border-top: 1px solid black; padding-top: 1em;} | |
92 div.fold > div { | |
32
280024035566
Folding div by `display none' breaks effects of transition.
HIROSE Yuuji <yuuji@gentei.org>
parents:
30
diff
changeset
|
93 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
|
94 height: 0px; opacity: 0; padding: 0 1ex; |
6 | 95 } |
59 | 96 div.fold input[type="checkbox"]:checked ~ div, |
97 div.fold input[type="radio"]:checked ~ div { | |
193 | 98 display: block; background: #fadede; |
30
a9f061d74153
Add transition to hidden div by div.fold
HIROSE Yuuji <yuuji@gentei.org>
parents:
24
diff
changeset
|
99 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
|
100 } |
199
5f98d8f46af5
Recover to div.dumptable stand alone
HIROSE Yuuji <yuuji@gentei.org>
parents:
198
diff
changeset
|
101 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
|
102 |
6 | 103 |
104 /********************* icon list *********************/ | |
105 div.iconlist { | |
106 text-align: center; float: left; margin: 1ex 1em; | |
107 border: dotted #dfd 2px; padding: 1ex; | |
108 } | |
109 div.iconlist p {margin: 0; padding: 0;} | |
110 div.iconlist p.tag {background: #ffa; border-radius: 4em;} | |
19 | 111 div.iconlist p._temp {background: cyan;} |
112 div.iconlist p._lecture {background: pink;} | |
113 div.iconlist p._admin {background: yellow;} | |
114 div.iconlist p._friend {background: fuchsia;} | |
23 | 115 div.iconlist p._fellows {background: #9f9;} /* light green */ |
24 | 116 div.iconlist p._club {background: #4bb;} /* light teal */ |
23 | 117 div.iconlist p._event {background: maroon; color: white;} |
118 div.iconlist p._misc {background: purple; color: white;} | |
38 | 119 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
|
120 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
|
121 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
|
122 div.iconlist p._test {background: #ffb6c1;} /* light pink */ |
6 | 123 div.xy120x120 {min-width: 120px; min-height: 140px;} |
124 div.xy96x96 {min-width: 96px; min-height: 116px;} | |
125 div.xy50x50 {min-width: 50px; min-height: 70px;} | |
126 div.right {clear: both; float: right;} | |
135 | 127 *.clear {cloear: both;} |
126 | 128 |
129 /* | |
130 * PR Web | |
131 */ | |
132 body.pr {font-size: 200%;} | |
133 body.pr h1 { | |
134 text-align: center; width: 80%; padding: 3ex 0; margin: 0 auto; | |
135 background: #ffefef; border: double 5px navy; | |
136 } |