X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=static%2Fcommon.css;h=c73b25fb038be91e24ac0caecef9c76c1c82b425;hb=71ab2a7fb405c5b0394509ac81acfe35fe2c5ffb;hp=16910fb12d5603836f27a9b73a98dd39fcd72d7b;hpb=f9a2881b35e0a42e36d1558ba4f41301e3acec2f;p=serve0 diff --git a/static/common.css b/static/common.css index 16910fb..c73b25f 100644 --- a/static/common.css +++ b/static/common.css @@ -18,17 +18,20 @@ * { -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; box-sizing: border-box; - -moz-transition: all .3s linear; - transition: all .3s linear; + -moz-transition: all .25s linear; + transition: all .25s linear; } body { padding: 0; + padding-top: 3em; margin: 0; background-color: #000; color: #DDD; } +body.playctl { padding-top: 4.25em; } a { color: #EEE; } legend, label, .label { font-weight: bold; } @@ -63,7 +66,6 @@ textarea { background-color: #333; text-align: right; } -.panel:after { content: ''; display: block; clear: both;} .pagination_nav a { display: none; text-decoration: none; @@ -93,106 +95,130 @@ textarea { } .pagination_nav:hover a { display: inline; } -/* == Panels == */ -.panel { - position: relative; - display: block; - width: 100%; - margin: 0; - padding: .25em .5em; - background-color: #333; - border-width: 1px; - border-style: none none solid none; +/* == Panels == */ +body:before { + position: absolute; display: block; + top: -1px; height: 2.25em; width: 100%; + background-color: #222; + margin: 0; padding: 0; + padding-top: .5em; + border-bottom: 1px solid #FFF; + content: ''; +} +body.playctl:before { + top: -2px; + margin-top: 1.25em; + border-top: 1px solid #FFF; } -a.panel { - font-weight: bold; +input[name=topmenu] {display: none;} +input[name=topmenu] + label { + position: relative; + top: -2.5em; display: inline-block; - border: none; - width: auto; - padding: 0; - margin: auto 1em 1ex 0; text-decoration: none; + padding: .5em .5em; + line-height: 1.25em; + transition: none; + border: 1px none #FFF; + text-align: center; } +@media (min-width: 620px){input[name=topmenu] + label { padding: .5em 1.5em; }} -.panel .help { display: block;} +input[name=topmenu]:checked + label { + background-color: #333; + margin-left: -1px; margin-top: -1px; + border-style: solid solid none solid; +} +input[name=topmenu]:checked + label + * + input + label { margin-left: -1px; } -/* == Top Panel == */ +.panel#search select { margin-right: .5em; } +.panel#search:after { + display: block; content: ''; + clear: both; +} -.panel.switchable.top { - position: absolute; - top: 0; +.panel#search, .panel#foot, +.panel.top, .panel.bottom { + display: block; + width: 100%; + margin: 0; + padding: .25em .5em; + background-color: #333; + border-width: 1px; + z-index: 1; } -body.playctl .panel#advfilter, -body.playctl .panel#morelinks, -body.playctl .panel#search { - margin-top: 1.25em; - border-top: 1px solid #FFF; +.panel#search, .panel.top { + border-style: none none solid none; + top: 2.75em; } +body.playctl .panel#search, +body.playctl .panel.top { top: 4em; } -.panel#search select { margin-right: .5em; } -/* == Bottom Panels == */ -.panel.bottom, -.panel#foot { +.panel#search, +.panel.top.switchable { position: absolute; min-height: 2.5em;} +.panel#foot, .panel.bottom { position: fixed; - bottom: 0px; + bottom: 0; border-style: solid none none none; } -/* == Switchable Panels == */ - .panel.switchable { - z-index: 1; + display: none; + max-height: 0; overflow: hidden; - min-height: 0; max-height: 0; - padding-top: 0; padding-bottom: 0; + margin: 0; padding: 0; + border-width: 0; } + +input[name=topmenu]:checked + label + .panel.switchable, .panel.switchable:target { - max-height: 100%; - overflow-y: scroll; + display: block; + max-height: 80%; + overflow-y: auto; + padding: .25em .5em; + border-width: 1px; + z-index: 2; } -.panel.switchable.top:target{ padding-bottom: 1em; } -.panel#search, -.panel#foot { - max-height: 100%; - z-index: 0; - padding: .25em .5em 0 .5em; - overflow: visible; +.panel#search > a, .panel#foot > a, +.panel.top > a, .panel.bottom > a{ + display: inline-block; + font-weight: bold; + text-decoration: none; + margin: .25em .5em 0 0; } -body.playctl .panel#search, -body.playctl .panel#foot { padding-right: .25em; } - - -/* == Panel Switches == */ - -.panel.switchable.bottom a.panel:last-of-type, -.panel.switchable.top a.panel:first-of-type { - display: block; - border-style: none none solid none; - border-width: 1px; +.panel.switchable.top a:first-of-type { + display: block; display: none; + margin-bottom: .5em; + border-bottom: 1px solid #FFF; } -.panel.switchable.bottom a.panel:last-of-type { - border-style: solid none none none; +.panel.switchable.bottom a:last-of-type { + display: block; margin-top: .5em; + border-top: 1px solid #FFF; } /* == Panel Elements == */ -.panel#advfilter .filter, -.panel#tagger .newtag, -.panel#tagger input[type=submit], -.panel#preferences > * { +.panel.switchable > fieldset, +.panel.switchable > input[type=submit] { + border: none; display: inline-block; vertical-align: top; margin-top: 1em; } +#tagger > fieldset { max-width: 48%;} +#tagger > fieldset.additional, +#tagger > fieldset.description { + max-width: 100%; +} /* == Advanced Filters == */ @@ -202,6 +228,10 @@ body.playctl .panel#foot { padding-right: .25em; } border-radius: .25em; padding: .25em .5em; } +#advfilter .filter .help { + display: block; + height: 0; overflow: hidden; +} #advfilter .filter .tabcontainer { position: relative; width: 16em; @@ -355,7 +385,9 @@ p.quicklinks input:checked + a { display: none;} width: 100%; } .panel#tagger input[type=submit], -.panel#tagger button { +.panel#tagger button, +.panel#preferences button, +.panel#preferences input[type=submit] { min-width: 10em; height: 3em; } @media (min-width: 460px){ @@ -415,10 +447,19 @@ form#advctl.playctl fieldset.volume { height: 4em; } form.playctl fieldset.volume button[name="amp"] {position: absolute; width: 50%; height: 4em; top: 0;} form.playctl fieldset.volume button[value="off"] {left:0;} form.playctl fieldset.volume button[value="on"] {right:0;} -form.playctl fieldset.volume button[name="vol"] {position: relative; display: inline-block; width: 4%;} -form.playctl fieldset.volume button[name="vol"].selected { background-color: #FA6;} -form.playctl fieldset.volume button[name="vol"][value="100"], -form.playctl fieldset.volume button[name="vol"][value="0"] { width: 4%;} +form.playctl fieldset.volume button[name="vol"] { + position: relative; display: inline-block; + width: 4%; + border: 1px solid black; border-right: none; +} +form.playctl fieldset.volume button[name="vol"].selected { width: 2%; background-color: #FA6;} +form.playctl fieldset.volume button[name="vol"].lselected, +form.playctl fieldset.volume button[name="vol"].gselected { width: 7.5%;} +form.playctl fieldset.volume button[name="vol"].llselected, +form.playctl fieldset.volume button[name="vol"].ggselected { width: 6.5%;} + +/*form.playctl fieldset.volume button[name="vol"][value="100"], + form.playctl fieldset.volume button[name="vol"][value="0"] { width: 4%;}*/ form.playctl fieldset.pasink button { width: 100%; height: 3em;} span.progress { @@ -440,3 +481,4 @@ span.progress > span { background-color: #333; min-width: 2em; } +