Commit 8e97c0c1 authored by Tobias Bengfort's avatar Tobias Bengfort
Browse files

consistent ordering of filter-all

parent 9794bbad
......@@ -291,23 +291,23 @@ a.card:hover {
#filter-all:checked ~ .tiles [data-category="full game"] {
display: inherit !important;
}
#filter-all:not(:checked) ~ #filters [for="filter-all"],
#filter-full-game:not(:checked) ~ #filters [for="filter-full-game"],
#filter-jam:not(:checked) ~ #filters [for="filter-jam"],
#filter-all:not(:checked) ~ #filters [for="filter-all"],
#filter-prototype:not(:checked) ~ #filters [for="filter-prototype"] {
opacity: 0.7;
background-color: var(--brand) !important;
}
#filter-all:checked ~ #filters [for="filter-all"],
#filter-full-game:checked ~ #filters [for="filter-full-game"],
#filter-jam:checked ~ #filters [for="filter-jam"],
#filter-all:checked ~ #filters [for="filter-all"],
#filter-prototype:checked ~ #filters [for="filter-prototype"] {
background-color: var(--brand-off) !important;
color: var(--dark)
}
#filter-all:focus-visible ~ #filters [for="filter-all"],
#filter-full-game:focus-visible ~ #filters [for="filter-full-game"],
#filter-jam:focus-visible ~ #filters [for="filter-jam"],
#filter-all:focus-visible ~ #filters [for="filter-all"],
#filter-prototype:focus-visible ~ #filters [for="filter-prototype"] {
outline: 2px dotted var(--body-fg);
}
......
......@@ -3,10 +3,10 @@
{{ end }}
{{ define "main" }}
<input type="radio" form="filters" name="game-filter" class="visually-hidden" id="filter-all" checked>
<input type="radio" form="filters" name="game-filter" class="visually-hidden" id="filter-full-game">
<input type="radio" form="filters" name="game-filter" class="visually-hidden" id="filter-jam">
<input type="radio" form="filters" name="game-filter" class="visually-hidden" id="filter-prototype">
<input type="radio" form="filters" name="game-filter" class="visually-hidden" id="filter-all" checked>
<form id="filters" aria-label="Filters" class="text-center mt-2">
<label for="filter-all" class="btn bg-brand-off">All</label>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment