diff --git a/src/lib/components/CollapsibleSection.svelte b/src/lib/components/CollapsibleSection.svelte index cb701e5..b6bfa66 100644 --- a/src/lib/components/CollapsibleSection.svelte +++ b/src/lib/components/CollapsibleSection.svelte @@ -23,21 +23,25 @@ diff --git a/src/lib/components/Filterable.svelte b/src/lib/components/Filterable.svelte index fd311f8..2e2d61a 100644 --- a/src/lib/components/Filterable.svelte +++ b/src/lib/components/Filterable.svelte @@ -122,7 +122,7 @@ grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));*/ } .filter { - font-size: 80%; + font-size: 80%; width: 80px; height: auto; border: 1px #aaa solid; @@ -141,6 +141,43 @@ } .active { background-color: lightblue; - border-color: blue; + /*border-color: blue;*/ + } + + /* instance-specific styles */ + .filter { + font-size: 80%; + margin-right: 0.5em; + line-height: 2.5; + padding: 6px 8px; + border-radius: 10px; + white-space: nowrap; + word-break: normal; + box-shadow: 3px 3px 3px #6a6d6a; + } + .filter:hover { box-shadow: 4px 4px 3px #727372;} + .filter.categories.active { + background-color: #9aa34d; + color: #fff; + } + .filter.analogues.active { + background-color: #a34b62; + color: #fff; + } + .filter.licenses.active { + background-color: #6498a3; + color: #fff; + } + .filter.statuses.active { + background-color: #a369a2; + color: #fff; + } + .filter.affiliates.active { + background-color: #fff; + color: #000; + } + .filter.hosts.active { + background-color: #fff; + color: #000; } diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 84fc96f..57d11e7 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -10,7 +10,8 @@ import { setFilter, getFilter } from '$lib/components/filter.js'; import Filterable from '$lib/components/Filterable.svelte'; // collapsible sections - import CollapsibleSection from '$lib/components/CollapsibleSection.svelte' + import CollapsibleSection from '$lib/components/CollapsibleSection.svelte'; + import Tile from '$lib/components/Tile.svelte'; //console.log('colours: ', colours); @@ -350,45 +351,45 @@