From 595b2001595a38a39d714d26586bdfee7f67148d Mon Sep 17 00:00:00 2001 From: SavageSpiel <92274791+SavageSpiel@users.noreply.github.com> Date: Sun, 23 Apr 2023 16:17:08 +0100 Subject: [PATCH] Dark mode label fixes and roll template Set label colours so dark mode doesn't make them invisible. Added a roll template and styling. --- Liminal/liminal.css | 92 +++++++++++++++++++++++++++++++++++++++++++- Liminal/liminal.html | 71 +++++++++++++++++++++------------- 2 files changed, 134 insertions(+), 29 deletions(-) diff --git a/Liminal/liminal.css b/Liminal/liminal.css index 9d29558a8d..9e43f1bfc8 100644 --- a/Liminal/liminal.css +++ b/Liminal/liminal.css @@ -1,14 +1,12 @@ /* Set the min-width so that when the window is resized the look will stay consistant */ .charsheet { - /*background-color: #8bb;*/ background-color:#9EBFBB; background-size: cover; width:825px; min-width:825px; min-height:400px; margin:0; - /*background-image: url('https://d1vzi28wh99zvq.cloudfront.net/images/4329/267203.jpg');*/ } /* Universal styling applied to all elements of these types */ @@ -54,6 +52,10 @@ "traits traits traits other other other" } +.charsheet .sheet-character label { + color:#333; +} + /* BASIC INFO */ .sheet-basicinfo { @@ -108,6 +110,7 @@ margin-top:-5px; font-weight: bold; font-size:1em; + max-width: 105px; } .sheet-skills input { display: inline-block; @@ -291,6 +294,10 @@ textarea { width:720px; } +.charsheet .sheet-crew label { + color:#333; +} + .sheet-crew-relationships h3 { padding-right:14px; } @@ -324,3 +331,84 @@ textarea { .sheet-crew-relationships textarea { height:60px; } + + +.charsheet .sheet-mods label { + color:#333; +} + + +/* ROLL TEMPLATE */ +.sheet-rolltemplate-liminal { + margin-left: -37px; +} +.withoutavatars .sheet-rolltemplate-liminal { + margin-left: -7px; +} + +.sheet-rolltemplate-liminal .sheet-container { + border: 1px solid; + /* by default, the border is the same color as the header. You can change this here, e.g. to black */ + border-color: var(--header-bg-color); +} + +/* Header formatting - title and subtitle */ +.sheet-rolltemplate-liminal .sheet-header { + background-color: #277F84; + /* change text-align to center to center the header text */ + text-align: left; + color: white; + padding: 5px; +} +.sheet-rolltemplate-liminal .sheet-title { + font-size:1.1em; +} +.sheet-rolltemplate-liminal .sheet-subtitle { + font-size:.9em; +} + + +/* Allprops part */ +.sheet-rolltemplate-liminal .sheet-content { + display: grid; + background: #FFF; + /* Header formatting - modify the column layout below */ + grid-template-columns: auto auto; + /* Line height to match default roll template */ + line-height:1.4em; +} +.sheet-rolltemplate-liminal .sheet-content > div { + padding: 5px; +} + +/* Left column */ +.sheet-rolltemplate-liminal .sheet-content .sheet-key { + font-weight: bold; + padding-right: 10px; + text-align: right; +} + +/* Empty rule, use this if you want to change the right column +.sheet-rolltemplate-liminal .sheet-value { +} +*/ + +/* Make even-numbered rows grey */ +.sheet-rolltemplate-liminal .sheet-content :nth-child(4n+3), +.sheet-rolltemplate-liminal .sheet-content :nth-child(4n) { + background:#EEE; +} + +/* Description field */ +.sheet-rolltemplate-liminal .sheet-desc { + grid-column: span 2; + padding: 5px; + text-align: center; +} + +/* set the inline roll result so it doesn't look awful in dark mode */ +.sheet-rolltemplate-liminal .sheet-container .inlinerollresult { + background-color:#DAE7E5; + border: 1px solid #333; + color:#black; +} diff --git a/Liminal/liminal.html b/Liminal/liminal.html index 5e68f30371..7766243faf 100644 --- a/Liminal/liminal.html +++ b/Liminal/liminal.html @@ -28,25 +28,25 @@