From 98699818dbe7d2c3f962c00c71b382d7abec3370 Mon Sep 17 00:00:00 2001 From: Arkerthan <arkerthan@gmail.com> Date: Sun, 27 Dec 2020 20:27:55 +0100 Subject: [PATCH] Move corporation styles in CSS module --- css/corporation/corporation.css | 39 ++++++++++++++++++++++++++++++++ src/gui/css/mainStyleSheet.css | 32 -------------------------- src/pregmod/cloningWorkaround.tw | 12 +++++----- 3 files changed, 45 insertions(+), 38 deletions(-) create mode 100644 css/corporation/corporation.css diff --git a/css/corporation/corporation.css b/css/corporation/corporation.css new file mode 100644 index 00000000000..2c6e9535020 --- /dev/null +++ b/css/corporation/corporation.css @@ -0,0 +1,39 @@ +.founding { + font-size: 0.8em; + margin-top: -0.8em; + margin-left: 0.5em; + font-style: italic; +} + +table.corporate { + border: 3px darkgreen double; + border-collapse: collapse; + min-width: 33%; +} + +table.corporate tbody tr:nth-child(even) { + background-color: rgb(0, 30, 0); +} + +table.corporate tbody tr:nth-child(odd) { + background-color: rgb(15, 40, 15); +} + +table.corporate td { + vertical-align: top; +} + +table.corporate tbody th, table.corporate thead th { + background-color: black; + font-weight: bold; +} + +.minor-note { + font-size: 0.75em; + font-style: italic; +} + +.majorText { + margin-top: 0.5em; + margin-bottom: 1.5em; +} diff --git a/src/gui/css/mainStyleSheet.css b/src/gui/css/mainStyleSheet.css index 8bd4d8908e8..e7c21e220d6 100644 --- a/src/gui/css/mainStyleSheet.css +++ b/src/gui/css/mainStyleSheet.css @@ -59,38 +59,6 @@ h1, h2, h3 { margin-bottom: 0; margin-top: 0.25em; } -.founding { - font-size: 0.8em; - margin-top: -0.8em; - margin-left: 0.5em; - font-style: italic; -} -table.corporate { - border: 3px darkgreen double; - border-collapse: collapse; - min-width: 33%; -} -table.corporate tbody tr:nth-child(even) { - background-color: rgb(0, 30, 0); -} -table.corporate tbody tr:nth-child(odd) { - background-color: rgb(15, 40, 15); -} -table.corporate td { - vertical-align: top; -} -table.corporate tbody th, table.corporate thead th { - background-color: black; - font-weight: bold; -} -.minor-note { - font-size: 0.75em; - font-style: italic; -} -.majorText { - margin-top: 0.5em; - margin-bottom: 1.5em; -} .tab { margin-left: 2em; } diff --git a/src/pregmod/cloningWorkaround.tw b/src/pregmod/cloningWorkaround.tw index 8be5b548e3c..b4456a8f035 100644 --- a/src/pregmod/cloningWorkaround.tw +++ b/src/pregmod/cloningWorkaround.tw @@ -8,7 +8,7 @@ <div class="note">Blank ovum prepared, please select genetic source and surrogate.</div> <div>Chosen source: _impreg</div> -<div class="majorText"> +<p> [[Yourself|Cloning Workaround][$donatrix = $PC]] <<for _cw = 0; _cw < $slaves.length; _cw++>> <<capture _cw>> @@ -20,10 +20,10 @@ <</if>> <</capture>> <</for>> -</div> +</p> <h2>Surrogate</h2> <div>Chosen surrogate: _receive</div> -<div class="majorText"> +<p> <<for _cw1 = 0; _cw1 < $slaves.length; _cw1++>> <<capture _cw1>> <<if ($slaves[_cw1].ovaries > 0 || $slaves[_cw1].mpreg > 0) && isSlaveAvailable($slaves[_cw1]) && $slaves[_cw1].preg >= 0 && $slaves[_cw1].preg < 4 && $slaves[_cw1].pregWeek >= 0 && $slaves[_cw1].pubertyXX == 1 && $slaves[_cw1].pregType < 12 && $slaves[_cw1].bellyImplant == -1 && $slaves[_cw1].broodmother == 0 && $slaves[_cw1].inflation <= 2 && $slaves[_cw1].physicalAge < 70>> @@ -52,9 +52,9 @@ <</if>> </div> <</if>> -</div> +</p> <h2>Implantation</h2> -<div class="majorText"> +<p> <<if _impreg != "Undecided" && _receive != "Undecided">> _impreg will be cloned and _receive shall act as the incubator. [[Implant clone ovum|Surrogacy][cashX(forceNeg($surgeryCost*2), "slaveSurgery"), $surgeryType = "clone"]] @@ -65,4 +65,4 @@ _receive shall act as the incubator. //Please select a genetic source// <<else>> //Please select a genetic source and surrogate// <</if>> -</div> +</p> -- GitLab