mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-12-06 19:56:45 +10:30
fix: tidy logout menu and notification footer
This commit is contained in:
4 files changed
+40
-17
No files matched your search
@@ -58,7 +58,7 @@ html {
|
|||||||
background: var(--text-primary);
|
background: var(--text-primary);
|
||||||
color: var(--background-primary);
|
color: var(--background-primary);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
transform: translateX(-50%) scale(0);
|
transform: scale(0);
|
||||||
transform-origin: top center;
|
transform-origin: top center;
|
||||||
transition:
|
transition:
|
||||||
transform 0.15s,
|
transform 0.15s,
|
||||||
@@ -66,7 +66,7 @@ html {
|
|||||||
display 0.15s allow-discrete;
|
display 0.15s allow-discrete;
|
||||||
|
|
||||||
&:popover-open {
|
&:popover-open {
|
||||||
transform: translateX(-50%) scale(1);
|
transform: scale(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
@@ -81,7 +81,7 @@ html {
|
|||||||
&::after {
|
&::after {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 100%;
|
bottom: calc(100% - 1px);
|
||||||
left: 50%;
|
left: 50%;
|
||||||
margin-left: -5px;
|
margin-left: -5px;
|
||||||
border: 5px solid transparent;
|
border: 5px solid transparent;
|
||||||
@@ -110,7 +110,7 @@ html {
|
|||||||
}
|
}
|
||||||
@starting-style {
|
@starting-style {
|
||||||
.bsplus-tooltip-bubble:popover-open {
|
.bsplus-tooltip-bubble:popover-open {
|
||||||
transform: translateX(-50%) scale(0);
|
transform: scale(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.assessmenttooltip {
|
.assessmenttooltip {
|
||||||
|
|||||||
+26
-9
@@ -2106,7 +2106,16 @@ html.transparencyEffects [class*="BasicPanel__BasicPanel___q92_U"] > ol > li + l
|
|||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
[class*="notifications__actions___"] {
|
[class*="notifications__actions___"] {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 8px 4px 4px !important;
|
||||||
background: var(--auto-background);
|
background: var(--auto-background);
|
||||||
|
|
||||||
|
button {
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
[class*="notifications__actions___"] button,
|
[class*="notifications__actions___"] button,
|
||||||
[class*="notifications__dismiss___"] {
|
[class*="notifications__dismiss___"] {
|
||||||
@@ -3274,21 +3283,29 @@ body:not(.clr-open) .clr-picker,
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
.bsplus-tooltip-bubble:has(> .bsplus-logout) {
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
.bsplus-tooltip-bubble .bsplus-logout {
|
.bsplus-tooltip-bubble .bsplus-logout {
|
||||||
display: flex;
|
display: flex !important;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 36px;
|
width: 40px !important;
|
||||||
height: 32px;
|
height: 32px !important;
|
||||||
padding: 0;
|
margin: 0 !important;
|
||||||
|
padding: 0 !important;
|
||||||
border: none !important;
|
border: none !important;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
background: none !important;
|
background: none !important;
|
||||||
color: var(--background-primary) !important;
|
color: #fff !important;
|
||||||
opacity: 1;
|
opacity: 1 !important;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: opacity 150ms;
|
transition: background 150ms;
|
||||||
|
|
||||||
|
html.dark & {
|
||||||
|
color: #000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
content: none !important;
|
content: none !important;
|
||||||
@@ -3302,11 +3319,11 @@ body:not(.clr-open) .clr-picker,
|
|||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: 0.7;
|
background: color-mix(in srgb, currentColor 12%, transparent) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus-visible {
|
&:focus-visible {
|
||||||
outline: 2px solid var(--background-primary) !important;
|
outline: 2px solid currentColor !important;
|
||||||
outline-offset: -2px;
|
outline-offset: -2px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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": {
|
"Outlook": {
|
||||||
"DisplayName": "Outlook",
|
"DisplayName": "Outlook",
|
||||||
"link": "https://outlook.office365.com/mail/inbox",
|
"link": "https://outlook.office365.com/mail/inbox",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const GAP_PX = 8;
|
const GAP_PX = 2;
|
||||||
|
|
||||||
export function attachTooltip(anchor: HTMLElement) {
|
export function attachTooltip(anchor: HTMLElement) {
|
||||||
const bubble = anchor.querySelector<HTMLElement>(":scope > .bsplus-tooltip-bubble");
|
const bubble = anchor.querySelector<HTMLElement>(":scope > .bsplus-tooltip-bubble");
|
||||||
@@ -9,10 +9,10 @@ export function attachTooltip(anchor: HTMLElement) {
|
|||||||
|
|
||||||
const show = () => {
|
const show = () => {
|
||||||
if (isOpen()) return;
|
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();
|
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 = () => {
|
const hide = () => {
|
||||||
if (isOpen()) bubble.hidePopover();
|
if (isOpen()) bubble.hidePopover();
|
||||||
|
|||||||
Reference in new issue
Block a user