Use the Oswald Medium font for goal titles

The same way it's done in the official SDG icons. We're also using
uppercase with slightly smaller letter spacing for the same reason.

Even though we didn't do so in the past, we're moving the font to its
own folder inside the vendor folder and including the license file as
well in order to make it clear that these files do not follow the same
license CONSUL uses.
This commit is contained in:
Javi Martín
2020-12-26 15:46:41 +01:00
parent 1f82c62711
commit 46c6aa7f5f
8 changed files with 133 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
//
// 01. Source Sans Pro (https://www.google.com/fonts/specimen/Source+Sans+Pro)
// 02. Lato (https://www.google.com/fonts/specimen/Lato)
// 03. Oswald (https://fonts.google.com/specimen/Oswald)
//
// 01. Source Sans Pro
@@ -93,3 +94,34 @@
font-weight: bold;
font-style: normal;
}
// 03. Oswald
// - - - - - - - - - - - - - - - - - - - - - - - - -
@font-face {
font-family: "Oswald";
src: font-url("oswald/oswald-light.ttf") format("truetype");
font-weight: lighter;
font-style: normal;
}
@font-face {
font-family: "Oswald";
src: font-url("oswald/oswald-regular.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Oswald";
src: font-url("oswald/oswald-bold.ttf") format("truetype");
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: "Oswald";
src: font-url("oswald/oswald-medium.ttf") format("truetype");
font-weight: 500;
font-style: normal;
}

View File

@@ -26,6 +26,13 @@
}
}
h1 {
font-family: "Oswald" !important;
font-weight: 500;
letter-spacing: -1px;
text-transform: uppercase;
}
@each $code, $color in $sdg-colors {
&.sdg-goal-#{$code} > header {
background-color: $color;