s4

view examples/common/default/default.css @ 314:06ddd76da753

Only hide tr.profimg at userhome and grouphome page
author HIROSE Yuuji <yuuji@gentei.org>
date Sun, 16 Oct 2016 23:19:50 +0859
parents b8a8e627b376
children 5577a3d131e3
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;}
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;}
28 table.form, table.b, table.b tr, table.b td, table.b th {
29 border: 1px solid black; border-collapse: collapse;
30 }
31 table.b, table.bloghead {
32 border-radius: 1ex; box-shadow: rgb(250,222,222) 1px 2px 3px;
33 }
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;}
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 }
44 label.admin span {border-bottom: 1px solid blue;}
45 label.admin:after {content: "(ADMIN)"; color: red; text-decoration: none;}
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 }
60 form.replyblog {xxx-margin-bottom: 40%;}
61 div.blogcomment {
62 position: fixed; bottom: 0; left: 0;
63 z-index: 2; background-color: rgba(250,222,222,0.6);
64 }
65 /* div.blogcomment textarea:focus {background: yellow;
66 position: fixed; top: 0; bottom: auto; } Need to consider narrow display */
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.preface {
73 font-size: 150%; background: yellow; text-align: center;
74 white-space: pre-wrap;
75 }
76 table.bloghead {margin-bottom: 1em;}
78 table.blog_replies, .blog_replies tr, .blog_replies td {
79 border: 1px solid black; border-collapse: collapse;
80 white-space: pre-wrap;
81 }
82 table.blog_replies+p.update_link {margin-top: 0; margin-bottom: 14em;}
83 .blog_replies td.repl {
84 vertical-align: top; min-width: 30em; height: 3em;
85 max-width: 50em;
86 }
87 .blog_replies iframe {
88 width: 400px; height: 300px; max-width: 50em; max-height: 20em;
89 padding: 0; border: 0;
90 }
91 .blog_replies td.new { /* New Article from last visit */
92 background: white
93 }
94 table.mini, table.mini tr, table.mini th, table.mini td {
95 margin: 0; border-width: 0;
96 border-collapse: collapse;
97 vertical-align: top; width: auto; height: 1em;
98 }
99 table.mini th, table.mini td {text-align: justify;}
100 table.mini td, table.mini th {padding: 1px 1ex; min-width: 1em;}
101 table.mini {margin-left: 1em; border-left: 2px solid #686;}
103 body.grouphome tr.profimg, body.home tr.profimg {visibility: collapse;}
104 tr:hover + tr.profimg, tr:active + tr.profimg, tr.profimg:hover {
105 visibility: visible;}
107 p.profimg {float: left; max-width: 50%; max-height: 400px;
108 overflow: hidden; margin: 0 1em 1ex;
109 padding: 0; border: white 1px solid; box-shadow: 2px 3px 4px
110 }
111 p.profimg img {max-width: 400px;}
112 div.home+* {clear: both;}
113 body.grouphome p.groupimg {
114 float: right; max-width: 380px; max-height: 380px; margin: 0 1em 1ex;
115 overflow: hidden;}
117 div.fold {margin-top: 1em; border-top: 1px solid black; padding-top: 1em;}
118 div.noborder {border: 0px; margin: 0;}
119 div.fold > div {
120 xxdisplay: none; max-height: 80%; overflow: auto;
121 height: 0px; opacity: 0; padding: 0 1ex;
122 }
123 div.fold input[type="checkbox"]:checked ~ div,
124 div.fold input[type="radio"]:checked ~ div {
125 display: block; background: #fadede;
126 height: auto; opacity: 1.0; transition: 1s;
127 }
129 /* fold2!! */
130 div.foldtabs {
131 position: relative; height: 5em; margin-top: 1em;
132 border-top: 1px solid black; padding-top: 1em;
133 }
134 div.foldtabs > div {
135 position: absolute; top: 2.5em; opacity: 0.0; background: pink;
136 margin: 2px; scroll: auto;
137 }
138 div.foldtabs input[type="radio"] {display: none;}
139 div.foldtabs input[type="radio"]:checked + label + div {
140 display: block; opacity: 1.0; transition: 0.2s; width: 100%;
141 margin: 0; z-index: 2;
142 }
143 div.foldtabs > label {
144 border: 1px outset #ddd; background: #ddd; xbackground: pink;
145 border-top-left-radius: 0.8em; border-top-right-radius: 0.8em;
146 margin: 0;
147 padding: 0.2ex 0.5em; height: 3em;
148 }
149 div.foldtabs > input:active + label {background: white;}
150 div.foldtabs input:checked + label {
151 background: pink; border: pink 1px solid; border-bottom-width: 6px;
152 }
153 div.foldtabs input:checked + label:last-of-type {border-width: 1px;}
154 input[type="checkbox"] + label + input[type="submit"] {display: none;}
155 input[type="checkbox"]:checked + label + input[type="submit"] {
156 display: inline;}
157 div.foldtabs p {margin: 0;}
159 div.dumptable {max-height: 15em; overflow: auto;}
160 div.dumptable tr:hover {background-color: #fee;}
161 table.dumpblogs td,
162 div.lcto td { /* LINK + CTIME + TITLE + OWNER + something... */
163 white-space: nowrap; overflow: hidden;}
164 table.dumpblogs td:nth-child(4),
165 div.lcto td:nth-child(2) {max-width: 8em;}
166 table.dumpblogs td:nth-child(5), /* team */
167 table.dumpblogs td:nth-child(6), /* title */
168 div.lcto td:nth-child(3), /* title */
169 div.lcto td:nth-child(4) /* owner */
170 {max-width: 14em;}
173 /*
174 table.dumpblogs td:nth-child(4) {
175 max-width: 7.6em; overflow: hidden;}
176 table.dumpblogs td:nth-child(5),
177 table.dumpblogs td:nth-child(6) {
178 max-width: 12em; overflow: hidden;}
179 table.dumpblogs td:nth-child(7) {
180 min-width: 5em; overflow: hidden;}
181 */
183 /********************* icon list *********************/
184 div.iconlist {
185 text-align: center; float: left; margin: 1ex 1em;
186 border: dotted #dfd 2px; padding: 1ex;
187 }
188 div.iconlist p {margin: 0; padding: 0;}
189 div.iconlist p.tag {background: #ffa; border-radius: 4em;}
190 div.iconlist p._temp {background: cyan;}
191 div.iconlist p._lecture {background: pink;}
192 div.iconlist p._admin {background: yellow;}
193 div.iconlist p._friend {background: fuchsia;}
194 div.iconlist p._fellows {background: #9f9;} /* light green */
195 div.iconlist p._club {background: #4bb;} /* light teal */
196 div.iconlist p._event {background: maroon; color: white;}
197 div.iconlist p._misc {background: purple; color: white;}
198 div.iconlist p._record {background: red; color: white;}
199 div.iconlist p._info {background: #eff;} /* light cyan */
200 div.iconlist p._support {background: #ffe;} /* light yellow */
201 div.iconlist p._test {background: #ffb6c1;} /* light pink */
202 div.xy120x120 {min-width: 120px; min-height: 140px;}
203 div.xy96x96 {min-width: 96px; min-height: 116px;}
204 div.xy50x50 {min-width: 50px; min-height: 70px;}
205 div.moderated {background: rgba(255, 215, 0, 0.3);} /* gold */
206 body.moderated {background: #fffec4;} /* #faed8a */
207 body.ismember, div.ismember {border-top: 4px red solid; margin-top: 0;}
208 div.right, div.search {clear: both; float: right;}
209 *.clear {clear: both;}
210 div.search input[type="text"] {
211 border: solid 1px #bbb; border-radius: 0.5ex; min-height: 20px;
212 margin: 1em; padding: 0 0.5ex; padding-left: 18px;
213 background: url("../../img/loupe.png") left center no-repeat
214 rgba(242,240,240,0.7);
215 }
217 /*
218 * PR Web
219 */
220 body.pr {font-size: 200%;}
221 body.pr h1 {
222 text-align: center; width: 80%; padding: 3ex 0; margin: 0 auto;
223 background: #ffefef; border: double 5px navy;
224 }