mirror of
https://github.com/immich-app/immich.git
synced 2024-12-29 15:11:58 +00:00
feat(web): new fonts (#5165)
* feat(web): new fonts * remove old fonts and make default font size larger * fine tunning
This commit is contained in:
parent
c1239a7337
commit
f5d73b0499
10 changed files with 15 additions and 6 deletions
|
@ -23,11 +23,18 @@
|
||||||
--immich-dark-warning: 245 124 0;
|
--immich-dark-warning: 245 124 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Overpass';
|
||||||
|
src: url('$lib/assets/fonts/overpass/Overpass.ttf') format('truetype-variations');
|
||||||
|
font-weight: 1 999;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Work Sans';
|
font-family: 'Overpass Mono';
|
||||||
src: url('$lib/assets/fonts/WorkSans-VariableFont_wght.ttf') format('truetype-variations');
|
src: url('$lib/assets/fonts/overpass/OverpassMono.ttf') format('truetype-variations');
|
||||||
font-weight: 1 999;
|
font-weight: 1 999;
|
||||||
|
font-style: monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
|
@ -36,7 +43,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
font-family: 'Work Sans', sans-serif;
|
font-family: 'Overpass', sans-serif;
|
||||||
/* Used by layouts to ensure proper spacing between navbar and content */
|
/* Used by layouts to ensure proper spacing between navbar and content */
|
||||||
--navbar-height: calc(theme(spacing.18) + 4px);
|
--navbar-height: calc(theme(spacing.18) + 4px);
|
||||||
}
|
}
|
||||||
|
@ -44,6 +51,7 @@
|
||||||
html {
|
html {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
font-size: 17px;
|
||||||
}
|
}
|
||||||
|
|
||||||
html::-webkit-scrollbar {
|
html::-webkit-scrollbar {
|
||||||
|
|
Binary file not shown.
Binary file not shown.
BIN
web/src/lib/assets/fonts/overpass/Overpass-Italic.ttf
Normal file
BIN
web/src/lib/assets/fonts/overpass/Overpass-Italic.ttf
Normal file
Binary file not shown.
BIN
web/src/lib/assets/fonts/overpass/Overpass.ttf
Normal file
BIN
web/src/lib/assets/fonts/overpass/Overpass.ttf
Normal file
Binary file not shown.
BIN
web/src/lib/assets/fonts/overpass/OverpassMono.ttf
Normal file
BIN
web/src/lib/assets/fonts/overpass/OverpassMono.ttf
Normal file
Binary file not shown.
|
@ -134,7 +134,7 @@
|
||||||
{#if segment.hasLabel}
|
{#if segment.hasLabel}
|
||||||
<div
|
<div
|
||||||
aria-label={segment.timeGroup + ' ' + segment.count}
|
aria-label={segment.timeGroup + ' ' + segment.count}
|
||||||
class="absolute right-0 bottom-0 z-10 pr-5 text-xs font-medium dark:text-immich-dark-fg font-mono"
|
class="absolute right-0 bottom-0 z-10 pr-5 text-xs dark:text-immich-dark-fg font-immich-mono font-semibold"
|
||||||
>
|
>
|
||||||
{segment.date.year}
|
{segment.date.year}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -118,7 +118,7 @@
|
||||||
<p class="text-immich-fg dark:text-immich-dark-fg">
|
<p class="text-immich-fg dark:text-immich-dark-fg">
|
||||||
{partner.user.name}
|
{partner.user.name}
|
||||||
</p>
|
</p>
|
||||||
<p class="text-xs text-immich-fg/75 dark:text-immich-dark-fg/75">
|
<p class="text-sm text-immich-fg/75 dark:text-immich-dark-fg/75">
|
||||||
{partner.user.email}
|
{partner.user.email}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
$: {
|
$: {
|
||||||
if (innerWidth && screenSize) {
|
if (innerWidth && screenSize) {
|
||||||
// Set the number of faces according to the screen size and the div size
|
// Set the number of faces according to the screen size and the div size
|
||||||
MAX_ITEMS = screenSize < 768 ? Math.floor(innerWidth / 96) : Math.floor(innerWidth / 112);
|
MAX_ITEMS = screenSize < 768 ? Math.floor(innerWidth / 96) : Math.floor(innerWidth / 120);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -25,6 +25,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
'immich-title': ['Snowburst One', 'cursive'],
|
'immich-title': ['Snowburst One', 'cursive'],
|
||||||
|
'immich-mono': ['Overpass Mono', 'monospace'],
|
||||||
},
|
},
|
||||||
spacing: {
|
spacing: {
|
||||||
18: '4.5rem',
|
18: '4.5rem',
|
||||||
|
|
Loading…
Reference in a new issue