From f0ab15e3e4326960c1e7426e891afada964d22ed Mon Sep 17 00:00:00 2001 From: William Date: Sun, 22 Jan 2023 12:42:45 +0100 Subject: [PATCH] Unify fonts or something --- public/static/style/fonts.css | 9 +++++++++ public/static/style/main.css | 4 ---- views/pages/willychat/index.php | 3 +++ views/pages/willychat/messages.php | 9 +++++---- views/templates/header.php | 1 + 5 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 public/static/style/fonts.css diff --git a/public/static/style/fonts.css b/public/static/style/fonts.css new file mode 100644 index 0000000..ec06126 --- /dev/null +++ b/public/static/style/fonts.css @@ -0,0 +1,9 @@ +body { + font-size: 1rem; + font-family: DejaVu Serif, Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; + line-height: 1.5; +} + +code, pre { + font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace; +} \ No newline at end of file diff --git a/public/static/style/main.css b/public/static/style/main.css index 2708257..1e14680 100644 --- a/public/static/style/main.css +++ b/public/static/style/main.css @@ -5,11 +5,8 @@ html, body { body { background-color: darkblue; background: url('../img/stars.png'); - font-size: 1rem; text-align: center; color: white; - line-height: 1.5; - font-family: serif; image-rendering: pixelated; } @@ -35,7 +32,6 @@ code { display: block; max-width: min-content; margin: auto; - font-family: monospace; background: black; color: greenyellow; padding: .75rem; diff --git a/views/pages/willychat/index.php b/views/pages/willychat/index.php index cd73b8f..db53fbb 100644 --- a/views/pages/willychat/index.php +++ b/views/pages/willychat/index.php @@ -16,6 +16,9 @@ display: flex; flex-flow: column; color: white; + font-size: 1rem; + font-family: Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; + } body .messages { flex: 1 1 auto; diff --git a/views/pages/willychat/messages.php b/views/pages/willychat/messages.php index 9a41574..090aebd 100644 --- a/views/pages/willychat/messages.php +++ b/views/pages/willychat/messages.php @@ -4,13 +4,14 @@ +
- says: + says:

diff --git a/views/templates/header.php b/views/templates/header.php index 0f33c0d..7fb5feb 100644 --- a/views/templates/header.php +++ b/views/templates/header.php @@ -13,6 +13,7 @@ function special_events(): string { <?=htmlspecialchars($title)?> - the Willy Club +