s4

annotate examples/common/default/default.css @ 427:d52dd72a70e1

td.repl h[234] -> display: inline;
author HIROSE Yuuji <yuuji@gentei.org>
date Thu, 13 Apr 2017 18:19:22 +0859
parents 0dd65b535c9d
children 8965bdad3172
rev   line source
yuuji@6 1 /*
yuuji@6 2 * Default CSS definitions
yuuji@6 3 */
yuuji@259 4 body {background: #eff; margin: 2px; padding: 6px;}
yuuji@221 5 h2, h3, hr {clear: both;}
yuuji@116 6 *.warn {color: red;}
yuuji@6 7 div.topmenu {
yuuji@6 8 margin: 0; padding: 0; width: 100%; height: 2em;
yuuji@6 9 }
yuuji@6 10 div.topmenu ul {width: 100%; position: fixed; margin: 0;
yuuji@6 11 margin: 0 auto;}
yuuji@6 12 div.topmenu ul li {
yuuji@6 13 float: left; width: 18%;
yuuji@6 14 background: rgba(68,255,102,0.8); border: #3e5 2px groove; margin: 0;
yuuji@6 15 text-align: center; font-size: 80%; list-style: none;
yuuji@6 16 box-shadow: #242 2px 3px 5px;
yuuji@6 17 text-shadow: #fff 0px 0px 10px;
yuuji@6 18 }
yuuji@6 19 div.topmenu ul li:hover {background: #8fa;}
yuuji@6 20 div.topmenu ul a {text-decoration: none;}
yuuji@6 21
yuuji@6 22 ldiv.topmenu + h1 {clear: both; margin-top: 3em;}
yuuji@369 23 pre.list {
yuuji@369 24 overflow: auto; width: 96%; height: 40%; background: white;
yuuji@369 25 border: 2px inset;
yuuji@369 26 }
yuuji@369 27 p.copyright {
yuuji@377 28 border-top: 2px inset #555; text-align: right; clear: both;
yuuji@369 29 font-size: 50%;
yuuji@369 30 }
yuuji@369 31 p.copyright a {text-decoration: none;}
yuuji@6 32
yuuji@6 33 td {padding-left: 0.5ex; padding-right: 0.5ex;}
yuuji@6 34 table.td2r td:nth-child(2) {text-align: right;}
yuuji@6 35 table.td3r td:nth-child(3) {text-align: right;}
yuuji@369 36 table.td3rr td:nth-child(n+3) {text-align: right;}
yuuji@369 37 table.td3evw th:nth-child(2n+4) {background: white;}
yuuji@252 38
yuuji@6 39 table.form, table.b, table.b tr, table.b td, table.b th {
yuuji@6 40 border: 1px solid black; border-collapse: collapse;
yuuji@6 41 }
yuuji@185 42 table.b, table.bloghead {
yuuji@185 43 border-radius: 1ex; box-shadow: rgb(250,222,222) 1px 2px 3px;
yuuji@185 44 }
yuuji@6 45 td.warn {background: #fcc;}
yuuji@6 46 input[type="checkbox"][name="rm"]:checked ~ table {background: red;}
yuuji@6 47 input[type="checkbox"][name="rm"] ~ span {display: none;}
yuuji@6 48 input[type="checkbox"][name="rm"]:checked ~ span {display: inline;}
yuuji@6 49
yuuji@6 50 input[type="radio"][value="replace"] + input.replace[type="file"] {
yuuji@6 51 visibility: hidden;}
yuuji@6 52 input[type="radio"][value="replace"]:checked + input.replace[type="file"] {
yuuji@6 53 visibility: visible;
yuuji@6 54 }
yuuji@153 55 label.admin span {border-bottom: 1px solid blue;}
yuuji@153 56 label.admin:after {content: "(ADMIN)"; color: red; text-decoration: none;}
yuuji@6 57
yuuji@6 58 /* keep/edit/rm action selector */
yuuji@6 59 input.action ~ input:not(.action), input.action ~ textarea {
yuuji@6 60 display: none;
yuuji@6 61 }
yuuji@6 62 input.action[value="edit"]:checked ~ input {display: inline;}
yuuji@6 63 input.action[value="edit"]:checked ~ textarea {display: block;}
yuuji@6 64 input.action[value="edit"]:checked ~ span {display: none;}
yuuji@6 65 input.action[value="rm"]:checked ~ span {background: red;}
yuuji@6 66 label.confirm {display: none;}
yuuji@6 67 input.action[value="rm"]:checked ~ label.confirm {
yuuji@6 68 display: inline;
yuuji@6 69 }
yuuji@6 70
yuuji@241 71 form.replyblog {xxx-margin-bottom: 40%;}
yuuji@6 72 div.blogcomment {
yuuji@6 73 position: fixed; bottom: 0; left: 0;
yuuji@193 74 z-index: 2; background-color: rgba(250,222,222,0.6);
yuuji@6 75 }
yuuji@211 76 /* div.blogcomment textarea:focus {background: yellow;
yuuji@211 77 position: fixed; top: 0; bottom: auto; } Need to consider narrow display */
yuuji@6 78 div.blogcomment * {opacity: 1.0;}
yuuji@6 79 table.bloghead, .bloghead tr, .bloghead td {
yuuji@6 80 border: 1px solid black; border-collapse: collapse;
yuuji@6 81 min-width: 30em;
yuuji@6 82 }
yuuji@293 83 table.bloghead tr.preface {
yuuji@6 84 font-size: 150%; background: yellow; text-align: center;
yuuji@290 85 white-space: pre-wrap;
yuuji@6 86 }
yuuji@397 87 table.bloghead tr.frozen {background: blue; color: white;}
yuuji@397 88
yuuji@6 89 table.bloghead {margin-bottom: 1em;}
yuuji@6 90
yuuji@6 91 table.blog_replies, .blog_replies tr, .blog_replies td {
yuuji@6 92 border: 1px solid black; border-collapse: collapse;
yuuji@185 93 white-space: pre-wrap;
yuuji@6 94 }
yuuji@322 95 table.blog_replies p.proficon {
yuuji@322 96 float: right; margin: 0 1ex 0 0;
yuuji@322 97 }
yuuji@219 98 table.blog_replies+p.update_link {margin-top: 0; margin-bottom: 14em;}
yuuji@291 99 .blog_replies td.repl {
yuuji@6 100 vertical-align: top; min-width: 30em; height: 3em;
yuuji@185 101 max-width: 50em;
yuuji@6 102 }
yuuji@427 103 td.repl h2, td.repl h3, td.repl h4 {
yuuji@427 104 display: inline; /* Because td.repl's white space is pre-wrap */
yuuji@427 105 }
yuuji@355 106 .blog_replies td.repatt {min-width: 12em;}
yuuji@354 107 table.blog_replies iframe {
yuuji@251 108 width: 400px; height: 300px; max-width: 50em; max-height: 20em;
yuuji@251 109 padding: 0; border: 0;
yuuji@251 110 }
yuuji@354 111 table.blog_replies td.new { /* New Article from last visit */
yuuji@287 112 background: white
yuuji@286 113 }
yuuji@291 114 table.mini, table.mini tr, table.mini th, table.mini td {
yuuji@291 115 margin: 0; border-width: 0;
yuuji@291 116 border-collapse: collapse;
yuuji@291 117 vertical-align: top; width: auto; height: 1em;
yuuji@291 118 }
yuuji@294 119 table.mini th, table.mini td {text-align: justify;}
yuuji@293 120 table.mini td, table.mini th {padding: 1px 1ex; min-width: 1em;}
yuuji@291 121 table.mini {margin-left: 1em; border-left: 2px solid #686;}
yuuji@291 122
yuuji@320 123 /* "visibility: collapse" not working on chromium browser */
yuuji@320 124 div.noprofimg tr.profimg {visibility: collapse; display: none;}
yuuji@319 125 div.noprofimg tr:hover + tr.profimg, div.noprofimg tr:active + tr.profimg,
yuuji@319 126 div.noprofimg tr.profimg:hover, div.noprofimg tr.profimg:active {
yuuji@320 127 visibility: visible; display: table-row;}
yuuji@311 128
yuuji@322 129 /* Used in user's home page */
yuuji@311 130 p.profimg {float: left; max-width: 50%; max-height: 400px;
yuuji@311 131 overflow: hidden; margin: 0 1em 1ex;
yuuji@146 132 padding: 0; border: white 1px solid; box-shadow: 2px 3px 4px
yuuji@146 133 }
yuuji@149 134 p.profimg img {max-width: 400px;}
yuuji@146 135 div.home+* {clear: both;}
yuuji@311 136 body.grouphome p.groupimg {
yuuji@315 137 float: right; margin: 0 1em 1ex;
yuuji@311 138 overflow: hidden;}
yuuji@315 139 body.grouphome p.groupimg img {
yuuji@315 140 max-width: 380px; max-height: 380px;}
yuuji@6 141
yuuji@6 142 div.fold {margin-top: 1em; border-top: 1px solid black; padding-top: 1em;}
yuuji@237 143 div.noborder {border: 0px; margin: 0;}
yuuji@6 144 div.fold > div {
yuuji@32 145 xxdisplay: none; max-height: 80%; overflow: auto;
yuuji@30 146 height: 0px; opacity: 0; padding: 0 1ex;
yuuji@6 147 }
yuuji@59 148 div.fold input[type="checkbox"]:checked ~ div,
yuuji@59 149 div.fold input[type="radio"]:checked ~ div {
yuuji@193 150 display: block; background: #fadede;
yuuji@30 151 height: auto; opacity: 1.0; transition: 1s;
yuuji@30 152 }
yuuji@260 153
yuuji@260 154 /* fold2!! */
yuuji@260 155 div.foldtabs {
yuuji@289 156 position: relative; height: 5em; margin-top: 1em;
yuuji@260 157 border-top: 1px solid black; padding-top: 1em;
yuuji@260 158 }
yuuji@260 159 div.foldtabs > div {
yuuji@260 160 position: absolute; top: 2.5em; opacity: 0.0; background: pink;
yuuji@369 161 margin: 2px; overflow: auto;
yuuji@260 162 }
yuuji@260 163 div.foldtabs input[type="radio"] {display: none;}
yuuji@260 164 div.foldtabs input[type="radio"]:checked + label + div {
yuuji@260 165 display: block; opacity: 1.0; transition: 0.2s; width: 100%;
yuuji@260 166 margin: 0; z-index: 2;
yuuji@260 167 }
yuuji@260 168 div.foldtabs > label {
yuuji@260 169 border: 1px outset #ddd; background: #ddd; xbackground: pink;
yuuji@260 170 border-top-left-radius: 0.8em; border-top-right-radius: 0.8em;
yuuji@260 171 margin: 0;
yuuji@260 172 padding: 0.2ex 0.5em; height: 3em;
yuuji@260 173 }
yuuji@260 174 div.foldtabs > input:active + label {background: white;}
yuuji@260 175 div.foldtabs input:checked + label {
yuuji@260 176 background: pink; border: pink 1px solid; border-bottom-width: 6px;
yuuji@260 177 }
yuuji@260 178 div.foldtabs input:checked + label:last-of-type {border-width: 1px;}
yuuji@260 179 input[type="checkbox"] + label + input[type="submit"] {display: none;}
yuuji@260 180 input[type="checkbox"]:checked + label + input[type="submit"] {
yuuji@260 181 display: inline;}
yuuji@289 182 div.foldtabs p {margin: 0;}
yuuji@260 183
yuuji@199 184 div.dumptable {max-height: 15em; overflow: auto;}
yuuji@296 185 div.dumptable tr:hover {background-color: #fee;}
yuuji@258 186 table.dumpblogs td,
yuuji@258 187 div.lcto td { /* LINK + CTIME + TITLE + OWNER + something... */
yuuji@258 188 white-space: nowrap; overflow: hidden;}
yuuji@258 189 table.dumpblogs td:nth-child(4),
yuuji@258 190 div.lcto td:nth-child(2) {max-width: 8em;}
yuuji@258 191 table.dumpblogs td:nth-child(5), /* team */
yuuji@258 192 table.dumpblogs td:nth-child(6), /* title */
yuuji@397 193 table.dumpblogs td:nth-child(7), /* heading */
yuuji@258 194 div.lcto td:nth-child(3), /* title */
yuuji@258 195 div.lcto td:nth-child(4) /* owner */
yuuji@258 196 {max-width: 14em;}
yuuji@258 197
yuuji@397 198 table.dumpblogs tr.凍結 td:nth-child(n+2) {opacity: 0.5;}
yuuji@397 199 table.dumpblogs tr.凍結 td:last-child {opacity: 1.0; color: blue;}
yuuji@397 200 *.frozen, *.凍結 {color: blue;}
yuuji@258 201
yuuji@258 202 /*
yuuji@252 203 table.dumpblogs td:nth-child(4) {
yuuji@256 204 max-width: 7.6em; overflow: hidden;}
yuuji@252 205 table.dumpblogs td:nth-child(5),
yuuji@252 206 table.dumpblogs td:nth-child(6) {
yuuji@256 207 max-width: 12em; overflow: hidden;}
yuuji@252 208 table.dumpblogs td:nth-child(7) {
yuuji@256 209 min-width: 5em; overflow: hidden;}
yuuji@258 210 */
yuuji@6 211
yuuji@6 212 /********************* icon list *********************/
yuuji@6 213 div.iconlist {
yuuji@6 214 text-align: center; float: left; margin: 1ex 1em;
yuuji@6 215 border: dotted #dfd 2px; padding: 1ex;
yuuji@6 216 }
yuuji@6 217 div.iconlist p {margin: 0; padding: 0;}
yuuji@6 218 div.iconlist p.tag {background: #ffa; border-radius: 4em;}
yuuji@19 219 div.iconlist p._temp {background: cyan;}
yuuji@19 220 div.iconlist p._lecture {background: pink;}
yuuji@19 221 div.iconlist p._admin {background: yellow;}
yuuji@19 222 div.iconlist p._friend {background: fuchsia;}
yuuji@23 223 div.iconlist p._fellows {background: #9f9;} /* light green */
yuuji@24 224 div.iconlist p._club {background: #4bb;} /* light teal */
yuuji@23 225 div.iconlist p._event {background: maroon; color: white;}
yuuji@23 226 div.iconlist p._misc {background: purple; color: white;}
yuuji@38 227 div.iconlist p._record {background: red; color: white;}
yuuji@190 228 div.iconlist p._info {background: #eff;} /* light cyan */
yuuji@190 229 div.iconlist p._support {background: #ffe;} /* light yellow */
yuuji@190 230 div.iconlist p._test {background: #ffb6c1;} /* light pink */
yuuji@6 231 div.xy120x120 {min-width: 120px; min-height: 140px;}
yuuji@6 232 div.xy96x96 {min-width: 96px; min-height: 116px;}
yuuji@388 233 div.xy96x96 img {max-width: 96px;}
yuuji@6 234 div.xy50x50 {min-width: 50px; min-height: 70px;}
yuuji@389 235 div.xy50x50 img {max-width: 50px;}
yuuji@259 236 div.moderated {background: rgba(255, 215, 0, 0.3);} /* gold */
yuuji@259 237 body.moderated {background: #fffec4;} /* #faed8a */
yuuji@259 238 body.ismember, div.ismember {border-top: 4px red solid; margin-top: 0;}
yuuji@243 239 div.right, div.search {clear: both; float: right;}
yuuji@234 240 *.clear {clear: both;}
yuuji@243 241 div.search input[type="text"] {
yuuji@243 242 border: solid 1px #bbb; border-radius: 0.5ex; min-height: 20px;
yuuji@243 243 margin: 1em; padding: 0 0.5ex; padding-left: 18px;
yuuji@243 244 background: url("../../img/loupe.png") left center no-repeat
yuuji@243 245 rgba(242,240,240,0.7);
yuuji@352 246 position: relative;
yuuji@352 247 }
yuuji@352 248 div.search div.fr {position: relative;}
yuuji@352 249 div.search p.help {display: none;}
yuuji@352 250 div.search input:focus + p.help {
yuuji@352 251 display: block; background: white;
yuuji@352 252 position: absolute; right: 15em; white-space: pre;
yuuji@352 253 border: 1px solid #888; border-radius: 1em; padding: 1ex;
yuuji@352 254 box-shadow: #555 2px 2px;
yuuji@243 255 }
yuuji@417 256 form.summary input[type=submit] {background: #cfc;}
yuuji@126 257
yuuji@126 258 /*
yuuji@126 259 * PR Web
yuuji@126 260 */
yuuji@126 261 body.pr {font-size: 200%;}
yuuji@126 262 body.pr h1 {
yuuji@126 263 text-align: center; width: 80%; padding: 3ex 0; margin: 0 auto;
yuuji@126 264 background: #ffefef; border: double 5px navy;
yuuji@126 265 }