xP: produce a custom font for IRC formatting

Given that the generated file needs a manual adjustment,
its small size, and the dependencies involved,
it will be checked in to the repository.
This commit is contained in:
2022-09-22 18:57:14 +02:00
parent 4a2740313c
commit e6bf88673f
5 changed files with 102 additions and 3 deletions

BIN
xP/public/ircfmt.woff2 Normal file

Binary file not shown.

View File

@@ -1,7 +1,14 @@
@font-face {
src: url('ircfmt.woff2') format('woff2');
font-family: 'IRC Formatting';
font-weight: normal;
font-style: normal;
}
body {
margin: 0;
padding: 0;
font-family: sans-serif;
/* Firefox only renders C0 within the textarea, why? */
font-family: 'IRC Formatting', sans-serif;
font-size: clamp(0.5rem, 2vw, 1rem);
}
.xP {
@@ -133,7 +140,7 @@ button:hover:active {
font-family: monospace;
overflow-y: auto;
}
.log, .content {
.log, .content, .completions {
/* Note: https://bugs.chromium.org/p/chromium/issues/detail?id=1261435 */
white-space: break-spaces;
overflow-wrap: break-word;