feat(icons): add SVG icons for various categories including health, education, and politics
This commit is contained in:
@@ -40,8 +40,8 @@
|
||||
<div class="quick-access">
|
||||
<template v-for="[key, menuItem] in falukantQuickAccessChildren" :key="menuItem.id || key" >
|
||||
<img
|
||||
:src="'/images/icons/falukant/shortmap/' + key + '.png'"
|
||||
class="menu-icon"
|
||||
:src="'/images/icons/falukant/shortmap/' + key + '.svg'"
|
||||
class="menu-icon menu-icon--quick-access"
|
||||
@click="openPage(menuItem.path)"
|
||||
:title="$t(`navigation.m-falukant.${key}`)"
|
||||
/>
|
||||
@@ -152,7 +152,7 @@ export default {
|
||||
// Lade alle Schnellzugriffs-Bilder vor, damit sie gecacht werden
|
||||
this.falukantQuickAccessChildren.forEach(([key]) => {
|
||||
const img = new Image();
|
||||
img.src = `/images/icons/falukant/shortmap/${key}.png`;
|
||||
img.src = `/images/icons/falukant/shortmap/${key}.svg`;
|
||||
});
|
||||
|
||||
// Lade auch andere häufig verwendete Bilder vor
|
||||
@@ -462,6 +462,18 @@ export default {
|
||||
padding: 4px 2px 0 0;
|
||||
}
|
||||
|
||||
.menu-icon--quick-access {
|
||||
padding: 2px;
|
||||
border-radius: 6px;
|
||||
transition: background-color 140ms ease, filter 140ms ease, transform 140ms ease;
|
||||
}
|
||||
|
||||
.menu-icon--quick-access:hover {
|
||||
background: rgba(154, 113, 54, 0.12);
|
||||
filter: drop-shadow(0 1px 1px rgba(41, 54, 46, 0.16));
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.relationship-icon {
|
||||
max-width: 24px;
|
||||
max-height: 24px;
|
||||
|
||||
Reference in New Issue
Block a user