X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=style.css;h=1bbc2fff933f8c4b11fe1eee20f6674aa4d97bf6;hb=fac83e5789b5b68484ba8bdf7830c462a722d000;hp=bcd6e378a9e6e105ddfd2dd7d5b12eb7bfcc85a4;hpb=d716f2ce1fe64cf87f777490315bc51906001c72;p=serve0 diff --git a/style.css b/style.css index bcd6e37..1bbc2ff 100644 --- a/style.css +++ b/style.css @@ -1,49 +1,82 @@ * { box-sizing: border-box; + margin: 0; padding: 0; } +button { padding: .125em .5em; } +a { color: inherit; text-decoration: none;} body { color: white; background-color: black; - margin: 0; - padding: 0; + min-height: 100%; } -input.toggle { - display: none; -} -input.toggle + label + * { +#prefs, #bookmarks, #multitag { display: block; overflow: hidden; height: 0; + text-align: left; +} +#prefs:target, +#multitag:target, +#bookmarks:target { + height: auto; + overflow: visible; } -input.toggle:checked + label + * { height: auto; } -#search { +#navigation{ text-align: center; background-color: #333; padding: .25em; border-bottom: 1px solid; - margin: 0; } -label[for=t_prefs] { +#search { display: inline; } + +a[href="#prefs"] { position: absolute; - font-size: 1.5em; top: 0; right: .25em; + font-size: 1.5em; +} + +a[href="#bookmarks"] { + position: absolute; + top: 0; left: .25em; + font-size: 1.5em; } -#t_prefs:checked + label + #prefs { +a[href="#advsearch"] { + margin-left: .5em; +} +a[href="#advsearch"]:before { + content: '\25b8'; + margin: 0 .5em; +} + +#prefs:target { + position: absolute; + right: 0; width: 13em; + margin-left: auto; + margin-top: -1px; background-color: #333; border: 1px solid; border-top: none; border-right: none; padding: .5em 1em; - margin: 0; + z-index: 1; + overflow: visible; +} + +#prefs:target a[href="#"] { + display: block; position: relative; - top: -1px; - width: 13em; - margin-left: auto; + top: -1.5em; right: -.5em; + margin-left: 4em; + text-align: right; + font-size: 1.5em; + padding: 0 .25em; + background-color: #333; + z-index: 1; } #prefs label[for=prefs_ps] { @@ -64,19 +97,22 @@ label[for=t_prefs] { max-width: 85%; } -.itemlist { overflow: hidden;} .list { position: relative; - display: block; float: left; + display: inline-block; width: 25%; min-width: 250px; - padding: .5em 1em; - margin: 0; + padding: .25em; overflow: none; word-wrap: break-word; vertical-align: top; + color: black; + overflow: hidden; } -.list, .list a { color: black; } +.list.dir { + padding: .5em 1em; +} + .list:before { position: absolute; top: .25em; left: .25em; @@ -84,14 +120,47 @@ label[for=t_prefs] { z-index: -2; content: ''; } -.list.file:first-of-type { clear: left; } .list.dir:before { background-color: #CCF; } .list.file:before { background-color: #FDD; } +.list.file:first-of-type { clear: left; } -.list.file img { +.list.file a img{ display: block; width: 100%; + min-height: 4em; +} +.list.file a label{ + position: absolute; + top: 0; padding: .25em .5em; + color: white; + background-color: rgba(0,0,0,.625); +} + +.list.file .time, +.list.file .dim, +.list.file .tag, +.list.file label { + display: inline-block; + margin-top: .125em; } +.list.file .time, +.list.file .dim { + color: white; + background-color: #004; + padding: .125em .5em; +} + +.list.file input[type="checkbox"] { display: none; } +.list.file input[type="checkbox"] + label { + border: 1px solid; + border-radius: .125em; + padding: 0 .25em; + background-color: #FBB; +} +.list.file input[type="checkbox"]:checked + label { + background-color: #4F4; +} + .pagination { display: block; text-align: center; @@ -100,7 +169,35 @@ label[for=t_prefs] { .page { display: inline-block; padding: .25em .5em; - background-color: #FAA; + color: black; + background-color: #FDD; border: 1px solid; + margin: 0 .125em; +} + +#editing { + text-align: left; + width: 100%; + background-color: #333; + border-top: 1px solid; + padding: .25em; +} + +#index label:first-of-type { font-weight: bold; } +#index input, #index button { margin-left: 1em;} + +#multitag:target a[href="#"] { + position: relative; + top: -1em; + padding-right: 10em; + background-color: #333; +} +#multitag fieldset{ + display: inline-block; + width: 25%; min-width: 250px; + vertical-align: top; + padding: 0 .25em; + border: none; } -.page:nth-of-type(1) {clear: left;} +#multitag fieldset * { width: 100%; } +#multitag fieldset button { width: 50%; }