Mercurial > hgrepos > hgweb.cgi > s4
annotate examples/common/default/default.css @ 286:1c4f13f0813e
Add newer article flag representing by time string decoration.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Mon, 15 Aug 2016 11:15:20 +0859 |
parents | 1b9d45b823b8 |
children | 422270e94adc |
rev | line source |
---|---|
6 | 1 /* |
2 * Default CSS definitions | |
3 */ | |
259
85a001a9c7c5
Make it visible: the group is moderated; the user is a member of the group
HIROSE Yuuji <yuuji@gentei.org>
parents:
258
diff
changeset
|
4 body {background: #eff; margin: 2px; padding: 6px;} |
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;} | |
252
75dfaceac01f
Link to newest article of the blog in the recent writing place
HIROSE Yuuji <yuuji@gentei.org>
parents:
251
diff
changeset
|
27 |
6 | 28 table.form, table.b, table.b tr, table.b td, table.b th { |
29 border: 1px solid black; border-collapse: collapse; | |
30 } | |
185 | 31 table.b, table.bloghead { |
32 border-radius: 1ex; box-shadow: rgb(250,222,222) 1px 2px 3px; | |
33 } | |
6 | 34 td.warn {background: #fcc;} |
35 input[type="checkbox"][name="rm"]:checked ~ table {background: red;} | |
36 input[type="checkbox"][name="rm"] ~ span {display: none;} | |
37 input[type="checkbox"][name="rm"]:checked ~ span {display: inline;} | |
38 | |
39 input[type="radio"][value="replace"] + input.replace[type="file"] { | |
40 visibility: hidden;} | |
41 input[type="radio"][value="replace"]:checked + input.replace[type="file"] { | |
42 visibility: visible; | |
43 } | |
153
f7b4f7e5df2a
Commission of grp_adm pulled back into grpaction()
HIROSE Yuuji <yuuji@gentei.org>
parents:
152
diff
changeset
|
44 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
|
45 label.admin:after {content: "(ADMIN)"; color: red; text-decoration: none;} |
6 | 46 |
47 /* keep/edit/rm action selector */ | |
48 input.action ~ input:not(.action), input.action ~ textarea { | |
49 display: none; | |
50 } | |
51 input.action[value="edit"]:checked ~ input {display: inline;} | |
52 input.action[value="edit"]:checked ~ textarea {display: block;} | |
53 input.action[value="edit"]:checked ~ span {display: none;} | |
54 input.action[value="rm"]:checked ~ span {background: red;} | |
55 label.confirm {display: none;} | |
56 input.action[value="rm"]:checked ~ label.confirm { | |
57 display: inline; | |
58 } | |
59 | |
241
0c817d4a549a
Disable margin-bottom of form.replyblog
HIROSE Yuuji <yuuji@gentei.org>
parents:
237
diff
changeset
|
60 form.replyblog {xxx-margin-bottom: 40%;} |
6 | 61 div.blogcomment { |
62 position: fixed; bottom: 0; left: 0; | |
193 | 63 z-index: 2; background-color: rgba(250,222,222,0.6); |
6 | 64 } |
211 | 65 /* div.blogcomment textarea:focus {background: yellow; |
66 position: fixed; top: 0; bottom: auto; } Need to consider narrow display */ | |
6 | 67 div.blogcomment * {opacity: 1.0;} |
68 table.bloghead, .bloghead tr, .bloghead td { | |
69 border: 1px solid black; border-collapse: collapse; | |
70 min-width: 30em; | |
71 } | |
72 table.bloghead tr:nth-child(2) { | |
73 font-size: 150%; background: yellow; text-align: center; | |
74 } | |
75 table.bloghead {margin-bottom: 1em;} | |
76 | |
77 table.blog_replies, .blog_replies tr, .blog_replies td { | |
78 border: 1px solid black; border-collapse: collapse; | |
185 | 79 white-space: pre-wrap; |
6 | 80 } |
219
e2dea2f63a69
Duplicate posting by reload avoided
HIROSE Yuuji <yuuji@gentei.org>
parents:
211
diff
changeset
|
81 table.blog_replies+p.update_link {margin-top: 0; margin-bottom: 14em;} |
6 | 82 .blog_replies td:nth-child(2) { |
83 vertical-align: top; min-width: 30em; height: 3em; | |
185 | 84 max-width: 50em; |
6 | 85 } |
251
9e8e43ed3c11
Set geometry of iframe inside of blog_replies by property instead of attr.
HIROSE Yuuji <yuuji@gentei.org>
parents:
243
diff
changeset
|
86 .blog_replies iframe { |
9e8e43ed3c11
Set geometry of iframe inside of blog_replies by property instead of attr.
HIROSE Yuuji <yuuji@gentei.org>
parents:
243
diff
changeset
|
87 width: 400px; height: 300px; max-width: 50em; max-height: 20em; |
9e8e43ed3c11
Set geometry of iframe inside of blog_replies by property instead of attr.
HIROSE Yuuji <yuuji@gentei.org>
parents:
243
diff
changeset
|
88 padding: 0; border: 0; |
9e8e43ed3c11
Set geometry of iframe inside of blog_replies by property instead of attr.
HIROSE Yuuji <yuuji@gentei.org>
parents:
243
diff
changeset
|
89 } |
286
1c4f13f0813e
Add newer article flag representing by time string decoration.
HIROSE Yuuji <yuuji@gentei.org>
parents:
260
diff
changeset
|
90 .blog_replies span.new { /* New Article from last visit */ |
1c4f13f0813e
Add newer article flag representing by time string decoration.
HIROSE Yuuji <yuuji@gentei.org>
parents:
260
diff
changeset
|
91 background: white; color: red; |
1c4f13f0813e
Add newer article flag representing by time string decoration.
HIROSE Yuuji <yuuji@gentei.org>
parents:
260
diff
changeset
|
92 } |
146 | 93 p.profimg {float: left; max-width: 400px; max-height: 400px; |
94 overflow: hidden; margin-right: 1em; | |
95 padding: 0; border: white 1px solid; box-shadow: 2px 3px 4px | |
96 } | |
149
0e28561bf73a
Specify `max-width: 400px' to p.profimg img
HIROSE Yuuji <yuuji@gentei.org>
parents:
146
diff
changeset
|
97 p.profimg img {max-width: 400px;} |
146 | 98 div.home+* {clear: both;} |
6 | 99 |
100 div.fold {margin-top: 1em; border-top: 1px solid black; padding-top: 1em;} | |
237 | 101 div.noborder {border: 0px; margin: 0;} |
6 | 102 div.fold > div { |
32
280024035566
Folding div by `display none' breaks effects of transition.
HIROSE Yuuji <yuuji@gentei.org>
parents:
30
diff
changeset
|
103 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
|
104 height: 0px; opacity: 0; padding: 0 1ex; |
6 | 105 } |
59 | 106 div.fold input[type="checkbox"]:checked ~ div, |
107 div.fold input[type="radio"]:checked ~ div { | |
193 | 108 display: block; background: #fadede; |
30
a9f061d74153
Add transition to hidden div by div.fold
HIROSE Yuuji <yuuji@gentei.org>
parents:
24
diff
changeset
|
109 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
|
110 } |
260
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
111 |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
112 /* fold2!! */ |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
113 div.foldtabs { |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
114 position: relative; max-height: 5em; margin-top: 1em; |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
115 border-top: 1px solid black; padding-top: 1em; |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
116 } |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
117 div.foldtabs > div { |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
118 position: absolute; top: 2.5em; opacity: 0.0; background: pink; |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
119 margin: 2px; |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
120 } |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
121 div.foldtabs input[type="radio"] {display: none;} |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
122 div.foldtabs input[type="radio"]:checked + label + div { |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
123 display: block; opacity: 1.0; transition: 0.2s; width: 100%; |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
124 margin: 0; z-index: 2; |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
125 } |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
126 div.foldtabs > label { |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
127 border: 1px outset #ddd; background: #ddd; xbackground: pink; |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
128 border-top-left-radius: 0.8em; border-top-right-radius: 0.8em; |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
129 margin: 0; |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
130 padding: 0.2ex 0.5em; height: 3em; |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
131 } |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
132 div.foldtabs > input:active + label {background: white;} |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
133 div.foldtabs input:checked + label { |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
134 background: pink; border: pink 1px solid; border-bottom-width: 6px; |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
135 } |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
136 div.foldtabs input:checked + label:last-of-type {border-width: 1px;} |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
137 input[type="checkbox"] + label + input[type="submit"] {display: none;} |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
138 input[type="checkbox"]:checked + label + input[type="submit"] { |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
139 display: inline;} |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
140 |
199
5f98d8f46af5
Recover to div.dumptable stand alone
HIROSE Yuuji <yuuji@gentei.org>
parents:
198
diff
changeset
|
141 div.dumptable {max-height: 15em; overflow: auto;} |
258
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
142 table.dumpblogs td, |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
143 div.lcto td { /* LINK + CTIME + TITLE + OWNER + something... */ |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
144 white-space: nowrap; overflow: hidden;} |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
145 table.dumpblogs td:nth-child(4), |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
146 div.lcto td:nth-child(2) {max-width: 8em;} |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
147 table.dumpblogs td:nth-child(5), /* team */ |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
148 table.dumpblogs td:nth-child(6), /* title */ |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
149 div.lcto td:nth-child(3), /* title */ |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
150 div.lcto td:nth-child(4) /* owner */ |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
151 {max-width: 14em;} |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
152 |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
153 |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
154 /* |
252
75dfaceac01f
Link to newest article of the blog in the recent writing place
HIROSE Yuuji <yuuji@gentei.org>
parents:
251
diff
changeset
|
155 table.dumpblogs td:nth-child(4) { |
256
e9b33033d95f
table.dumpblogs td {white-space: nowrap;}
HIROSE Yuuji <yuuji@gentei.org>
parents:
252
diff
changeset
|
156 max-width: 7.6em; overflow: hidden;} |
252
75dfaceac01f
Link to newest article of the blog in the recent writing place
HIROSE Yuuji <yuuji@gentei.org>
parents:
251
diff
changeset
|
157 table.dumpblogs td:nth-child(5), |
75dfaceac01f
Link to newest article of the blog in the recent writing place
HIROSE Yuuji <yuuji@gentei.org>
parents:
251
diff
changeset
|
158 table.dumpblogs td:nth-child(6) { |
256
e9b33033d95f
table.dumpblogs td {white-space: nowrap;}
HIROSE Yuuji <yuuji@gentei.org>
parents:
252
diff
changeset
|
159 max-width: 12em; overflow: hidden;} |
252
75dfaceac01f
Link to newest article of the blog in the recent writing place
HIROSE Yuuji <yuuji@gentei.org>
parents:
251
diff
changeset
|
160 table.dumpblogs td:nth-child(7) { |
256
e9b33033d95f
table.dumpblogs td {white-space: nowrap;}
HIROSE Yuuji <yuuji@gentei.org>
parents:
252
diff
changeset
|
161 min-width: 5em; overflow: hidden;} |
258
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
162 */ |
6 | 163 |
164 /********************* icon list *********************/ | |
165 div.iconlist { | |
166 text-align: center; float: left; margin: 1ex 1em; | |
167 border: dotted #dfd 2px; padding: 1ex; | |
168 } | |
169 div.iconlist p {margin: 0; padding: 0;} | |
170 div.iconlist p.tag {background: #ffa; border-radius: 4em;} | |
19 | 171 div.iconlist p._temp {background: cyan;} |
172 div.iconlist p._lecture {background: pink;} | |
173 div.iconlist p._admin {background: yellow;} | |
174 div.iconlist p._friend {background: fuchsia;} | |
23 | 175 div.iconlist p._fellows {background: #9f9;} /* light green */ |
24 | 176 div.iconlist p._club {background: #4bb;} /* light teal */ |
23 | 177 div.iconlist p._event {background: maroon; color: white;} |
178 div.iconlist p._misc {background: purple; color: white;} | |
38 | 179 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
|
180 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
|
181 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
|
182 div.iconlist p._test {background: #ffb6c1;} /* light pink */ |
6 | 183 div.xy120x120 {min-width: 120px; min-height: 140px;} |
184 div.xy96x96 {min-width: 96px; min-height: 116px;} | |
185 div.xy50x50 {min-width: 50px; min-height: 70px;} | |
259
85a001a9c7c5
Make it visible: the group is moderated; the user is a member of the group
HIROSE Yuuji <yuuji@gentei.org>
parents:
258
diff
changeset
|
186 div.moderated {background: rgba(255, 215, 0, 0.3);} /* gold */ |
85a001a9c7c5
Make it visible: the group is moderated; the user is a member of the group
HIROSE Yuuji <yuuji@gentei.org>
parents:
258
diff
changeset
|
187 body.moderated {background: #fffec4;} /* #faed8a */ |
85a001a9c7c5
Make it visible: the group is moderated; the user is a member of the group
HIROSE Yuuji <yuuji@gentei.org>
parents:
258
diff
changeset
|
188 body.ismember, div.ismember {border-top: 4px red solid; margin-top: 0;} |
243
466ea3e4b039
Search box localted to the top of home page.
HIROSE Yuuji <yuuji@gentei.org>
parents:
241
diff
changeset
|
189 div.right, div.search {clear: both; float: right;} |
234 | 190 *.clear {clear: both;} |
243
466ea3e4b039
Search box localted to the top of home page.
HIROSE Yuuji <yuuji@gentei.org>
parents:
241
diff
changeset
|
191 div.search input[type="text"] { |
466ea3e4b039
Search box localted to the top of home page.
HIROSE Yuuji <yuuji@gentei.org>
parents:
241
diff
changeset
|
192 border: solid 1px #bbb; border-radius: 0.5ex; min-height: 20px; |
466ea3e4b039
Search box localted to the top of home page.
HIROSE Yuuji <yuuji@gentei.org>
parents:
241
diff
changeset
|
193 margin: 1em; padding: 0 0.5ex; padding-left: 18px; |
466ea3e4b039
Search box localted to the top of home page.
HIROSE Yuuji <yuuji@gentei.org>
parents:
241
diff
changeset
|
194 background: url("../../img/loupe.png") left center no-repeat |
466ea3e4b039
Search box localted to the top of home page.
HIROSE Yuuji <yuuji@gentei.org>
parents:
241
diff
changeset
|
195 rgba(242,240,240,0.7); |
466ea3e4b039
Search box localted to the top of home page.
HIROSE Yuuji <yuuji@gentei.org>
parents:
241
diff
changeset
|
196 } |
126 | 197 |
198 /* | |
199 * PR Web | |
200 */ | |
201 body.pr {font-size: 200%;} | |
202 body.pr h1 { | |
203 text-align: center; width: 80%; padding: 3ex 0; margin: 0 auto; | |
204 background: #ffefef; border: double 5px navy; | |
205 } |