Selaa lähdekoodia

add font handling 2

Sviluppo_Carrello_Immagini
Lorenzo Pollutri 1 kuukausi sitten
vanhempi
commit
e33047ade5
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. +2
    -2
      app/globals.css
  2. +1
    -1
      app/layout.tsx

+ 2
- 2
app/globals.css Näytä tiedosto

@@ -8,7 +8,7 @@
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--font-sans: var(--font-geist-sans);
--font-sans: var(--font-portal, var(--font-geist-sans));
--font-mono: var(--font-geist-mono);
}

@@ -22,7 +22,7 @@
body {
background: var(--background);
color: var(--foreground);
font-family: Arial, Helvetica, sans-serif;
font-family: var(--font-portal, Arial, Helvetica, sans-serif);
}

/* Force native form controls to inherit the page font (Firefox/Chromium use the OS UI font for <option> otherwise). */


+ 1
- 1
app/layout.tsx Näytä tiedosto

@@ -74,7 +74,7 @@ export default async function RootLayout({
italicFile ? faceBlock(italicFile, 400, 'italic') : '',
boldFile ? faceBlock(boldFile, 700, 'normal') : '',
boldItalicFile ? faceBlock(boldItalicFile, 700, 'italic') : '',
`\nbody { font-family: 'PortalFont', Arial, Helvetica, sans-serif; }\n`,
`\n:root { --font-portal: 'PortalFont', Arial, Helvetica, sans-serif; }\n`,
].join('');
}



Ladataan…
Peruuta
Tallenna