diff --git a/src/css/documentload.scss b/src/css/documentload.scss index 87fd2f11..eac27843 100644 --- a/src/css/documentload.scss +++ b/src/css/documentload.scss @@ -58,7 +58,7 @@ html { background: var(--text-primary); color: var(--background-primary); text-align: center; - transform: translateX(-50%) scale(0); + transform: scale(0); transform-origin: top center; transition: transform 0.15s, @@ -66,7 +66,7 @@ html { display 0.15s allow-discrete; &:popover-open { - transform: translateX(-50%) scale(1); + transform: scale(1); } &::before { @@ -81,7 +81,7 @@ html { &::after { content: ""; position: absolute; - bottom: 100%; + bottom: calc(100% - 1px); left: 50%; margin-left: -5px; border: 5px solid transparent; @@ -110,7 +110,7 @@ html { } @starting-style { .bsplus-tooltip-bubble:popover-open { - transform: translateX(-50%) scale(0); + transform: scale(0); } } .assessmenttooltip { diff --git a/src/css/injected.scss b/src/css/injected.scss index 96f04e20..3e52c52f 100644 --- a/src/css/injected.scss +++ b/src/css/injected.scss @@ -2106,7 +2106,16 @@ html.transparencyEffects [class*="BasicPanel__BasicPanel___q92_U"] > ol > li + l margin-top: 5px; } [class*="notifications__actions___"] { + display: flex; + align-items: center; + justify-content: center; + gap: 8px; + padding: 8px 4px 4px !important; background: var(--auto-background); + + button { + margin: 0 !important; + } } [class*="notifications__actions___"] button, [class*="notifications__dismiss___"] { @@ -3274,21 +3283,29 @@ body:not(.clr-open) .clr-picker, justify-content: space-between; align-items: center; } +.bsplus-tooltip-bubble:has(> .bsplus-logout) { + min-width: 0; +} .bsplus-tooltip-bubble .bsplus-logout { - display: flex; + display: flex !important; align-items: center; justify-content: center; - width: 36px; - height: 32px; - padding: 0; + width: 40px !important; + height: 32px !important; + margin: 0 !important; + padding: 0 !important; border: none !important; border-radius: 6px; box-shadow: none !important; background: none !important; - color: var(--background-primary) !important; - opacity: 1; + color: #fff !important; + opacity: 1 !important; cursor: pointer; - transition: opacity 150ms; + transition: background 150ms; + + html.dark & { + color: #000 !important; + } &::after { content: none !important; @@ -3302,11 +3319,11 @@ body:not(.clr-open) .clr-picker, } &:hover { - opacity: 0.7; + background: color-mix(in srgb, currentColor 12%, transparent) !important; } &:focus-visible { - outline: 2px solid var(--background-primary) !important; + outline: 2px solid currentColor !important; outline-offset: -2px; } } diff --git a/src/seqta/content/links.json b/src/seqta/content/links.json index 88d5f350..ab9c3b8a 100644 --- a/src/seqta/content/links.json +++ b/src/seqta/content/links.json @@ -1,4 +1,10 @@ { + "YouTube": { + "DisplayName": "YouTube", + "link": "https://www.youtube.com/", + "viewBox": "-2.4 -2.4 28.8 28.8", + "icon": "M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z" + }, "Outlook": { "DisplayName": "Outlook", "link": "https://outlook.office365.com/mail/inbox", diff --git a/src/seqta/utils/tooltip.ts b/src/seqta/utils/tooltip.ts index 5d143f7d..3912e61e 100644 --- a/src/seqta/utils/tooltip.ts +++ b/src/seqta/utils/tooltip.ts @@ -1,4 +1,4 @@ -const GAP_PX = 8; +const GAP_PX = 2; export function attachTooltip(anchor: HTMLElement) { const bubble = anchor.querySelector(":scope > .bsplus-tooltip-bubble"); @@ -9,10 +9,10 @@ export function attachTooltip(anchor: HTMLElement) { const show = () => { if (isOpen()) return; - const rect = anchor.getBoundingClientRect(); - bubble.style.left = `${rect.left + rect.width / 2}px`; - bubble.style.top = `${rect.bottom + GAP_PX}px`; bubble.showPopover(); + const rect = anchor.getBoundingClientRect(); + bubble.style.left = `${Math.round(rect.left + (rect.width - bubble.offsetWidth) / 2)}px`; + bubble.style.top = `${Math.round(rect.bottom + GAP_PX)}px`; }; const hide = () => { if (isOpen()) bubble.hidePopover();