s4

annotate examples/common/default/default.css @ 871:9c0eb36bccaa

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