Updating css for new fonts

This commit is contained in:
2020-06-02 04:24:12 +01:00
parent 1417a623ef
commit 304770ed50
4 changed files with 134 additions and 7 deletions

View File

@@ -17,14 +17,19 @@ $light: $white;
$dark: $gray-900; $dark: $gray-900;
$headings-color: $gray-900; $headings-color: $gray-900;
// $headings-font-family: 'Open Sans', sans-serif; // $headings-font-family: 'Open Sans', sans-serif;
$headings-font-family: "RNSSanz", sans-serif; $headings-font-family: "Rotunda", sans-serif;
$headings-font-weight: 400; $headings-font-weight: 600;
// $font-family-sans-serif: 'Roboto', sans-serif; // $font-family-sans-serif: 'Roboto', sans-serif;
$font-family-sans-serif: "RNSSanz", sans-serif; $font-family-sans-serif: "Rotunda", sans-serif;
$font-family-monospace: "BergenMono", monospace; $font-family-monospace: "Realtime", monospace;
$font-family-serif: "Roboto Slab", serif; $font-family-serif: "Roboto Slab", serif;
$font-weight-normal: 400;
$font-weight-base: 400;
$code-font-size: 100%;
$link-color: $gray-800; $link-color: $gray-800;
$link-decoration: underline; $link-decoration: underline;

View File

@@ -1,3 +1,5 @@
// RNSSanz
@font-face { @font-face {
font-family: "RNSSanz"; font-family: "RNSSanz";
src: url("../../src/fonts/RNSSanz/RNSSanz-Light.ttf"); src: url("../../src/fonts/RNSSanz/RNSSanz-Light.ttf");
@@ -7,7 +9,7 @@
@font-face { @font-face {
font-family: "RNSSanz"; font-family: "RNSSanz";
src: url("../../src/fonts/RNSSanz/RNSSanz-Medium.ttf"); src: url("../../src/fonts/RNSSanz/RNSSanz-Normal.ttf");
font-display: swap; font-display: swap;
} }
@@ -46,6 +48,8 @@
font-display: swap; font-display: swap;
} }
// BergenMono
@font-face { @font-face {
font-family: "BergenMono"; font-family: "BergenMono";
src: url("../../src/fonts/BergenMono/BergenMono-Regular.otf"); src: url("../../src/fonts/BergenMono/BergenMono-Regular.otf");
@@ -58,3 +62,118 @@
font-weight: 700; font-weight: 700;
font-display: swap; font-display: swap;
} }
// Liber
@font-face {
font-family: "Liber";
src: url("../../src/fonts/Liber/normal/LiberGrotesqueFamily-Light.ttf");
font-weight: 300;
font-display: swap;
}
@font-face {
font-family: "Liber";
src: url("../../src/fonts/Liber/normal/LiberGrotesqueFamily-Regular.ttf");
font-display: swap;
}
@font-face {
font-family: "Liber";
src: url("../../src/fonts/Liber/normal/LiberGrotesqueFamily-News.ttf");
font-weight: 500;
font-display: swap;
}
@font-face {
font-family: "Liber";
src: url("../../src/fonts/Liber/normal/LiberGrotesqueFamily-SemiBold.ttf");
font-weight: 600;
font-display: swap;
}
@font-face {
font-family: "Liber";
src: url("../../src/fonts/Liber/normal/LiberGrotesqueFamily-Bold.ttf");
font-weight: 700;
font-display: swap;
}
@font-face {
font-family: "Liber";
src: url("../../src/fonts/Liber/normal/LiberGrotesqueFamily-ExtBd.ttf");
font-weight: 800;
font-display: swap;
}
@font-face {
font-family: "Liber";
src: url("../../src/fonts/Liber/normal/LiberGrotesqueFamily-Black.ttf");
font-weight: 900;
font-display: swap;
}
// Rotunda
@font-face {
font-family: "Rotunda";
src: url("../../src/fonts/Rotunda/normal/Rotunda-Light.otf");
font-weight: 300;
font-display: swap;
}
@font-face {
font-family: "Rotunda";
src: url("../../src/fonts/Rotunda/normal/Rotunda-Regular.otf");
font-display: swap;
}
@font-face {
font-family: "Rotunda";
src: url("../../src/fonts/Rotunda/normal/Rotunda-Medium.otf");
font-weight: 500;
font-display: swap;
}
@font-face {
font-family: "Rotunda";
src: url("../../src/fonts/Rotunda/normal/Rotunda-Bold.otf");
font-weight: 700;
font-display: swap;
}
@font-face {
font-family: "Rotunda";
src: url("../../src/fonts/Rotunda/normal/Rotunda-ExtraBold.otf");
font-weight: 800;
font-display: swap;
}
@font-face {
font-family: "Rotunda";
src: url("../../src/fonts/Rotunda/normal/Rotunda-Black.otf");
font-weight: 900;
font-display: swap;
}
// Realtime
@font-face {
font-family: "Realtime";
src: url("../../src/fonts/Realtime/Realtime.ttf");
font-display: swap;
}
@font-face {
font-family: "Realtime";
src: url("../../src/fonts/Realtime/Realtime\ Semibold.ttf");
font-weight: 600;
font-display: swap;
}
@font-face {
font-family: "Realtime";
src: url("../../src/fonts/Realtime/Realtime\ Bold.ttf");
font-weight: 700;
font-display: swap;
}

View File

@@ -23,10 +23,12 @@ code {
background-color: $gray-100; background-color: $gray-100;
border-radius: $border-radius-sm; border-radius: $border-radius-sm;
padding: .125rem .2rem; padding: .125rem .2rem;
font-weight: 700;
} }
code[class*=language-], pre[class*=language-] { code[class*=language-], pre[class*=language-] {
font-family: "BergenMono" !important; font-family: $font-family-monospace !important;
font-weight: 600;
color: red; color: red;
@include font-size($code-font-size); @include font-size($code-font-size);
} }
@@ -92,7 +94,7 @@ footer a:not(.icons) {
} }
img.front-background { img.front-background {
opacity: 5% !important; opacity: 0.05;
display: block; display: block;
width: 100%; width: 100%;
height: 100%; height: 100%;

View File

@@ -1,5 +1,6 @@
@import "_variables"; @import "_variables";
@import "~bootstrap/scss/bootstrap"; @import "~bootstrap/scss/bootstrap";
@import "~aos/dist/aos.css";
@import "panaetius-theme"; @import "panaetius-theme";
@import "sticky-footer"; @import "sticky-footer";
@import "search"; @import "search";