s4

annotate examples/common/default/default.css @ 837:a6462eea48be

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