From 653eaa798fff0061816df7fd5992b945528911e9 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Fri, 11 Sep 2020 09:47:43 +0200 Subject: KB56 Add Rochester font, use for the login name. Change-Id: Iada14b30e17e1c006939009c423593bde6c3799e --- src/main/resources/META-INF/resources/cms2/base.css | 4 +++- .../META-INF/resources/cms2/fonts/rochester.css | 6 ++++++ .../cms2/fonts/rochester/Rochester-Regular.ttf | Bin 0 -> 35972 bytes src/main/resources/templates/tags/navbar.html | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 src/main/resources/META-INF/resources/cms2/fonts/rochester.css create mode 100644 src/main/resources/META-INF/resources/cms2/fonts/rochester/Rochester-Regular.ttf (limited to 'src/main/resources') diff --git a/src/main/resources/META-INF/resources/cms2/base.css b/src/main/resources/META-INF/resources/cms2/base.css index 06873d5..d532e94 100644 --- a/src/main/resources/META-INF/resources/cms2/base.css +++ b/src/main/resources/META-INF/resources/cms2/base.css @@ -13,6 +13,7 @@ @import "../web_modules/sanitize.css/typography.css"; /* */ +@import "./fonts/rochester.css"; @import "./fonts/source.css"; @viewport { @@ -146,7 +147,8 @@ body > nav li[data-site-section="About"], body > nav li[data-site-section="Login .login-name { font-style: normal; - font-family: cursive; + font-size: larger; + font-family: Rochester, cursive; } body > main { diff --git a/src/main/resources/META-INF/resources/cms2/fonts/rochester.css b/src/main/resources/META-INF/resources/cms2/fonts/rochester.css new file mode 100644 index 0000000..272e915 --- /dev/null +++ b/src/main/resources/META-INF/resources/cms2/fonts/rochester.css @@ -0,0 +1,6 @@ +@font-face { + font-family: 'Rochester'; + font-style: normal; + font-weight: 400; + src: local('Rochester'), local('Rochester-Regular'), url(rochester/Rochester-Regular.ttf) format('truetype'), url(https://matthias.benkard.de/cms2/fonts/rochester/Rochester-Regular.ttf) format('truetype'); +} diff --git a/src/main/resources/META-INF/resources/cms2/fonts/rochester/Rochester-Regular.ttf b/src/main/resources/META-INF/resources/cms2/fonts/rochester/Rochester-Regular.ttf new file mode 100644 index 0000000..8816dbd Binary files /dev/null and b/src/main/resources/META-INF/resources/cms2/fonts/rochester/Rochester-Regular.ttf differ diff --git a/src/main/resources/templates/tags/navbar.html b/src/main/resources/templates/tags/navbar.html index 4774576..e6be2d5 100644 --- a/src/main/resources/templates/tags/navbar.html +++ b/src/main/resources/templates/tags/navbar.html @@ -13,7 +13,7 @@ {#if inject:LoginStatus.loggedIn}
  • - +
  • {#else}
  • -- cgit v1.2.3