From 665d25ca4424793430cde2ecd3ce9dbac0a5b4b0 Mon Sep 17 00:00:00 2001 From: Tobias P Date: Wed, 20 Sep 2023 22:13:39 +0200 Subject: [PATCH] fixed a bug where a more actions dropdown would not center under its parent divs anymore; also the cursor now changes to pointer when hovering over a table cell which opens the edit modal --- src/css/sr2ini.scss | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/css/sr2ini.scss b/src/css/sr2ini.scss index e1580d6..b1f11e7 100644 --- a/src/css/sr2ini.scss +++ b/src/css/sr2ini.scss @@ -167,8 +167,6 @@ body { margin: .2rem; } -//button { font-family: Electrolize; } - .container { padding: .2rem; position: relative; @@ -315,6 +313,10 @@ header.navbar { } } + .combatant-name:hover, + .combatant-ini:hover, + .combatant-dice-and-rea:hover { cursor: pointer; } + .combatant-name { padding-left: .6rem !important; text-align: left; @@ -378,6 +380,11 @@ header.navbar { top: .3rem; } +.damage-dropdown, +.actions-dropdown { + position: relative; // required for the dropdowns' absolute position to relate to +} + .damage-monitor, .actions-menu { @include aug; @@ -387,7 +394,8 @@ header.navbar { --aug-border-opacity: .75; padding-top: .7rem; padding-bottom: .7rem; - position: absolute; + position: absolute; + top: calc(100% + .12rem); z-index: 200; // center element horizontally w/ respect to parent