s4

annotate examples/common/default/default.css @ 634:e09a5e6c79c6

Do not center preface of blog
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 28 Apr 2020 14:16:52 +0900
parents 7af908a22128
children 50b3ceca8bf7
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@556 10 div.topmenu ul {width: 100%; position: fixed; z-index: 5; 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@451 70 input.hidesub ~ input[type="submit"] {visibility: hidden;}
yuuji@451 71 input.hidesub:focus ~ input[type="submit"],
yuuji@451 72 p:active input[type="submit"]
yuuji@451 73 {visibility: visible;}
yuuji@451 74 input[type=text]:focus {background: #ffa;}
yuuji@6 75
yuuji@241 76 form.replyblog {xxx-margin-bottom: 40%;}
yuuji@6 77 div.blogcomment {
yuuji@6 78 position: fixed; bottom: 0; left: 0;
yuuji@193 79 z-index: 2; background-color: rgba(250,222,222,0.6);
yuuji@6 80 }
yuuji@211 81 /* div.blogcomment textarea:focus {background: yellow;
yuuji@211 82 position: fixed; top: 0; bottom: auto; } Need to consider narrow display */
yuuji@6 83 div.blogcomment * {opacity: 1.0;}
yuuji@6 84 table.bloghead, .bloghead tr, .bloghead td {
yuuji@6 85 border: 1px solid black; border-collapse: collapse;
yuuji@6 86 min-width: 30em;
yuuji@6 87 }
yuuji@293 88 table.bloghead tr.preface {
yuuji@634 89 font-size: 150%; background: yellow; /* text-align: center; */
yuuji@290 90 white-space: pre-wrap;
yuuji@6 91 }
yuuji@397 92 table.bloghead tr.frozen {background: blue; color: white;}
yuuji@397 93
yuuji@6 94 table.bloghead {margin-bottom: 1em;}
yuuji@6 95
yuuji@6 96 table.blog_replies, .blog_replies tr, .blog_replies td {
yuuji@505 97 border: 1px solid #999; border-collapse: collapse;
yuuji@185 98 white-space: pre-wrap;
yuuji@6 99 }
yuuji@498 100 table.bloghead tr.preface td ul,
yuuji@496 101 table.blog_replies video,
yuuji@496 102 table.blog_replies iframe,
yuuji@489 103 table.blog_replies ul, .blog_replies tr ul, .blog_replies td ul {
yuuji@489 104 text-align: left; white-space: normal; margin: 1ex 0;
yuuji@489 105 }
yuuji@322 106 table.blog_replies p.proficon {
yuuji@322 107 float: right; margin: 0 1ex 0 0;
yuuji@322 108 }
yuuji@219 109 table.blog_replies+p.update_link {margin-top: 0; margin-bottom: 14em;}
yuuji@291 110 .blog_replies td.repl {
yuuji@6 111 vertical-align: top; min-width: 30em; height: 3em;
yuuji@185 112 max-width: 50em;
yuuji@6 113 }
yuuji@500 114 .blog_replies td.repl img {max-width: 30%;}
yuuji@427 115 td.repl h2, td.repl h3, td.repl h4 {
yuuji@427 116 display: inline; /* Because td.repl's white space is pre-wrap */
yuuji@459 117 /* text-shadow: blue 0px 1px; */
yuuji@427 118 }
yuuji@591 119 td.repl hr {display: inline-block; width: 95%; color: #cde}
yuuji@584 120 td.repl em {color: #a00; text-decoration: underline; padding-right: 0.3ex;}
yuuji@485 121 td.repl strong {color: white; background: #00a; padding: 0 0.5ex;}
yuuji@458 122 td.repl h2:before {content: "■"; color: #a22;}
yuuji@458 123 td.repl h3:before {content: "◆"; color: #a22;}
yuuji@456 124 td.repl h4:before {content: "○";}
yuuji@355 125 .blog_replies td.repatt {min-width: 12em;}
yuuji@354 126 table.blog_replies iframe {
yuuji@251 127 width: 400px; height: 300px; max-width: 50em; max-height: 20em;
yuuji@251 128 padding: 0; border: 0;
yuuji@251 129 }
yuuji@354 130 table.blog_replies td.new { /* New Article from last visit */
yuuji@287 131 background: white
yuuji@286 132 }
yuuji@291 133 table.mini, table.mini tr, table.mini th, table.mini td {
yuuji@291 134 margin: 0; border-width: 0;
yuuji@291 135 border-collapse: collapse;
yuuji@291 136 vertical-align: top; width: auto; height: 1em;
yuuji@291 137 }
yuuji@564 138 table.mini th {background: #cee;}
yuuji@481 139 table.mini tr {border-bottom: solid 1px #bcc;}
yuuji@294 140 table.mini th, table.mini td {text-align: justify;}
yuuji@583 141 table.mini td, table.mini th {padding: 1px 0.5ex; min-width: 1em;}
yuuji@291 142 table.mini {margin-left: 1em; border-left: 2px solid #686;}
yuuji@291 143
yuuji@320 144 /* "visibility: collapse" not working on chromium browser */
yuuji@320 145 div.noprofimg tr.profimg {visibility: collapse; display: none;}
yuuji@319 146 div.noprofimg tr:hover + tr.profimg, div.noprofimg tr:active + tr.profimg,
yuuji@319 147 div.noprofimg tr.profimg:hover, div.noprofimg tr.profimg:active {
yuuji@320 148 visibility: visible; display: table-row;}
yuuji@311 149
yuuji@557 150 /* Used for overlapping image */
yuuji@557 151 img.overlap {position: absolute; top: 40px; left: 50px; z-index: 2;}
yuuji@557 152
yuuji@322 153 /* Used in user's home page */
yuuji@311 154 p.profimg {float: left; max-width: 50%; max-height: 400px;
yuuji@311 155 overflow: hidden; margin: 0 1em 1ex;
yuuji@146 156 padding: 0; border: white 1px solid; box-shadow: 2px 3px 4px
yuuji@146 157 }
yuuji@149 158 p.profimg img {max-width: 400px;}
yuuji@146 159 div.home+* {clear: both;}
yuuji@311 160 body.grouphome p.groupimg {
yuuji@315 161 float: right; margin: 0 1em 1ex;
yuuji@311 162 overflow: hidden;}
yuuji@315 163 body.grouphome p.groupimg img {
yuuji@315 164 max-width: 380px; max-height: 380px;}
yuuji@6 165
yuuji@6 166 div.fold {margin-top: 1em; border-top: 1px solid black; padding-top: 1em;}
yuuji@237 167 div.noborder {border: 0px; margin: 0;}
yuuji@6 168 div.fold > div {
yuuji@32 169 xxdisplay: none; max-height: 80%; overflow: auto;
yuuji@30 170 height: 0px; opacity: 0; padding: 0 1ex;
yuuji@6 171 }
yuuji@59 172 div.fold input[type="checkbox"]:checked ~ div,
yuuji@59 173 div.fold input[type="radio"]:checked ~ div {
yuuji@193 174 display: block; background: #fadede;
yuuji@30 175 height: auto; opacity: 1.0; transition: 1s;
yuuji@30 176 }
yuuji@260 177
yuuji@260 178 /* fold2!! */
yuuji@260 179 div.foldtabs {
yuuji@289 180 position: relative; height: 5em; margin-top: 1em;
yuuji@260 181 border-top: 1px solid black; padding-top: 1em;
yuuji@260 182 }
yuuji@260 183 div.foldtabs > div {
yuuji@260 184 position: absolute; top: 2.5em; opacity: 0.0; background: pink;
yuuji@369 185 margin: 2px; overflow: auto;
yuuji@260 186 }
yuuji@260 187 div.foldtabs input[type="radio"] {display: none;}
yuuji@260 188 div.foldtabs input[type="radio"]:checked + label + div {
yuuji@260 189 display: block; opacity: 1.0; transition: 0.2s; width: 100%;
yuuji@260 190 margin: 0; z-index: 2;
yuuji@260 191 }
yuuji@260 192 div.foldtabs > label {
yuuji@260 193 border: 1px outset #ddd; background: #ddd; xbackground: pink;
yuuji@260 194 border-top-left-radius: 0.8em; border-top-right-radius: 0.8em;
yuuji@260 195 margin: 0;
yuuji@260 196 padding: 0.2ex 0.5em; height: 3em;
yuuji@260 197 }
yuuji@260 198 div.foldtabs > input:active + label {background: white;}
yuuji@260 199 div.foldtabs input:checked + label {
yuuji@260 200 background: pink; border: pink 1px solid; border-bottom-width: 6px;
yuuji@260 201 }
yuuji@260 202 div.foldtabs input:checked + label:last-of-type {border-width: 1px;}
yuuji@260 203 input[type="checkbox"] + label + input[type="submit"] {display: none;}
yuuji@260 204 input[type="checkbox"]:checked + label + input[type="submit"] {
yuuji@260 205 display: inline;}
yuuji@289 206 div.foldtabs p {margin: 0;}
yuuji@260 207
yuuji@502 208 /* ToDo List CheckBox inspired by https://cultureacademia.jp/webcreate/303/ */
yuuji@502 209 input.s4-checkbox {display: none;} /* Do not show real checkbox */
yuuji@502 210 input.s4-checkbox + label {
yuuji@502 211 position: relative; padding-left: 0.8em; margin-right: 1em;
yuuji@502 212 }
yuuji@502 213 input.s4-checkbox + label:before,
yuuji@502 214 input.s4-checkbox + label:after {
yuuji@502 215 content: ""; display: block; /* Mimic Checkbox by absolute box */
yuuji@502 216 position: absolute; top: 0; left: 0; margin: 0;
yuuji@502 217 }
yuuji@502 218 input.s4-checkbox + label:before { /* checkbox frame */
yuuji@502 219 width: 0.8em; height: 0.8em; border: 1px solid #aaa; border-radius: 20%;
yuuji@504 220 background: #ddd;
yuuji@502 221 }
yuuji@502 222 input.s4-checkbox:checked + label:before { /* checked frame bg */
yuuji@502 223 background: pink;
yuuji@502 224 }
yuuji@502 225 input.s4-checkbox:checked + label { /* checked text */
yuuji@502 226 /* text-shadow: red 1px 1px; */
yuuji@502 227 }
yuuji@502 228 input.s4-checkbox:checked + label:after { /* checked mark */
yuuji@502 229 width: 0.6em; height: 0.4em; top: 0.05em; left: 0.1em;
yuuji@502 230 border-bottom: 3px solid navy;
yuuji@502 231 border-left: 3px solid navy;
yuuji@502 232 transform: rotate(-40deg);
yuuji@502 233 }
yuuji@502 234 /* ---------------------------------------------------- */
yuuji@502 235
yuuji@199 236 div.dumptable {max-height: 15em; overflow: auto;}
yuuji@296 237 div.dumptable tr:hover {background-color: #fee;}
yuuji@258 238 table.dumpblogs td,
yuuji@258 239 div.lcto td { /* LINK + CTIME + TITLE + OWNER + something... */
yuuji@258 240 white-space: nowrap; overflow: hidden;}
yuuji@258 241 table.dumpblogs td:nth-child(4),
yuuji@258 242 div.lcto td:nth-child(2) {max-width: 8em;}
yuuji@258 243 table.dumpblogs td:nth-child(5), /* team */
yuuji@258 244 table.dumpblogs td:nth-child(6), /* title */
yuuji@397 245 table.dumpblogs td:nth-child(7), /* heading */
yuuji@258 246 div.lcto td:nth-child(3), /* title */
yuuji@258 247 div.lcto td:nth-child(4) /* owner */
yuuji@258 248 {max-width: 14em;}
yuuji@258 249
yuuji@397 250 table.dumpblogs tr.凍結 td:nth-child(n+2) {opacity: 0.5;}
yuuji@397 251 table.dumpblogs tr.凍結 td:last-child {opacity: 1.0; color: blue;}
yuuji@397 252 *.frozen, *.凍結 {color: blue;}
yuuji@258 253
yuuji@258 254 /*
yuuji@252 255 table.dumpblogs td:nth-child(4) {
yuuji@256 256 max-width: 7.6em; overflow: hidden;}
yuuji@252 257 table.dumpblogs td:nth-child(5),
yuuji@252 258 table.dumpblogs td:nth-child(6) {
yuuji@256 259 max-width: 12em; overflow: hidden;}
yuuji@252 260 table.dumpblogs td:nth-child(7) {
yuuji@256 261 min-width: 5em; overflow: hidden;}
yuuji@258 262 */
yuuji@6 263
yuuji@6 264 /********************* icon list *********************/
yuuji@6 265 div.iconlist {
yuuji@6 266 text-align: center; float: left; margin: 1ex 1em;
yuuji@6 267 border: dotted #dfd 2px; padding: 1ex;
yuuji@6 268 }
yuuji@6 269 div.iconlist p {margin: 0; padding: 0;}
yuuji@6 270 div.iconlist p.tag {background: #ffa; border-radius: 4em;}
yuuji@19 271 div.iconlist p._temp {background: cyan;}
yuuji@19 272 div.iconlist p._lecture {background: pink;}
yuuji@19 273 div.iconlist p._admin {background: yellow;}
yuuji@19 274 div.iconlist p._friend {background: fuchsia;}
yuuji@23 275 div.iconlist p._fellows {background: #9f9;} /* light green */
yuuji@24 276 div.iconlist p._club {background: #4bb;} /* light teal */
yuuji@23 277 div.iconlist p._event {background: maroon; color: white;}
yuuji@23 278 div.iconlist p._misc {background: purple; color: white;}
yuuji@38 279 div.iconlist p._record {background: red; color: white;}
yuuji@190 280 div.iconlist p._info {background: #eff;} /* light cyan */
yuuji@190 281 div.iconlist p._support {background: #ffe;} /* light yellow */
yuuji@190 282 div.iconlist p._test {background: #ffb6c1;} /* light pink */
yuuji@609 283 input#ismembtn:checked ~ div.iconlist,
yuuji@609 284 input#isadmbtn:checked ~ div.iconlist {display: none;}
yuuji@609 285 input#ismembtn:checked ~ div.iconlist.Member,
yuuji@609 286 input#isadmbtn:checked ~ div.iconlist.ADMIN,
yuuji@609 287 input#ismembtn:checked ~ div.iconlist.ADMIN {display: block;}
yuuji@6 288 div.xy120x120 {min-width: 120px; min-height: 140px;}
yuuji@6 289 div.xy96x96 {min-width: 96px; min-height: 116px;}
yuuji@388 290 div.xy96x96 img {max-width: 96px;}
yuuji@6 291 div.xy50x50 {min-width: 50px; min-height: 70px;}
yuuji@389 292 div.xy50x50 img {max-width: 50px;}
yuuji@259 293 div.moderated {background: rgba(255, 215, 0, 0.3);} /* gold */
yuuji@259 294 body.moderated {background: #fffec4;} /* #faed8a */
yuuji@259 295 body.ismember, div.ismember {border-top: 4px red solid; margin-top: 0;}
yuuji@243 296 div.right, div.search {clear: both; float: right;}
yuuji@234 297 *.clear {clear: both;}
yuuji@243 298 div.search input[type="text"] {
yuuji@243 299 border: solid 1px #bbb; border-radius: 0.5ex; min-height: 20px;
yuuji@243 300 margin: 1em; padding: 0 0.5ex; padding-left: 18px;
yuuji@243 301 background: url("../../img/loupe.png") left center no-repeat
yuuji@243 302 rgba(242,240,240,0.7);
yuuji@352 303 position: relative;
yuuji@352 304 }
yuuji@557 305 div.search div.fr, *.relative {position: relative;}
yuuji@452 306 div.search p.help, textarea + p.help {display: none;}
yuuji@452 307 div.search input:focus + p.help,
yuuji@452 308 textarea:focus + p.help {
yuuji@352 309 display: block; background: white;
yuuji@352 310 position: absolute; right: 15em; white-space: pre;
yuuji@352 311 border: 1px solid #888; border-radius: 1em; padding: 1ex;
yuuji@352 312 box-shadow: #555 2px 2px;
yuuji@243 313 }
yuuji@452 314 textarea:focus + p.help {
yuuji@452 315 position: fixed;
yuuji@452 316 top: 0em; left: 0;
yuuji@452 317 }
yuuji@587 318 form.summary input[type=submit],
yuuji@588 319 input[type="submit"].all {background: #cfc; padding: 0.4ex 2ex;}
yuuji@602 320 input[type="reset"] {margin-left: 4em;}
yuuji@126 321
yuuji@126 322 /*
yuuji@126 323 * PR Web
yuuji@126 324 */
yuuji@126 325 body.pr {font-size: 200%;}
yuuji@126 326 body.pr h1 {
yuuji@126 327 text-align: center; width: 80%; padding: 3ex 0; margin: 0 auto;
yuuji@126 328 background: #ffefef; border: double 5px navy;
yuuji@126 329 }