From f04e8e917f425fd6e17840e3fbcf11d6422e836a Mon Sep 17 00:00:00 2001 From: ch0ccyra1n Date: Sat, 31 Dec 2022 22:04:03 -0600 Subject: [PATCH] use system fonts instead of hard-coding them --- static/css/style.css | 74 +++++++------------------------------------- 1 file changed, 11 insertions(+), 63 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 5a7966f..5d1583a 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -115,7 +115,6 @@ footer { /* For header.html */ #nav { background-color: #F14B25; - font-family: 'Remingtoned Type'; } #nav-button { @@ -125,7 +124,7 @@ footer { } #nav-button:hover { - background-color: #DB691A; + transform: translateY(-2px); } /* For author.html */ @@ -148,74 +147,23 @@ footer { max-width: 60px; height: auto; } - -/* Fonts */ -/* Remingtoned Type - latin */ -@font-face { - font-family: 'Remingtoned Type'; - font-style: normal; - font-weight: 400; - font-display: swap; - src: local(''), - url('fonts/remingtonedtype.ttf'); - } - /* Liberation Sans - latin */ - @font-face { - font-family: 'Liberation Sans'; - font-style: normal; - font-weight: 400; - font-display: swap; - src: local(''), - url('fonts/LiberationSans-Regular.ttf'); - } - /* Liberation Mono - latin */ - @font-face { - font-family: 'Liberation Mono'; - font-style: normal; - font-weight: 400; - font-display: swap; - src: local(''), - url('fonts/LiberationMono-Regular.ttf'); - } - /* OpenDyslexic - latin */ - @font-face { - font-family: 'OpenDyslexic'; - font-style: normal; - font-weight: 400; - font-display: swap; - src: local(''), - url('fonts/OpenDyslexic-Regular.otf') format('opentype'); - } - - h1, h2, h3 { - font-family: 'Remingtoned Type'; - } - - body, p, h4, h5, tr, td { - font-family: 'Liberation Sans'; - } - - p { +p { font-size: 16pt; - } +} - body { +body { font-size: 14pt; - } +} - nav { +nav { font-size: 20pt; - } - - pre, code { - font-family: 'Liberation Mono', monospace; - } +} /* For Content Warnings */ - label { +label { display: none; - } +} - #cw:checked + label { +#cw:checked + label { display: block; - } \ No newline at end of file +} \ No newline at end of file