forked from gitbot/hugo-book
Changing default font to Ubuntu
This commit is contained in:
parent
9e9c7d3403
commit
57c7d0ad65
@ -1,3 +1,7 @@
|
|||||||
/* You can add custom styles here. */
|
/* You can add custom styles here. */
|
||||||
|
|
||||||
// @import "plugins/numbered";
|
// @import "plugins/numbered";
|
||||||
|
|
||||||
|
//Uncomment the following if local fonts will not load
|
||||||
|
//@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
|
||||||
|
//@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
|
@ -38,12 +38,88 @@
|
|||||||
src: local('Roboto Mono'), local('RobotoMono-Regular'),
|
src: local('Roboto Mono'), local('RobotoMono-Regular'),
|
||||||
url('fonts/roboto-mono-v6-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
|
url('fonts/roboto-mono-v6-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
|
||||||
url('fonts/roboto-mono-v6-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
url('fonts/roboto-mono-v6-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||||
|
|
||||||
|
|
||||||
|
/* UBUNTU; LOADED BY SOPER */
|
||||||
|
/* Regular */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
src: url('fonts/Ubuntu-Bold.woff2') format('woff2'),
|
||||||
|
url('fonts/Ubuntu-Bold.woff') format('woff');
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: normal;
|
||||||
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
src: url('fonts/Ubuntu-Italic.woff2') format('woff2'),
|
||||||
|
url('fonts/Ubuntu-Italic.woff') format('woff');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: italic;
|
||||||
|
font-display: swap;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
src: url('fonts/Ubuntu-BoldItalic.woff2') format('woff2'),
|
||||||
|
url('fonts/Ubuntu-BoldItalic.woff') format('woff');
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: italic;
|
||||||
|
font-display: swap;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
src: url('fonts/Ubuntu.woff2') format('woff2'),
|
||||||
|
url('fonts/Ubuntu.woff') format('woff');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
font-display: swap;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Mono */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu Mono';
|
||||||
|
src: url('fonts/UbuntuMono-Bold.woff2') format('woff2'),
|
||||||
|
url('fonts/UbuntuMono-Bold.woff') format('woff');
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: normal;
|
||||||
|
font-display: swap;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu Mono';
|
||||||
|
src: url('fonts/UbuntuMono-BoldItalic.woff2') format('woff2'),
|
||||||
|
url('fonts/UbuntuMono-BoldItalic.woff') format('woff');
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: italic;
|
||||||
|
font-display: swap;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu Mono';
|
||||||
|
src: url('fonts/UbuntuMono-Regular.woff2') format('woff2'),
|
||||||
|
url('fonts/UbuntuMono-Regular.woff') format('woff');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
font-display: swap;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu Mono';
|
||||||
|
src: url('fonts/UbuntuMono-Italic.woff2') format('woff2'),
|
||||||
|
url('fonts/UbuntuMono-Italic.woff') format('woff');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: italic;
|
||||||
|
font-display: swap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'Roboto', sans-serif;
|
font-family: 'Ubuntu', 'Roboto', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
font-family: 'Roboto Mono', monospace;
|
font-family: 'Ubuntu Mono', 'Roboto Mono', monospace;
|
||||||
}
|
}
|
||||||
|
BIN
static/fonts/Ubuntu-Bold.woff
Normal file
BIN
static/fonts/Ubuntu-Bold.woff
Normal file
Binary file not shown.
BIN
static/fonts/Ubuntu-Bold.woff2
Normal file
BIN
static/fonts/Ubuntu-Bold.woff2
Normal file
Binary file not shown.
BIN
static/fonts/Ubuntu-BoldItalic.woff
Normal file
BIN
static/fonts/Ubuntu-BoldItalic.woff
Normal file
Binary file not shown.
BIN
static/fonts/Ubuntu-BoldItalic.woff2
Normal file
BIN
static/fonts/Ubuntu-BoldItalic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/Ubuntu-Italic.woff
Normal file
BIN
static/fonts/Ubuntu-Italic.woff
Normal file
Binary file not shown.
BIN
static/fonts/Ubuntu-Italic.woff2
Normal file
BIN
static/fonts/Ubuntu-Italic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/Ubuntu.woff
Normal file
BIN
static/fonts/Ubuntu.woff
Normal file
Binary file not shown.
BIN
static/fonts/Ubuntu.woff2
Normal file
BIN
static/fonts/Ubuntu.woff2
Normal file
Binary file not shown.
BIN
static/fonts/UbuntuMono-Bold.woff
Normal file
BIN
static/fonts/UbuntuMono-Bold.woff
Normal file
Binary file not shown.
BIN
static/fonts/UbuntuMono-Bold.woff2
Normal file
BIN
static/fonts/UbuntuMono-Bold.woff2
Normal file
Binary file not shown.
BIN
static/fonts/UbuntuMono-BoldItalic.woff
Normal file
BIN
static/fonts/UbuntuMono-BoldItalic.woff
Normal file
Binary file not shown.
BIN
static/fonts/UbuntuMono-BoldItalic.woff2
Normal file
BIN
static/fonts/UbuntuMono-BoldItalic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/UbuntuMono-Italic.woff
Normal file
BIN
static/fonts/UbuntuMono-Italic.woff
Normal file
Binary file not shown.
BIN
static/fonts/UbuntuMono-Italic.woff2
Normal file
BIN
static/fonts/UbuntuMono-Italic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/UbuntuMono-Regular.woff
Normal file
BIN
static/fonts/UbuntuMono-Regular.woff
Normal file
Binary file not shown.
BIN
static/fonts/UbuntuMono-Regular.woff2
Normal file
BIN
static/fonts/UbuntuMono-Regular.woff2
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user