forked from gitbot/hugo-book
Changing default font to Ubuntu
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;
|
||||||
}
|
}
|
||||||
|
|
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.
Loading…
Reference in New Issue