s4

view templ/default/default.css @ 30:a9f061d74153

Add transition to hidden div by div.fold
author HIROSE Yuuji <yuuji@gentei.org>
date Wed, 22 Jul 2015 09:31:18 +0900
parents 6b2ba8af4c9e
children 280024035566
line source
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;}
21 ldiv.topmenu + h1 {clear: both; margin-top: 3em;}
23 div.dumptable {max-height: 15em; overflow: auto;}
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;}
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 }
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 }
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;}
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 }
78 div.fold {margin-top: 1em; border-top: 1px solid black; padding-top: 1em;}
79 div.fold > div {
80 display: none; max-height: 80%; overflow: auto;
81 height: 0px; opacity: 0; padding: 0 1ex;
82 }
83 div.fold input[type="checkbox"]:checked ~ div {
84 display: block; background: #eef;
85 height: auto; opacity: 1.0; transition: 1s;
86 }
88 /********************* icon list *********************/
89 div.iconlist {
90 text-align: center; float: left; margin: 1ex 1em;
91 border: dotted #dfd 2px; padding: 1ex;
92 }
93 div.iconlist p {margin: 0; padding: 0;}
94 div.iconlist p.tag {background: #ffa; border-radius: 4em;}
95 div.iconlist p._temp {background: cyan;}
96 div.iconlist p._lecture {background: pink;}
97 div.iconlist p._admin {background: yellow;}
98 div.iconlist p._friend {background: fuchsia;}
99 div.iconlist p._fellows {background: #9f9;} /* light green */
100 div.iconlist p._club {background: #4bb;} /* light teal */
101 div.iconlist p._event {background: maroon; color: white;}
102 div.iconlist p._misc {background: purple; color: white;}
103 div.xy120x120 {min-width: 120px; min-height: 140px;}
104 div.xy96x96 {min-width: 96px; min-height: 116px;}
105 div.xy50x50 {min-width: 50px; min-height: 70px;}
106 div.right {clear: both; float: right;}