1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

Base font family improvements (#2020)

This commit is contained in:
Paweł Kuna
2024-12-31 16:15:44 +01:00
committed by GitHub
parent c51ff28475
commit faee63c847
4 changed files with 7 additions and 8 deletions

View File

@@ -0,0 +1,5 @@
---
"@tabler/core": patch
---
Improve base font family loading

View File

@@ -33,12 +33,6 @@
<style>
@import url('https://rsms.me/inter/inter.css');
:root {
--tblr-font-sans-serif: 'Inter Var', -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif;
}
body {
font-feature-settings: "cv03", "cv04", "cv11";
}
</style>
</head>

View File

@@ -24,7 +24,7 @@ $font-local: null !default;
$font-icons: () !default;
/* prettier-ignore */
$font-family-sans-serif: unquote("#{if($font-local, "#{$font-local}, ", ' ')}#{if($font-google, "#{$font-google}, ", ' ')}") -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif !default;
$font-family-sans-serif: unquote("#{if($font-local, "#{$font-local}, ", ' ')}#{if($font-google, "#{$font-google}, ", ' ')}") 'Inter Var', Inter, -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif !default;
/* prettier-ignore */
$font-family-monospace: unquote("#{if($font-google-monospaced, "#{$font-google-monospaced}, ", '')}") Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
$font-family-serif: "Georgia", "Times New Roman", times, serif !default;

View File

@@ -3,7 +3,7 @@ body {
letter-spacing: $body-letter-spacing;
touch-action: manipulation;
text-rendering: optimizeLegibility;
font-feature-settings: "liga" 0;
font-feature-settings: "liga" 0, "cv03", "cv04", "cv11";
position: relative;
min-height: 100%;
height: 100%;