From 903db548db931caca9fefc8afd6e0a1059a2fd39 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 21 Jan 2024 20:29:38 +0100 Subject: Improve CSS rules. --- style.css | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'style.css') diff --git a/style.css b/style.css index aff1fc8..3377f44 100644 --- a/style.css +++ b/style.css @@ -253,6 +253,8 @@ html, body { } #modal-info { pointer-events: auto; + -webkit-user-select: text; + -moz-user-select: text; user-select: text; } @@ -305,21 +307,30 @@ html, body { } .popover { - --bs-popover-header-padding-x: .5rem; + --bs-popover-header-padding-x: .75rem; --bs-popover-header-padding-y: .5rem; - --bs-popover-body-padding-x: .25rem; - --bs-popover-body-padding-y: .25rem; + --bs-popover-body-padding-x: .45rem; + --bs-popover-body-padding-y: .5rem; --bs-popover-header-bg: var(--bs-popover-bg); --bs-popover-zindex: 1000; --bs-popover-max-width: 450px; width: var(--bs-popover-max-width); + pointer-events: auto; +} +.popover-header { + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; } .popover-body { - max-height: 1024px; + -webkit-user-select: text; + -moz-user-select: text; + user-select: text; + max-height: 40vh; overflow: auto auto; } .popover-body h6, .popover-body h5 { - margin-bottom: var(--bs-popover-body-padding-y); + margin-bottom: .25rem; margin-left: calc(var(--bs-popover-header-padding-x) - var(--bs-popover-body-padding-x)); margin-right: calc(var(--bs-popover-header-padding-x) - var(--bs-popover-body-padding-x)); } @@ -330,11 +341,11 @@ html, body { } .popover-body table > tbody > tr > td:first-child { font-style: italic; - white-space: nowrap; + width: 9.75em; padding-right: .75em; } .popover-body table > tbody > tr > td { - padding: 0.1rem var(--bs-popover-body-padding-x); + padding: 0.1rem 0.3rem; } /* inspired from bootstrap's .btn-close */ @@ -360,9 +371,6 @@ html, body { } .popover-header .popover-button:disabled, .popover-header .popover-button.disabled { pointer-events: none; - -webkit-user-select: none; - -moz-user-select: none; - user-select: none; opacity: .25; } -- cgit v1.2.3