Unify fonts or something
This commit is contained in:
parent
8a0135ac54
commit
f0ab15e3e4
9
public/static/style/fonts.css
Normal file
9
public/static/style/fonts.css
Normal 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;
|
||||
}
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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; ?>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user