diff options
author | Ruben <11096153+r10e@users.noreply.github.com> | 2020-07-04 09:58:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-04 09:58:20 +0300 |
commit | 7b57070c632a115e2f603742546dc1b6aef5504e (patch) | |
tree | 6453bedb3e0fcac96a2f5c380675602cc12b5cc1 | |
parent | 55683ec08b8ddc2971d8cf0bebe361e803cca926 (diff) |
css: change font paths to relative
If the base site is on "username.github.io/some-repo/", the "some-repo"
path will be ignored by the font urls.
Co-authored-by: Ruben Straube <ruben.straube@tngtech.com>
-rw-r--r-- | static/hugo-theme-console/css/console.css | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/static/hugo-theme-console/css/console.css b/static/hugo-theme-console/css/console.css index 8888002..144f5f8 100644 --- a/static/hugo-theme-console/css/console.css +++ b/static/hugo-theme-console/css/console.css @@ -1,6 +1,6 @@ @font-face { font-family: 'Roboto Mono'; - src: url('/hugo-theme-console/font/RobotoMono-Regular.ttf') format('truetype'); + src: url('../font/RobotoMono-Regular.ttf') format('truetype'); font-style: normal; font-weight: 400; text-rendering: optimizeLegibility; @@ -8,7 +8,7 @@ @font-face { font-family: 'Roboto Mono'; - src: url('/hugo-theme-console/font/RobotoMono-Italic.ttf') format('truetype'); + src: url('../font/RobotoMono-Italic.ttf') format('truetype'); font-style: italic; font-weight: 400; text-rendering: optimizeLegibility; @@ -16,7 +16,7 @@ @font-face { font-family: 'Roboto Mono'; - src: url('/hugo-theme-console/font/RobotoMono-Bold.ttf') format('truetype'); + src: url('../font/RobotoMono-Bold.ttf') format('truetype'); font-style: normal; font-weight: 700; text-rendering: optimizeLegibility; @@ -24,7 +24,7 @@ @font-face { font-family: 'Roboto Mono'; - src: url('/hugo-theme-console/font/RobotoMono-BoldItalic.ttf') format('truetype'); + src: url('../font/RobotoMono-BoldItalic.ttf') format('truetype'); font-style: italic; font-weight: 700; text-rendering: optimizeLegibility; @@ -48,7 +48,7 @@ --global-line-height: 1.6em; --page-width: 70em; } -} +} .sidebar-heading { @@ -221,13 +221,13 @@ figure { overflow: hidden; display: inline-block; } - + .terminal-nav { align-items: flex-start; flex-direction: column; display: flex; } - + .terminal-menu ul { align-items: flex-start; display: flex; @@ -235,15 +235,15 @@ figure { justify-content: left; margin-top: 0; } - + .terminal-menu li { margin-right: 20px; } - + .logo { padding: calc(var(--global-space) * 1) 0 calc(var(--global-space) * 1); } - + figure { margin-top: 5px; margin-bottom: 5px; @@ -257,11 +257,11 @@ figure { top: 0; margin-top: 21px; } - + .post h1 { padding-top: 0; } - + .posts-list .date { display: inline-block; position: absolute; @@ -273,10 +273,10 @@ figure { padding-top: 3px; display: none; } - + .footer { margin-top: 50px; padding-top: 5px;; } -}
\ No newline at end of file +} |