Mercurial > hgrepos > hgweb.cgi > s4
annotate examples/common/default/default.css @ 290:8a1012410035
s/pre/pre-wrap/ in bloghead
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Mon, 22 Aug 2016 16:05:58 +0859 |
parents | af84e8da1008 |
children | 1df64f0490ca |
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; | |
290
8a1012410035
s/pre/pre-wrap/ in bloghead
HIROSE Yuuji <yuuji@gentei.org>
parents:
289
diff
changeset
|
74 white-space: pre-wrap; |
6 | 75 } |
76 table.bloghead {margin-bottom: 1em;} | |
77 | |
78 table.blog_replies, .blog_replies tr, .blog_replies td { | |
79 border: 1px solid black; border-collapse: collapse; | |
185 | 80 white-space: pre-wrap; |
6 | 81 } |
219
e2dea2f63a69
Duplicate posting by reload avoided
HIROSE Yuuji <yuuji@gentei.org>
parents:
211
diff
changeset
|
82 table.blog_replies+p.update_link {margin-top: 0; margin-bottom: 14em;} |
6 | 83 .blog_replies td:nth-child(2) { |
84 vertical-align: top; min-width: 30em; height: 3em; | |
185 | 85 max-width: 50em; |
6 | 86 } |
251
9e8e43ed3c11
Set geometry of iframe inside of blog_replies by property instead of attr.
HIROSE Yuuji <yuuji@gentei.org>
parents:
243
diff
changeset
|
87 .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
|
88 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
|
89 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
|
90 } |
287
422270e94adc
New flag attached to `time' has low visibility. Attached to `td'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
286
diff
changeset
|
91 .blog_replies td.new { /* New Article from last visit */ |
422270e94adc
New flag attached to `time' has low visibility. Attached to `td'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
286
diff
changeset
|
92 background: white |
286
1c4f13f0813e
Add newer article flag representing by time string decoration.
HIROSE Yuuji <yuuji@gentei.org>
parents:
260
diff
changeset
|
93 } |
146 | 94 p.profimg {float: left; max-width: 400px; max-height: 400px; |
95 overflow: hidden; margin-right: 1em; | |
96 padding: 0; border: white 1px solid; box-shadow: 2px 3px 4px | |
97 } | |
149
0e28561bf73a
Specify `max-width: 400px' to p.profimg img
HIROSE Yuuji <yuuji@gentei.org>
parents:
146
diff
changeset
|
98 p.profimg img {max-width: 400px;} |
146 | 99 div.home+* {clear: both;} |
6 | 100 |
101 div.fold {margin-top: 1em; border-top: 1px solid black; padding-top: 1em;} | |
237 | 102 div.noborder {border: 0px; margin: 0;} |
6 | 103 div.fold > div { |
32
280024035566
Folding div by `display none' breaks effects of transition.
HIROSE Yuuji <yuuji@gentei.org>
parents:
30
diff
changeset
|
104 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
|
105 height: 0px; opacity: 0; padding: 0 1ex; |
6 | 106 } |
59 | 107 div.fold input[type="checkbox"]:checked ~ div, |
108 div.fold input[type="radio"]:checked ~ div { | |
193 | 109 display: block; background: #fadede; |
30
a9f061d74153
Add transition to hidden div by div.fold
HIROSE Yuuji <yuuji@gentei.org>
parents:
24
diff
changeset
|
110 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
|
111 } |
260
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
112 |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
113 /* fold2!! */ |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
114 div.foldtabs { |
289
af84e8da1008
`white-space pre' in bloghead
HIROSE Yuuji <yuuji@gentei.org>
parents:
287
diff
changeset
|
115 position: relative; height: 5em; margin-top: 1em; |
260
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
116 border-top: 1px solid black; padding-top: 1em; |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
117 } |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
118 div.foldtabs > div { |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
119 position: absolute; top: 2.5em; opacity: 0.0; background: pink; |
289
af84e8da1008
`white-space pre' in bloghead
HIROSE Yuuji <yuuji@gentei.org>
parents:
287
diff
changeset
|
120 margin: 2px; scroll: auto; |
260
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
121 } |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
122 div.foldtabs input[type="radio"] {display: none;} |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
123 div.foldtabs input[type="radio"]:checked + label + div { |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
124 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
|
125 margin: 0; z-index: 2; |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
126 } |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
127 div.foldtabs > label { |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
128 border: 1px outset #ddd; background: #ddd; xbackground: pink; |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
129 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
|
130 margin: 0; |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
131 padding: 0.2ex 0.5em; height: 3em; |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
132 } |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
133 div.foldtabs > input:active + label {background: white;} |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
134 div.foldtabs input:checked + label { |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
135 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
|
136 } |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
137 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
|
138 input[type="checkbox"] + label + input[type="submit"] {display: none;} |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
139 input[type="checkbox"]:checked + label + input[type="submit"] { |
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
140 display: inline;} |
289
af84e8da1008
`white-space pre' in bloghead
HIROSE Yuuji <yuuji@gentei.org>
parents:
287
diff
changeset
|
141 div.foldtabs p {margin: 0;} |
260
1b9d45b823b8
UI changed to tab selection
HIROSE Yuuji <yuuji@gentei.org>
parents:
259
diff
changeset
|
142 |
199
5f98d8f46af5
Recover to div.dumptable stand alone
HIROSE Yuuji <yuuji@gentei.org>
parents:
198
diff
changeset
|
143 div.dumptable {max-height: 15em; overflow: auto;} |
258
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
144 table.dumpblogs td, |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
145 div.lcto td { /* LINK + CTIME + TITLE + OWNER + something... */ |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
146 white-space: nowrap; overflow: hidden;} |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
147 table.dumpblogs td:nth-child(4), |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
148 div.lcto td:nth-child(2) {max-width: 8em;} |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
149 table.dumpblogs td:nth-child(5), /* team */ |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
150 table.dumpblogs td:nth-child(6), /* title */ |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
151 div.lcto td:nth-child(3), /* title */ |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
152 div.lcto td:nth-child(4) /* owner */ |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
153 {max-width: 14em;} |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
154 |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
155 |
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
156 /* |
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(4) { |
256
e9b33033d95f
table.dumpblogs td {white-space: nowrap;}
HIROSE Yuuji <yuuji@gentei.org>
parents:
252
diff
changeset
|
158 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
|
159 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
|
160 table.dumpblogs td:nth-child(6) { |
256
e9b33033d95f
table.dumpblogs td {white-space: nowrap;}
HIROSE Yuuji <yuuji@gentei.org>
parents:
252
diff
changeset
|
161 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
|
162 table.dumpblogs td:nth-child(7) { |
256
e9b33033d95f
table.dumpblogs td {white-space: nowrap;}
HIROSE Yuuji <yuuji@gentei.org>
parents:
252
diff
changeset
|
163 min-width: 5em; overflow: hidden;} |
258
a967788f7ad8
More controls by CSS selector
HIROSE Yuuji <yuuji@gentei.org>
parents:
256
diff
changeset
|
164 */ |
6 | 165 |
166 /********************* icon list *********************/ | |
167 div.iconlist { | |
168 text-align: center; float: left; margin: 1ex 1em; | |
169 border: dotted #dfd 2px; padding: 1ex; | |
170 } | |
171 div.iconlist p {margin: 0; padding: 0;} | |
172 div.iconlist p.tag {background: #ffa; border-radius: 4em;} | |
19 | 173 div.iconlist p._temp {background: cyan;} |
174 div.iconlist p._lecture {background: pink;} | |
175 div.iconlist p._admin {background: yellow;} | |
176 div.iconlist p._friend {background: fuchsia;} | |
23 | 177 div.iconlist p._fellows {background: #9f9;} /* light green */ |
24 | 178 div.iconlist p._club {background: #4bb;} /* light teal */ |
23 | 179 div.iconlist p._event {background: maroon; color: white;} |
180 div.iconlist p._misc {background: purple; color: white;} | |
38 | 181 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
|
182 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
|
183 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
|
184 div.iconlist p._test {background: #ffb6c1;} /* light pink */ |
6 | 185 div.xy120x120 {min-width: 120px; min-height: 140px;} |
186 div.xy96x96 {min-width: 96px; min-height: 116px;} | |
187 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
|
188 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
|
189 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
|
190 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
|
191 div.right, div.search {clear: both; float: right;} |
234 | 192 *.clear {clear: both;} |
243
466ea3e4b039
Search box localted to the top of home page.
HIROSE Yuuji <yuuji@gentei.org>
parents:
241
diff
changeset
|
193 div.search input[type="text"] { |
466ea3e4b039
Search box localted to the top of home page.
HIROSE Yuuji <yuuji@gentei.org>
parents:
241
diff
changeset
|
194 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
|
195 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
|
196 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
|
197 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
|
198 } |
126 | 199 |
200 /* | |
201 * PR Web | |
202 */ | |
203 body.pr {font-size: 200%;} | |
204 body.pr h1 { | |
205 text-align: center; width: 80%; padding: 3ex 0; margin: 0 auto; | |
206 background: #ffefef; border: double 5px navy; | |
207 } |