Local fonts.

This commit is contained in:
Kremitzl 2019-04-29 14:43:22 +02:00
parent 308d63230e
commit 94ce6b658e
20 changed files with 22 additions and 3 deletions

View File

@ -1,6 +1,5 @@
@charset "UTF-8"; @charset "UTF-8";
/* tame reveal.js */ /* tame reveal.js */
@import url("https://free.bboxtype.com/embedfonts/?family=FiraSans:300,600");
section { section {
min-height: 100vh; min-height: 100vh;
width: 100vw; width: 100vw;
@ -75,6 +74,16 @@ body {
box-shadow: 0.2em 0.2em 0.5em 0 rgba(0, 0, 0, 0.3); } box-shadow: 0.2em 0.2em 0.5em 0 rgba(0, 0, 0, 0.3); }
/* content layout */ /* content layout */
@font-face {
font-family: 'Fira Sans';
src: url("../../lib/font/fira-sans/FiraSans-Regular.ttf");
font-weight: 400; }
@font-face {
font-family: 'Fira Sans';
src: url("../../lib/font/fira-sans/FiraSans-Bold.ttf");
font-weight: 700; }
@font-face { @font-face {
font-family: 'Fira Code'; font-family: 'Fira Code';
src: url("../../lib/font/fira-code/FiraCode-Regular.otf"); src: url("../../lib/font/fira-code/FiraCode-Regular.otf");

View File

@ -110,7 +110,16 @@ body {
/* content layout */ /* content layout */
@import url('https://free.bboxtype.com/embedfonts/?family=FiraSans:300,600'); @font-face {
font-family: 'Fira Sans';
src: url('../../lib/font/fira-sans/FiraSans-Regular.ttf');
font-weight: 400;
}
@font-face {
font-family: 'Fira Sans';
src: url('../../lib/font/fira-sans/FiraSans-Bold.ttf');
font-weight: 700;
}
@font-face { @font-face {
font-family: 'Fira Code'; font-family: 'Fira Code';
src: url('../../lib/font/fira-code/FiraCode-Regular.otf'); src: url('../../lib/font/fira-code/FiraCode-Regular.otf');
@ -121,6 +130,7 @@ body {
src: url('../../lib/font/fira-code/FiraCode-Bold.otf'); src: url('../../lib/font/fira-code/FiraCode-Bold.otf');
font-weight: 700; font-weight: 700;
} }
body { body {
font-family: 'Fira Sans'; font-family: 'Fira Sans';
margin: 0; margin: 0;

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.