From: Paul Hänsch Date: Wed, 10 Feb 2021 12:55:25 +0000 (+0100) Subject: simplify css X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=f1346d6ad684e8e843afd51bfe38e474f7d48508;p=confetti simplify css --- diff --git a/cards/list.sh b/cards/list.sh index 9f1e1d8..5bfffbf 100755 --- a/cards/list.sh +++ b/cards/list.sh @@ -99,8 +99,8 @@ print_card(){ $(card_item "$card" CATEGORIES) ] [div .control - [a .item href="/cards/edit_card.sh?card=${cardfile##*/}" $(l10n edit)] - [a .item href="/cards/export_card.sh?card=${cardfile##*/}" $(l10n vcf_export)] + [a .button .item href="/cards/edit_card.sh?card=${cardfile##*/}" $(l10n edit)] + [a .button .item href="/cards/export_card.sh?card=${cardfile##*/}" $(l10n vcf_export)] ] ] EOF diff --git a/cards/widgets.sh b/cards/widgets.sh index 61a6938..09956a7 100755 --- a/cards/widgets.sh +++ b/cards/widgets.sh @@ -39,12 +39,12 @@ cat < h1 { display: none; } form.filter fieldset { margin-top: .5em; } form.filter fieldset.item + fieldset.item legend { display: none; } -form.filter fieldset.item input[type=radio] { display: none; } -form.filter fieldset.item input[type=radio] + label { - display: table-cell; - padding: .5em 1em; - background-color: #EEE; - border-style: solid; - border-width: .5pt .25pt 0 .25pt; - white-space: normal; -} -form.filter fieldset.item input[type=radio] + label:first-of-type { - border-left: 1pt solid; -} -form.filter fieldset.item input[type=radio]:checked + label { - position: relative; - background-color: #FFF; - box-shadow: .125em -.125em .125em #888; - z-index: 1; -} -form.filter fieldset.item input[type=text], -form.filter fieldset.item fieldset.courses, -form.filter fieldset.item fieldset.categories { - position: relative; - display: block; - width: 100%; - margin-top: -1pt; - padding: .25em .75em; - border: 1pt solid; - box-shadow: .125em .125em .25em #888; -} -form.filter fieldset.item fieldset.courses, -form.filter fieldset.item fieldset.categories { display: none; } + +form.filter fieldset.item input[value=course] ~ input[type=text], +form.filter fieldset.item input[value=CATEGORIES] ~ input[type=text] { display: block; } form.filter fieldset.item input[value=course]:checked ~ input[type=text], form.filter fieldset.item input[value=CATEGORIES]:checked ~ input[type=text] { display: none; } form.filter fieldset.item input[value=course]:checked ~ fieldset.courses,