Mercurial > hgrepos > hgweb.cgi > s4
annotate examples/common/default/default.css @ 83:815840076efa
Directory structure refreshed
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Mon, 03 Aug 2015 12:16:06 +0900 |
parents | templ/default/default.css@916d81b9c4fc |
children | 2342e637a632 |
rev | line source |
---|---|
6 | 1 /* |
2 * Default CSS definitions | |
3 */ | |
4 body {background: #eff;} | |
5 hr {clear: both;} | |
6 div.topmenu { | |
7 margin: 0; padding: 0; width: 100%; height: 2em; | |
8 } | |
9 div.topmenu ul {width: 100%; position: fixed; margin: 0; | |
10 margin: 0 auto;} | |
11 div.topmenu ul li { | |
12 float: left; width: 18%; | |
13 background: rgba(68,255,102,0.8); border: #3e5 2px groove; margin: 0; | |
14 text-align: center; font-size: 80%; list-style: none; | |
15 box-shadow: #242 2px 3px 5px; | |
16 text-shadow: #fff 0px 0px 10px; | |
17 } | |
18 div.topmenu ul li:hover {background: #8fa;} | |
19 div.topmenu ul a {text-decoration: none;} | |
20 | |
21 ldiv.topmenu + h1 {clear: both; margin-top: 3em;} | |
22 | |
23 div.dumptable {max-height: 15em; overflow: auto;} | |
24 | |
25 td {padding-left: 0.5ex; padding-right: 0.5ex;} | |
26 table.td2r td:nth-child(2) {text-align: right;} | |
27 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 td.warn {background: #fcc;} | |
32 input[type="checkbox"][name="rm"]:checked ~ table {background: red;} | |
33 input[type="checkbox"][name="rm"] ~ span {display: none;} | |
34 input[type="checkbox"][name="rm"]:checked ~ span {display: inline;} | |
35 | |
36 input[type="radio"][value="replace"] + input.replace[type="file"] { | |
37 visibility: hidden;} | |
38 input[type="radio"][value="replace"]:checked + input.replace[type="file"] { | |
39 visibility: visible; | |
40 } | |
41 | |
42 /* keep/edit/rm action selector */ | |
43 input.action ~ input:not(.action), input.action ~ textarea { | |
44 display: none; | |
45 } | |
46 input.action[value="edit"]:checked ~ input {display: inline;} | |
47 input.action[value="edit"]:checked ~ textarea {display: block;} | |
48 input.action[value="edit"]:checked ~ span {display: none;} | |
49 input.action[value="rm"]:checked ~ span {background: red;} | |
50 label.confirm {display: none;} | |
51 input.action[value="rm"]:checked ~ label.confirm { | |
52 display: inline; | |
53 } | |
54 | |
55 form.replyblog {margin-bottom: 40%;} | |
56 div.blogcomment { | |
57 position: fixed; bottom: 0; left: 0; | |
58 z-index: 2; background-color: rgba(250,222,222,0.8); | |
59 } | |
60 div.blogcomment * {opacity: 1.0;} | |
61 table.bloghead, .bloghead tr, .bloghead td { | |
62 border: 1px solid black; border-collapse: collapse; | |
63 min-width: 30em; | |
64 } | |
65 table.bloghead tr:nth-child(2) { | |
66 font-size: 150%; background: yellow; text-align: center; | |
67 } | |
68 table.bloghead {margin-bottom: 1em;} | |
69 | |
70 table.blog_replies, .blog_replies tr, .blog_replies td { | |
71 border: 1px solid black; border-collapse: collapse; | |
72 white-space: pre; | |
73 } | |
74 .blog_replies td:nth-child(2) { | |
75 vertical-align: top; min-width: 30em; height: 3em; | |
76 } | |
77 | |
78 div.fold {margin-top: 1em; border-top: 1px solid black; padding-top: 1em;} | |
79 div.fold > div { | |
32
280024035566
Folding div by `display none' breaks effects of transition.
HIROSE Yuuji <yuuji@gentei.org>
parents:
30
diff
changeset
|
80 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
|
81 height: 0px; opacity: 0; padding: 0 1ex; |
6 | 82 } |
59 | 83 div.fold input[type="checkbox"]:checked ~ div, |
84 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
|
85 display: block; background: #eef; |
a9f061d74153
Add transition to hidden div by div.fold
HIROSE Yuuji <yuuji@gentei.org>
parents:
24
diff
changeset
|
86 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
|
87 } |
6 | 88 |
89 /********************* icon list *********************/ | |
90 div.iconlist { | |
91 text-align: center; float: left; margin: 1ex 1em; | |
92 border: dotted #dfd 2px; padding: 1ex; | |
93 } | |
94 div.iconlist p {margin: 0; padding: 0;} | |
95 div.iconlist p.tag {background: #ffa; border-radius: 4em;} | |
19 | 96 div.iconlist p._temp {background: cyan;} |
97 div.iconlist p._lecture {background: pink;} | |
98 div.iconlist p._admin {background: yellow;} | |
99 div.iconlist p._friend {background: fuchsia;} | |
23 | 100 div.iconlist p._fellows {background: #9f9;} /* light green */ |
24 | 101 div.iconlist p._club {background: #4bb;} /* light teal */ |
23 | 102 div.iconlist p._event {background: maroon; color: white;} |
103 div.iconlist p._misc {background: purple; color: white;} | |
38 | 104 div.iconlist p._record {background: red; color: white;} |
6 | 105 div.xy120x120 {min-width: 120px; min-height: 140px;} |
106 div.xy96x96 {min-width: 96px; min-height: 116px;} | |
107 div.xy50x50 {min-width: 50px; min-height: 70px;} | |
108 div.right {clear: both; float: right;} |