From 763d21dc09ea1ae5bf7bda03763386039de396a9 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 18 Apr 2021 19:34:00 +0200 Subject: edit game rules working (still some inline css) --- styles/gameSettings.css | 59 +++++++++++++++++++++++++++++++++++++++++++++++++ styles/ui.css | 10 +++++++++ 2 files changed, 69 insertions(+) create mode 100644 styles/gameSettings.css (limited to 'styles') diff --git a/styles/gameSettings.css b/styles/gameSettings.css new file mode 100644 index 0000000..533cea0 --- /dev/null +++ b/styles/gameSettings.css @@ -0,0 +1,59 @@ +.editGameSettings { + height: 80px; + overflow: visible; + z-index: 1; +} + +.editGameSettings .currentRules { + top: 50%; + transform: translateY(-50%); +} + +.editGameSettings > .button { + width: 150px; + top: 50%; + transform: translateY(-50%); + text-align: left; +} + +.editGameSettings > .button .icon { + font-size: 48px; +} + +.editGameSettings > .button .text { + right: var(--spacing-medium); + width: 85px; + top: 50%; + vertical-align: middle; + transform: translateY(-50%); +} + +.editGameSettings .editableRules { + margin-top: var(--spacing-large); + max-height: 500px; + overflow-y: scroll; +} + +.editGameSettings .editableRules .editableRulesSection { + width: 100%; + background-color: var(--gray-700); + margin: 0; + margin-bottom: var(--spacing-medium); +} + +.editGameSettings .button { + line-height: normal; +} + +.editGameSettings .editableRules .editableRulesSection .timeControls { + margin: var(--spacing-medium); + margin-left: 0; + margin-right: 0; +} + +.editGameSettings .editableRules .editableRulesSection .timeControls input { + background-color: var(--background); + + width: calc(100% - 2 * var(--spacing-medium)); +} + diff --git a/styles/ui.css b/styles/ui.css index efc96b7..55b24e2 100644 --- a/styles/ui.css +++ b/styles/ui.css @@ -70,3 +70,13 @@ width: 392px; } +.dialogbox > .title { + margin-bottom: var(--spacing-large); +} + +.dialogbox .icon.close { + top: 25px; + right: 25px; + cursor: pointer; +} + -- cgit v1.2.3