X-Git-Url: http://git.plutz.net/?p=serve0;a=blobdiff_plain;f=style.css;h=dd5a23173ab0d702cfcbff1874c53b1aefd00d22;hp=90bb4ea9755b39a47d7bfa3c6a59a76a0f08dc4e;hb=ca9072b5b140d1a78f4c38f0751a9256fdc8f28d;hpb=10c72cceebb66db98ad621181369edfa6294f924 diff --git a/style.css b/style.css index 90bb4ea..dd5a231 100644 --- a/style.css +++ b/style.css @@ -1,45 +1,76 @@ +* { + box-sizing: border-box; + margin: 0; padding: 0; +} +button { padding: .125em .5em; } +a { color: inherit; text-decoration: none;} + body { + position: relative; color: white; background-color: black; - margin: 0; - padding: 0; } -input.toggle { - display: none; -} -input.toggle + label + * { +#prefs, #bookmarks { display: block; overflow: hidden; height: 0; } -input.toggle:checked + label + * { height: auto; } +#prefs:target, +#bookmarks:target { + 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; +} + +a[href="#advsearch"] { + margin-left: .5em; +} +a[href="#advsearch"]:before { + content: '\25b8'; + margin: 0 .5em; } -#t_prefs:checked + label + #prefs { +#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; - position: relative; - top: -1px; - width: 13em; - margin-left: auto; + z-index: 1; + overflow: visible; +} + +#prefs:target a[href="#"] { + position: absolute; + right: .25em; margin-top: -1.5em; + font-size: 1.5em; + padding: 0 .25em; + background-color: #333; + z-index: 1; } #prefs label[for=prefs_ps] { @@ -52,3 +83,80 @@ label[for=t_prefs] { #prefs button { margin-top: 1em; } +#prefs input { vertical-align: top; } +#prefs input[type=radio] + label, +#prefs input[type=checkbox] + label { + display: inline-block; + margin-bottom: .5em; + max-width: 85%; +} + +.itemlist { display: block; overflow: hidden; } +.list { + position: relative; + display: inline-block; + width: 25%; + min-width: 250px; + padding: .25em; + overflow: none; + word-wrap: break-word; + vertical-align: top; + color: black; +} +.list.dir { + padding: .5em 1em; +} + +.list:before { + position: absolute; + top: .25em; left: .25em; + bottom: .25em; right: .25em; + z-index: -2; + content: ''; +} +.list.dir:before { background-color: #CCF; } +.list.file:before { background-color: #FDD; } +.list.file:first-of-type { clear: left; } + +.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 { + color: white; + background-color: #004; + padding: .125em .5em; +} + +.pagination { + display: block; + text-align: center; + margin-top: 1em; +} +.page { + display: inline-block; + padding: .25em .5em; + color: black; + background-color: #FDD; + border: 1px solid; + margin: 0 .125em; +} + +#editing { + width: 100%; bottom: 0; + background-color: #333; + border-top: 1px solid; + padding: .25em; +} + +#index label:first-of-type { font-weight: bold; } +#index input, #index button { margin-left: 1em;}