aboutsummaryrefslogtreecommitdiff
path: root/xP/public
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-22 18:57:14 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-22 20:18:55 +0200
commite6bf88673f31e62050333f98d6bcd407ac34c13d (patch)
tree87be39858a8356fb9bd919839224ba70e111f151 /xP/public
parent4a2740313c7cfe6bd334ce46d1deb7ccca9d2068 (diff)
downloadxK-e6bf88673f31e62050333f98d6bcd407ac34c13d.tar.gz
xK-e6bf88673f31e62050333f98d6bcd407ac34c13d.tar.xz
xK-e6bf88673f31e62050333f98d6bcd407ac34c13d.zip
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.
Diffstat (limited to 'xP/public')
-rw-r--r--xP/public/ircfmt.woff2bin0 -> 1240 bytes
-rw-r--r--xP/public/xP.css11
2 files changed, 9 insertions, 2 deletions
diff --git a/xP/public/ircfmt.woff2 b/xP/public/ircfmt.woff2
new file mode 100644
index 0000000..d4262bc
--- /dev/null
+++ b/xP/public/ircfmt.woff2
Binary files differ
diff --git a/xP/public/xP.css b/xP/public/xP.css
index 87cfec2..1f4dae8 100644
--- a/xP/public/xP.css
+++ b/xP/public/xP.css
@@ -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;