Unify fonts or something

This commit is contained in:
William 2023-01-22 12:42:45 +01:00
parent 8a0135ac54
commit f0ab15e3e4
5 changed files with 18 additions and 8 deletions

View File

@ -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;
}

View File

@ -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;

View File

@ -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;

View File

@ -4,13 +4,14 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?=url('/static/style/fonts.css')?>">
</head>
<body>
<style>
div {
border: 1px solid silver;
margin-bottom: 8px;
padding: 8px;
margin-bottom: .5rem;
padding: .5rem;
background: rgba(0, 0, 0, 0.75);
color: white;
}
@ -19,13 +20,13 @@
}
div > p {
margin: 0;
margin-top: 8px;
margin-top: .5rem;
}
</style>
<?php foreach($messages as $message): ?>
<div>
<small><?=gmdate("D M j G:i:s Y", $message['date']);?> <?=htmlspecialchars($message['nick'])?> says:</small>
<small><?=gmdate("D M j G:i:s Y", $message['date']);?> <span style="color: yellow"><?=htmlspecialchars($message['nick'])?></span> says:</small>
<p><?=htmlspecialchars($message['text'])?></p>
</div>
<?php endforeach; ?>

View File

@ -13,6 +13,7 @@ function special_events(): string {
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?=htmlspecialchars($title)?> - the Willy Club</title>
<link rel="stylesheet" href="<?=url('/static/style/fonts.css')?>">
<link rel="stylesheet" href="<?=url('/static/style/main.css')?>">
<link rel="shortcut icon" href="<?=url('/static/img/3d-spinning-toilet-smiley-emoticon-small.gif')?>" type="image/x-icon">
</head>