icon minification

This commit is contained in:
2023-07-06 16:19:49 +02:00
parent f1e15863ea
commit b6166c99fc
12 changed files with 287 additions and 51 deletions

View File

@@ -1,10 +1,8 @@
/* fallback */
@font-face {
font-family: "Material Symbols Rounded";
font-weight: 100 700;
font-style: normal;
src: url("@fontsource-variable/material-symbols-rounded/files/material-symbols-rounded-latin-full-normal.woff2")
format("woff2");
src: url("$lib/assets/icons.min.woff2") format("woff2");
}
.icon {

View File

@@ -1,5 +1,6 @@
/* noto-sans-mono-cyrillic-ext-wght-normal */
@font-face {
/* @font-face {
font-family: "Noto Sans Mono";
font-weight: 100 900;
font-style: normal;
@@ -8,10 +9,11 @@
src: url("@fontsource-variable/noto-sans-mono/files/noto-sans-mono-cyrillic-ext-wght-normal.woff2")
format("woff2-variations");
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
} */
/* noto-sans-mono-cyrillic-wght-normal */
@font-face {
/* @font-face {
font-family: "Noto Sans Mono";
font-weight: 100 900;
font-style: normal;
@@ -20,10 +22,11 @@
src: url("@fontsource-variable/noto-sans-mono/files/noto-sans-mono-cyrillic-wght-normal.woff2")
format("woff2-variations");
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
} */
/* noto-sans-mono-greek-ext-wght-normal */
@font-face {
/* @font-face {
font-family: "Noto Sans Mono Variable";
font-weight: 100 900;
font-style: normal;
@@ -32,10 +35,11 @@
src: url("@fontsource-variable/noto-sans-mono/files/noto-sans-mono-greek-ext-wght-normal.woff2")
format("woff2-variations");
unicode-range: U+1F00-1FFF;
}
} */
/* noto-sans-mono-greek-wght-normal */
@font-face {
/* @font-face {
font-family: "Noto Sans Mono";
font-weight: 100 900;
font-style: normal;
@@ -44,10 +48,11 @@
src: url("@fontsource-variable/noto-sans-mono/files/noto-sans-mono-greek-wght-normal.woff2")
format("woff2-variations");
unicode-range: U+0370-03FF;
}
} */
/* noto-sans-mono-vietnamese-wght-normal */
@font-face {
/* @font-face {
font-family: "Noto Sans Mono";
font-weight: 100 900;
font-style: normal;
@@ -57,7 +62,7 @@
format("woff2-variations");
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
} */
/* noto-sans-mono-latin-ext-wght-normal */
@font-face {

3
src/lib/icons.js Normal file
View File

@@ -0,0 +1,3 @@
export const Icon = {
close: 0xe5cd,
}

View File

@@ -31,9 +31,6 @@
border-radius: 32px;
}
.icon {
}
a {
display: flex;
gap: 4px;