X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Fcommon.css.sh;h=adf78cda75d66ba7cabd06f78535e7a01d88b8a7;hb=f53385198b80cd7df7ad7a11f4f77bfe2f69cf50;hp=0747d0890390510d576647174bbe2d8839e62976;hpb=c107b42c61b01b9deef58e8d40ac642fc3d94d08;p=serve0 diff --git a/templates/common.css.sh b/templates/common.css.sh index 0747d08..adf78cd 100755 --- a/templates/common.css.sh +++ b/templates/common.css.sh @@ -1,4 +1,4 @@ -# Copyright 2014, 2015 Paul Hänsch +# Copyright 2014 - 2016 Paul Hänsch # # This file is part of Serve0 # @@ -18,8 +18,10 @@ cat < * { display: inline-block; vertical-align: top; margin-top: 1em; } + +/* == Advanced Filters == */ + +/* == Filter Boxes == */ #advfilter .filter { border: solid 1px #FFF; border-radius: .25em; padding: .25em .5em; } -#advfilter > label.tabhandle { - text-align: right; - width: 4em; - margin-left: 4em; -} -#advfilter > .tabhandle + label { display: none; } -#advfilter > .tabhandle + label + .tabcontent { display: none; } -#advfilter > .tabhandle:checked + label + .tabcontent { display: inline-block; } -#advfilter > .tabhandle:checked + label + .tabcontent + .tabhandle + label{ display: inline-block; } -#advfilter > .tabhandle:checked + label + .tabcontent + .tabhandle:checked + label{ display: none; } - #advfilter .filter .tabcontainer { position: relative; width: 16em; + font-weight:normal; } -#advfilter .filter .category.tabhandle { display: block; } -#advfilter .filter input:checked + .category.tabhandle { +#advfilter .filter .tabcontainer input + .category.tabhandle { + display: block; + width: 50%; +} +#advfilter .filter .tabcontainer input:checked + .category.tabhandle { background: #FFF; color: #000; } -#advfilter .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; +} + +#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 { @@ -147,6 +215,8 @@ a.clearsearch, a.show, .pagination_nav { word-wrap: break-word; } +/* == Thumblist == */ + #thumblist { width: 100%; padding: .5em 0 3em 0; @@ -158,14 +228,14 @@ a.clearsearch, a.show, .pagination_nav { text-align: left; width: 90%; padding: 0 .5em; - margin: auto; + margin: .5%; margin-bottom: .75em; vertical-align: top; word-wrap: break-word; } -@media (min-width: 480px){#thumblist .thumb{width: 50%;}} -@media (min-width: 640px){#thumblist .thumb{width: 33%;}} -@media (min-width: 1024px){#thumblist .thumb{width: 256px;}} +@media (min-width: 460px){#thumblist .thumb{width: 48%;}} +@media (min-width: 620px){#thumblist .thumb{width: 32%;}} +@media (min-width: 1004px){#thumblist .thumb{width: 250px; margin: 2px;}} #thumblist .thumb img { width: 100%; @@ -186,56 +256,47 @@ a.clearsearch, a.show, .pagination_nav { margin: .75em .5em; } -#preferences { display: none; } -#preferences:target { display: block; z-index: 1; } +/* == Filelist == */ -#tagger { display: none; } -#tagger:target { - display: block; - z-index: 1; +#thumblist .file { + color: #000; + display: inline-block; + text-align: left; + width: 90%; + padding: .5em .5em; + margin: .5%; + margin-bottom: .75em; + vertical-align: top; + word-wrap: break-word; } +@media (min-width: 460px){#thumblist .file{width: 48%;}} +@media (min-width: 620px){#thumblist .file{width: 32%;}} +@media (min-width: 1004px){#thumblist .file{width: 250px; margin: 2px;}} -#tagger .newtag select, -#tagger .newtag .label{ +#thumblist .file.directory { background-color: #BBD; } +#thumblist .file.plain { background-color: #111; color: #777; } +#thumblist .file.video { background-color: #DBB; } + +.panel#tagger .newtag select, +.panel#tagger .newtag .label{ display: block; width: 10em; } -#videoview a.panel { - position: absolute; - right: 1em; - width: auto; - border: none; +.panel#preferences > fieldset { + border: solid 1px; + border-radius: .25em; } -#videoview .video { +.panel#preferences > input { display: block; } + +#videoview h1, #videoview > a { display: inline-block; - width: 60%; - vertical-align: top; -} -#videoview .video * { - display: block; -} -#videoview .videoinfo { - width: 39%; - margin-top: 2em; -} -#videoview .videoinfo h2 { - display: inline; -} -#videoview .videoinfo .meta:after { - content: "\A"; - white-space: pre; + margin-right: 1em; } -#videoview .videoinfo .label { +#videoview video { display: block; - margin-top: 1em; -} -#videoview .videoinfo .info.description { - display: block; - background-color: #DDF; -} -#videoview .videoinfo .edit { - width: 100% + margin: 0; + width: 100%; } EOF