s4

annotate examples/common/default/default.css @ 843:a0dcf6477310

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