From ed3d81ce623bb767b529a0547c237bfce3b2435c Mon Sep 17 00:00:00 2001 From: baiyongjie <407221377@qq.com> Date: Thu, 18 May 2023 16:41:07 +0800 Subject: [PATCH] normalize tooltip style --- src/public/stylesheets/style.css | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index 90970b2c0..01ba2eb1f 100644 --- a/src/public/stylesheets/style.css +++ b/src/public/stylesheets/style.css @@ -391,6 +391,42 @@ table.promoted-attributes-in-tooltip td, table.promoted-attributes-in-tooltip th .bs-tooltip-left .arrow::before { border-left-color: var(--main-border-color) !important; } .bs-tooltip-right .arrow::before { border-right-color: var(--main-border-color) !important; } +.bs-tooltip-bottom .arrow::after { border-bottom-color: var(--tooltip-background-color) !important; } +.bs-tooltip-top .arrow::after { border-top-color: var(--tooltip-background-color) !important; } +.bs-tooltip-left .arrow::after { border-left-color: var(--tooltip-background-color) !important; } +.bs-tooltip-right .arrow::after { border-right-color: var(--tooltip-background-color) !important; } + +.tooltip .arrow::after { + position: absolute; + content: ''; + border-color: transparent; + border-style: solid; +} + +.bs-tooltip-auto[x-placement^='left'] .arrow::after, +.bs-tooltip-left .arrow::after { + left: -1px; + border-width: 0.4rem 0 0.4rem 0.4rem; +} + +.bs-tooltip-auto[x-placement^='bottom'] .arrow::after, +.bs-tooltip-bottom .arrow::after { + bottom: -1px; + border-width: 0 0.4rem 0.4rem; +} + +.bs-tooltip-auto[x-placement^='right'] .arrow::after, +.bs-tooltip-right .arrow::after { + right: -1px; + border-width: 0.4rem 0.4rem 0.4rem 0; +} + +.bs-tooltip-auto[x-placement^='top'] .arrow::after, +.bs-tooltip-top .arrow::after { + top: -1px; + border-width: 0.4rem 0.4rem 0; +} + .note-tooltip.tooltip .arrow { display: none; }