X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=static%2Fcategories.css;fp=static%2Fcategories.css;h=6b855ab8d9e5f0c8a3fc73124ed6f49ed6446dc2;hp=0000000000000000000000000000000000000000;hb=bea66ef5029455845cd3fc66252b8b0aad4cd053;hpb=31e822c91021f8848238337a67fcf364f9135aad diff --git a/static/categories.css b/static/categories.css new file mode 100644 index 0000000..6b855ab --- /dev/null +++ b/static/categories.css @@ -0,0 +1,95 @@ +/* +# Copyright 2014, 2015 Paul Hänsch +# +# This file is part of Confetti. +# +# Confetti is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Confetti is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with Confetti. If not, see . +*/ + +form.categories { + display: block; + border: solid 1px; + border-radius: 4px 4px 0 0; + margin: .5em 2em .25em 2em; + padding: 0 2ex .5em 2ex; + background: #EFF; +} + +form.categories h1 { + display: block; + font-weight: bold; + font-size: 1.25em; + border-style: none none solid none; + border-radius: 4px 4px 0 0; + border-width: 1px; + margin: 0 -1.625ex .5em -1.625ex; + padding: .125em 1ex; + background: #EEF; +} + +form.categories ul { margin: 0; padding: 0; } +form.categories ul li { + display: inline-block; + margin: 0 .25ex; + padding: .125em .25ex .125em 1ex; + border: 1px solid black; + background-color: #EEF; +} +form.categories ul li button { + margin: 0 0 0 1ex; + background-color: #FCC; + border: 1px solid black; + min-width: 3ex; + text-align: center; +} +form.categories ul li:last-of-type { padding: .125em .25ex .125em .25ex; } +form.categories ul li:last-of-type button { background-color: #FFF; } + +form.namelist { + display: block; + margin: 1em 2em; + padding: 0; +} +form.namelist > fieldset { + display: block; + border: solid 1px; + border-radius: 4px 4px 0 0; + margin: 0; padding: .25em 2ex; + background: #EFF; + text-align: right; +} +form.namelist > fieldset:last-of-type { + border-radius: 0 0 4px 4px; +} +ul.namelist { margin: 0; padding: 0;} +ul.namelist > li { + display: block; + border: solid 1px; + margin: -1px 0; + background: #FFF; +} +ul.namelist > li:nth-of-type(2n){ background: #EEE;} + +ul.namelist h2 { + font-size: 1em; + display: inline-block; + margin: 0; + padding: 0 1ex; + min-width: 30ex; +} +ul.namelist ul { margin: 0; padding: 0; display: inline-block;} +ul.namelist ul li { + display: inline-block; + margin: 0 1ex 0 0; +}