Mercurial > hgrepos > hgweb.cgi > s4
annotate examples/common/default/default.css @ 146:3d0de7bdbf40
Profile image
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Mon, 30 Nov 2015 09:02:38 +0859 |
parents | 3b34c52fa4f0 |
children | 0e28561bf73a |
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 div.dumptable {max-height: 15em; overflow: auto;} | |
25 | |
26 td {padding-left: 0.5ex; padding-right: 0.5ex;} | |
27 table.td2r td:nth-child(2) {text-align: right;} | |
28 table.td3r td:nth-child(3) {text-align: right;} | |
29 table.form, table.b, table.b tr, table.b td, table.b th { | |
30 border: 1px solid black; border-collapse: collapse; | |
31 } | |
32 td.warn {background: #fcc;} | |
33 input[type="checkbox"][name="rm"]:checked ~ table {background: red;} | |
34 input[type="checkbox"][name="rm"] ~ span {display: none;} | |
35 input[type="checkbox"][name="rm"]:checked ~ span {display: inline;} | |
36 | |
37 input[type="radio"][value="replace"] + input.replace[type="file"] { | |
38 visibility: hidden;} | |
39 input[type="radio"][value="replace"]:checked + input.replace[type="file"] { | |
40 visibility: visible; | |
41 } | |
42 | |
43 /* keep/edit/rm action selector */ | |
44 input.action ~ input:not(.action), input.action ~ textarea { | |
45 display: none; | |
46 } | |
47 input.action[value="edit"]:checked ~ input {display: inline;} | |
48 input.action[value="edit"]:checked ~ textarea {display: block;} | |
49 input.action[value="edit"]:checked ~ span {display: none;} | |
50 input.action[value="rm"]:checked ~ span {background: red;} | |
51 label.confirm {display: none;} | |
52 input.action[value="rm"]:checked ~ label.confirm { | |
53 display: inline; | |
54 } | |
55 | |
56 form.replyblog {margin-bottom: 40%;} | |
57 div.blogcomment { | |
58 position: fixed; bottom: 0; left: 0; | |
59 z-index: 2; background-color: rgba(250,222,222,0.8); | |
60 } | |
61 div.blogcomment * {opacity: 1.0;} | |
62 table.bloghead, .bloghead tr, .bloghead td { | |
63 border: 1px solid black; border-collapse: collapse; | |
64 min-width: 30em; | |
65 } | |
66 table.bloghead tr:nth-child(2) { | |
67 font-size: 150%; background: yellow; text-align: center; | |
68 } | |
69 table.bloghead {margin-bottom: 1em;} | |
70 | |
71 table.blog_replies, .blog_replies tr, .blog_replies td { | |
72 border: 1px solid black; border-collapse: collapse; | |
73 white-space: pre; | |
74 } | |
75 .blog_replies td:nth-child(2) { | |
76 vertical-align: top; min-width: 30em; height: 3em; | |
77 } | |
146 | 78 p.profimg {float: left; max-width: 400px; max-height: 400px; |
79 overflow: hidden; margin-right: 1em; | |
80 padding: 0; border: white 1px solid; box-shadow: 2px 3px 4px | |
81 } | |
82 div.home+* {clear: both;} | |
6 | 83 |
84 div.fold {margin-top: 1em; border-top: 1px solid black; padding-top: 1em;} | |
85 div.fold > div { | |
32
280024035566
Folding div by `display none' breaks effects of transition.
HIROSE Yuuji <yuuji@gentei.org>
parents:
30
diff
changeset
|
86 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
|
87 height: 0px; opacity: 0; padding: 0 1ex; |
6 | 88 } |
59 | 89 div.fold input[type="checkbox"]:checked ~ div, |
90 div.fold input[type="radio"]:checked ~ div { | |
30
a9f061d74153
Add transition to hidden div by div.fold
HIROSE Yuuji <yuuji@gentei.org>
parents:
24
diff
changeset
|
91 display: block; background: #eef; |
a9f061d74153
Add transition to hidden div by div.fold
HIROSE Yuuji <yuuji@gentei.org>
parents:
24
diff
changeset
|
92 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
|
93 } |
6 | 94 |
95 /********************* icon list *********************/ | |
96 div.iconlist { | |
97 text-align: center; float: left; margin: 1ex 1em; | |
98 border: dotted #dfd 2px; padding: 1ex; | |
99 } | |
100 div.iconlist p {margin: 0; padding: 0;} | |
101 div.iconlist p.tag {background: #ffa; border-radius: 4em;} | |
19 | 102 div.iconlist p._temp {background: cyan;} |
103 div.iconlist p._lecture {background: pink;} | |
104 div.iconlist p._admin {background: yellow;} | |
105 div.iconlist p._friend {background: fuchsia;} | |
23 | 106 div.iconlist p._fellows {background: #9f9;} /* light green */ |
24 | 107 div.iconlist p._club {background: #4bb;} /* light teal */ |
23 | 108 div.iconlist p._event {background: maroon; color: white;} |
109 div.iconlist p._misc {background: purple; color: white;} | |
38 | 110 div.iconlist p._record {background: red; color: white;} |
6 | 111 div.xy120x120 {min-width: 120px; min-height: 140px;} |
112 div.xy96x96 {min-width: 96px; min-height: 116px;} | |
113 div.xy50x50 {min-width: 50px; min-height: 70px;} | |
114 div.right {clear: both; float: right;} | |
135 | 115 *.clear {cloear: both;} |
126 | 116 |
117 /* | |
118 * PR Web | |
119 */ | |
120 body.pr {font-size: 200%;} | |
121 body.pr h1 { | |
122 text-align: center; width: 80%; padding: 3ex 0; margin: 0 auto; | |
123 background: #ffefef; border: double 5px navy; | |
124 } |