From 0fbfcbe17dbe4e4960006a6a3de0cfc5c86300b5 Mon Sep 17 00:00:00 2001 From: somebody Date: Sun, 1 Jan 2023 15:55:49 -0600 Subject: [PATCH] Better cross-browser styling for WI item type The WI item type styling for Chrome is now (as far as I can tell) 1:1 with Firefox. This means there is actually now typing feedback!!! --- static/koboldai.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/koboldai.css b/static/koboldai.css index aac1ee67..5c0e4d40 100644 --- a/static/koboldai.css +++ b/static/koboldai.css @@ -1110,12 +1110,20 @@ td.server_vars { .world_info_item_type { /* Workaround for Firefox bug: https://stackoverflow.com/a/42283543 */ padding: 1px; + padding-bottom: 0px; + display: inline-block; + height: 2.8ex; + cursor: text; outline: none; border-bottom: 1px solid gray; transition: color 200ms, border-bottom-color 200ms; } +.world_info_item_type::before { + opacity: 0.3 !important; +} + .world_info_item_type.bad-input { color: rgb(255, 103, 103); border-bottom-color: red;