From 04ce534fd37787ccdaba154aa4888c9d0e397a4a Mon Sep 17 00:00:00 2001 From: ebolam Date: Mon, 29 Aug 2022 10:37:37 -0400 Subject: [PATCH] Added game font size adjustment to themes --- static/koboldai.css | 2 +- themes/Darkness.css | 1 + themes/Material You.css | 1 + themes/Monochrome.css | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/static/koboldai.css b/static/koboldai.css index 8a69e5e0..b790b20b 100644 --- a/static/koboldai.css +++ b/static/koboldai.css @@ -1035,7 +1035,7 @@ body { margin-top: 10px; vertical-align: bottom; font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; - font-size: calc(14px + var(--font_size_adjustment)); + font-size: calc((1em*var(--game_screen_font_size_adjustment)) + var(--font_size_adjustment)); line-height: 1.42857143; } diff --git a/themes/Darkness.css b/themes/Darkness.css index 891481cc..260c5ca3 100644 --- a/themes/Darkness.css +++ b/themes/Darkness.css @@ -164,4 +164,5 @@ --story_pinned_areas: var(--story_pinned_areas_left); --story_pinned_area_widths: var(--story_pinned_area_widths_left); --font_size_adjustment: 0px; + --game_screen_font_size_adjustment: 1; } diff --git a/themes/Material You.css b/themes/Material You.css index f7799b0c..43a8a421 100644 --- a/themes/Material You.css +++ b/themes/Material You.css @@ -165,4 +165,5 @@ --story_pinned_areas: var(--story_pinned_areas_left); --story_pinned_area_widths: var(--story_pinned_area_widths_left); --font_size_adjustment: 0px; + --game_screen_font_size_adjustment: 1; } \ No newline at end of file diff --git a/themes/Monochrome.css b/themes/Monochrome.css index 3c05041e..3d9e7ac4 100644 --- a/themes/Monochrome.css +++ b/themes/Monochrome.css @@ -163,4 +163,5 @@ --story_pinned_areas: var(--story_pinned_areas_left); --story_pinned_area_widths: var(--story_pinned_area_widths_left); --font_size_adjustment: 0px; + --game_screen_font_size_adjustment: 1; }