From f1346d6ad684e8e843afd51bfe38e474f7d48508 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 10 Feb 2021 13:55:25 +0100 Subject: [PATCH] simplify css --- cards/list.sh | 4 +- cards/widgets.sh | 8 ++-- courses/list.sh | 8 ++-- index.cgi | 1 + style.css | 120 ++--------------------------------------------- 5 files changed, 15 insertions(+), 126 deletions(-) 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, -- 2.39.2