Mercurial > hgrepos > hgweb.cgi > s4
annotate examples/common/default/default.css @ 126:a254b496c850
add default.css as symlink
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 06 Aug 2015 13:29:56 +0900 |
parents | 2342e637a632 |
children | 3b34c52fa4f0 |
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 } | |
78 | |
79 div.fold {margin-top: 1em; border-top: 1px solid black; padding-top: 1em;} | |
80 div.fold > div { | |
32
280024035566
Folding div by `display none' breaks effects of transition.
HIROSE Yuuji <yuuji@gentei.org>
parents:
30
diff
changeset
|
81 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
|
82 height: 0px; opacity: 0; padding: 0 1ex; |
6 | 83 } |
59 | 84 div.fold input[type="checkbox"]:checked ~ div, |
85 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
|
86 display: block; background: #eef; |
a9f061d74153
Add transition to hidden div by div.fold
HIROSE Yuuji <yuuji@gentei.org>
parents:
24
diff
changeset
|
87 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
|
88 } |
6 | 89 |
90 /********************* icon list *********************/ | |
91 div.iconlist { | |
92 text-align: center; float: left; margin: 1ex 1em; | |
93 border: dotted #dfd 2px; padding: 1ex; | |
94 } | |
95 div.iconlist p {margin: 0; padding: 0;} | |
96 div.iconlist p.tag {background: #ffa; border-radius: 4em;} | |
19 | 97 div.iconlist p._temp {background: cyan;} |
98 div.iconlist p._lecture {background: pink;} | |
99 div.iconlist p._admin {background: yellow;} | |
100 div.iconlist p._friend {background: fuchsia;} | |
23 | 101 div.iconlist p._fellows {background: #9f9;} /* light green */ |
24 | 102 div.iconlist p._club {background: #4bb;} /* light teal */ |
23 | 103 div.iconlist p._event {background: maroon; color: white;} |
104 div.iconlist p._misc {background: purple; color: white;} | |
38 | 105 div.iconlist p._record {background: red; color: white;} |
6 | 106 div.xy120x120 {min-width: 120px; min-height: 140px;} |
107 div.xy96x96 {min-width: 96px; min-height: 116px;} | |
108 div.xy50x50 {min-width: 50px; min-height: 70px;} | |
109 div.right {clear: both; float: right;} | |
126 | 110 |
111 /* | |
112 * PR Web | |
113 */ | |
114 body.pr {font-size: 200%;} | |
115 body.pr h1 { | |
116 text-align: center; width: 80%; padding: 3ex 0; margin: 0 auto; | |
117 background: #ffefef; border: double 5px navy; | |
118 } | |
119 |