Update to Material Symbols and switch to class names for icons

The switch to class names is for accessibility. Class names are not translated by browser translation plugins and not read by screen readers.
This commit is contained in:
Pixeldrain-Server committed 2026-11-09 20:26:23 +01:00
1 parent 672a19f8f6
commit 5788f5a8b4
71 files changed
+403 -266

No files matched your search

+12 -21
View File
@@ -94,31 +94,22 @@ body {
accent-color: var(--accent_color);
}
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
font-display: block;
src: local('Material Icons'),
local('MaterialIcons-Regular'),
url(/res/misc/MaterialIcons.woff2) format('woff2');
}
/* Material Symbols, used like <i class="icon i_delete"></i>. The i_ classes
are generated into icons.css by svelte/icons.js. The glyph is a mask on a
pseudo element so backgrounds and padding on the icon itself still work */
.icon {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 1.5em;
display: inline-block;
line-height: 1em;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
text-rendering: optimizeLegibility;
vertical-align: middle;
font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.icon::before {
content: "";
display: block;
width: 1em;
height: 1em;
background-color: currentColor;
-webkit-mask: var(--icon) center / contain no-repeat;
mask: var(--icon) center / contain no-repeat;
}
.icon_unicode {