From 420755eda688f52cc73b711d125274208971b6bf Mon Sep 17 00:00:00 2001 From: Mike Baker <1426795+mbaker3@users.noreply.github.com> Date: Mon, 12 Feb 2024 16:34:07 -0500 Subject: [PATCH] Fix task priority tooltip - Fix layout of priority markers - Match style of markers in tooltip to the markers in blocks - Add hover effect + animation to match markers in blocks - Fix alignment of the tooltip to be centered over the priority hovered in the block - Adjust layout to have consistent padding around all tooltips --- custom.css | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/custom.css b/custom.css index 970af96..ad5151d 100644 --- a/custom.css +++ b/custom.css @@ -1019,6 +1019,42 @@ a.priority[href="#/page/C" i]::before { background: hsl(var(--nord-aurora-nord14)); } +/* === Priority Tooltips === */ +.tippy-tooltip:has(.tooltip-priority) { + left: -6px; +} + +a.tooltip-priority { + line-height: 100%; +} + +a.tooltip-priority::before { + /* Copied from a.priority::before in the theme */ + transform: translateY(-1px); + border: 1px solid hsl(var(--cl-text-color), 0.15); + border-radius: var(--cl-checkbox-radius, 4px); + height: calc(var(--ls-font-size) + 4px); + width: calc(var(--ls-font-size) + 4px); + text-align: center; + display: inline-flex; + align-items: center; + justify-content: center; + opacity: 0.9; + transition: 0.3s; +} + +a.tooltip-priority::after { + margin-right: 8px; +} + +a.tooltip-priority:last-of-type::after { + margin-right: 0px; +} + +a.tooltip-priority:hover::before { + opacity: 1; +} + /* === Checkboxes === */ .form-checkbox { background-color: var(--bg-color-1);