From 664fe27df368ed95782f958a26dc4d46da5ae275 Mon Sep 17 00:00:00 2001 From: Arkerthan <arkerthan@gmail.com> Date: Wed, 20 May 2020 11:56:51 +0200 Subject: [PATCH] compact sidebar by removing space between major elements --- src/002-config/modSC.css | 17 +++++++++++++++++ src/gui/storyCaption.tw | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 src/002-config/modSC.css diff --git a/src/002-config/modSC.css b/src/002-config/modSC.css new file mode 100644 index 00000000000..b09893b63ac --- /dev/null +++ b/src/002-config/modSC.css @@ -0,0 +1,17 @@ +/* change some SC2 styles */ + +/* make the sidebar more compact by reducing the space between major parts */ +#ui-bar-body { + /* height: calc(100% - 2.5em); */ + /* margin: 2.5em 0; */ + height: calc(100% - 1.5em); + margin: 1.5em 0; +} +#ui-bar-body > :not(:first-child) { + /* margin-top: 2em; */ + margin-top: 1.5em; +} +#story-author { + /* margin-top: 2em; */ + margin-top: 0; +} diff --git a/src/gui/storyCaption.tw b/src/gui/storyCaption.tw index 183667292fb..5cd011b0d0b 100644 --- a/src/gui/storyCaption.tw +++ b/src/gui/storyCaption.tw @@ -2,7 +2,7 @@ <<set _Pass = passage()>> -<<if $ui != "start">> <<userButton>> <br> <</if>> +<<if $ui != "start">><p><<userButton>></p><</if>> <<if $ui != "start">> <<if $cheatMode || $debugMode>> -- GitLab