X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Fcommon.css.sh;h=233e81d72d9cef61524657e75f600d6c86f688a9;hb=285b1ceecc1204178cec53870a109c901d6a3839;hp=0ae44a787e78d882943b5b8762c3d1ac8e746970;hpb=dcf73ef720f872f1d61834e9008641d3ec3d489a;p=serve0 diff --git a/templates/common.css.sh b/templates/common.css.sh index 0ae44a7..233e81d 100755 --- a/templates/common.css.sh +++ b/templates/common.css.sh @@ -1,4 +1,4 @@ -# Copyright 2014 Paul Hänsch +# Copyright 2014, 2015 Paul Hänsch # # This file is part of Serve0 # @@ -18,8 +18,10 @@ cat < * { + display: inline-block; + vertical-align: top; margin-top: 1em; } -.panel .quicklinks * { - display: block -} -.panel .filter { - vertical-align: top; - border: solid 1px; border-radius: .25em; + +/* == Advanced Filters == */ + +/* == Filter Boxes == */ +#advfilter .filter { + border: solid 1px #FFF; + border-radius: .25em; padding: .25em .5em; - margin: 0 0 1em 0; } -.panel > label.tabhandle { - display: inline-block; - text-align: right; - width: 4em; - margin-left: 4em; -} -.panel > .tabhandle + label { display: none; } -.panel > .tabhandle + label + .tabcontent { display: none; } -.panel > .tabhandle:checked + label.tabhandle + .tabcontent { display: inline-block; } -.panel > .tabhandle:checked + label.tabhandle + .tabcontent + .tabhandle + label{ display: inline-block; } -.panel > .tabhandle:checked + label.tabhandle + .tabcontent + .tabhandle:checked + label{ display: none; } - -.panel .filter .tabcontainer { +#advfilter .filter .tabcontainer { position: relative; width: 16em; + font-weight:normal; } -.panel .filter .category.tabhandle { +#advfilter .filter .tabcontainer input + .category.tabhandle { display: block; + width: 50%; } -.panel .filter input:checked + .category.tabhandle { +#advfilter .filter .tabcontainer input:checked + .category.tabhandle { background: #FFF; color: #000; } -.panel .filter .category.tabcontent { +#advfilter .filter .tabcontainer .category.tabcontent { position: absolute; top: 0; right: 0; - width: 10em; + width: 50%; height: 100%; min-height: 4em; + border: 2px #FFF solid; + border-radius: 0 .25em .25em 0; } -.panel .filter.final { +#advfilter > label.tabhandle { + text-align: right; + width: 4em; + margin-left: 4em; +} + +/* == Dynamic Appearance of Boxes == */ +.panel#advfilter > .tabhandle + label { display: none; } +.panel#advfilter > .tabhandle:checked + label + .tabcontent + .tabhandle + label { display: inline-block; } +.panel#advfilter > .tabhandle:checked + label + .tabcontent + .tabhandle:checked + label { display: none; } +.panel#advfilter > .tabhandle + label + .tabcontent { display: inline-block; + overflow: hidden; + max-width: 0; + max-height: 0; + padding: 0; + border: none; +} +.panel#advfilter > .tabhandle:checked + label + .tabcontent { + max-width: 100%; + max-height: 100%; + padding: .25em .5em; + border: solid 1px #FFF; +} + +#advfilter .filter.final { width: 16em; margin-left: 1em; } +#advfilter .quicklinks {max-width: 100%;} +#advfilter .quicklinks * { + display: block; + word-wrap: break-word; +} + + +/* == Thumblist == */ + #thumblist { width: 100%; padding: .5em 0 3em 0; @@ -159,34 +230,45 @@ a.clearsearch, a.advanced, a.tagger, .pagination_nav { width: 90%; padding: 0 .5em; margin: auto; + margin-bottom: .75em; vertical-align: top; word-wrap: break-word; } -@media (min-width: 480px){#thumblist .thumb{width: 50%;}} +@media (min-width: 480px){#thumblist .thumb{width: 49.5%;}} @media (min-width: 640px){#thumblist .thumb{width: 33%;}} @media (min-width: 1024px){#thumblist .thumb{width: 256px;}} #thumblist .thumb img { width: 100%; } +#thumblist .thumb h2 { + font-size: 1em; + font-weight: normal; + margin: 0; +} #thumblist .thumb a { display: block; } -#thumblist .thumb a.fake-mp4 { - margin-top: .5em; -} #thumblist .thumb a.alt { display: inline-block; margin-top: .3em; } +#thumblist input { + margin: .75em .5em; +} -.footer { - position: fixed; - min-height: 2em; - bottom: 0px; - border-style: solid none none none; +.panel#tagger .newtag select, +.panel#tagger .newtag .label{ + display: block; + width: 10em; } +.panel#preferences > fieldset { + border: solid 1px; + border-radius: .25em; +} +.panel#preferences > input { display: block; } + #videoview a.panel { position: absolute; right: 1em; @@ -202,14 +284,13 @@ a.clearsearch, a.advanced, a.tagger, .pagination_nav { display: block; } #videoview .videoinfo { - display: inline-block; width: 39%; margin-top: 2em; } #videoview .videoinfo h2 { display: inline; } -#videoview .videoinfo a.meta:after { +#videoview .videoinfo .meta:after { content: "\A"; white-space: pre; }