From 26d06d2aab306a7c9129f4126a20db1525a1e476 Mon Sep 17 00:00:00 2001 From: Jones Jankovic Date: Tue, 3 Nov 2026 15:03:09 +1030 Subject: [PATCH] style: merge duplicate selectors --- src/css/iframe.scss | 20 +--- src/css/injected.scss | 103 +++++++----------- .../built-in/globalSearch/src/core/styles.css | 25 ++--- .../built-in/messageFolders/styles.css | 14 --- 4 files changed, 49 insertions(+), 113 deletions(-) diff --git a/src/css/iframe.scss b/src/css/iframe.scss index f070b817..3ef6d52f 100644 --- a/src/css/iframe.scss +++ b/src/css/iframe.scss @@ -44,12 +44,9 @@ body { } > .date > .value, - blockquote.forward > .preamble > .sender > .value { - color: rgba(255, 255, 255, 0.7) !important; - } - > .date > .label, - blockquote.forward > .preamble > .sender > .label { + > .sender > .value, + > .sender > .label { color: rgba(255, 255, 255, 0.7) !important; } } @@ -90,19 +87,6 @@ body { border-top-right-radius: 1rem; } - blockquote.forward > .preamble { - color: rgba(255, 255, 255, 0.7) !important; - } - - blockquote.forward > .preamble > .date > .value, - blockquote.forward > .preamble > .sender > .value { - color: rgba(255, 255, 255, 0.7) !important; - } - blockquote.forward > .preamble > .date > .label, - blockquote.forward > .preamble > .sender > .label { - color: rgba(255, 255, 255, 0.7) !important; - } - #backgroundTable > * { background-color: #161616; border: none; diff --git a/src/css/injected.scss b/src/css/injected.scss index 3e52c52f..d8b951f1 100644 --- a/src/css/injected.scss +++ b/src/css/injected.scss @@ -64,6 +64,8 @@ html { body { font-family: Rubik, sans-serif !important; + background: var(--theme-primary); + overflow: hidden; } select { @@ -484,10 +486,12 @@ ul.magicDelete > li.deleting { display: flex; white-space: nowrap; place-items: center; + cursor: pointer; } #menu .sub { top: 71px; margin-top: -2px; + pointer-events: none; } /* Drill-in stack: only the current list + folder header stay clickable. @@ -522,10 +526,6 @@ ul.magicDelete > li.deleting { } /* Only the frontmost open .sub panel receives pointer events */ -#menu .sub { - pointer-events: none; -} - #menu li.hasChildren:is(.active, .bsplus-active) > .sub { pointer-events: auto; } @@ -657,6 +657,7 @@ ul.magicDelete > li.deleting { color: var(--text-color); border-right: none; transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); + --menuHidden: none; } /* Custom title bar: keep native `#title` children for sync, hide them visually. @@ -977,37 +978,35 @@ body > .sortable-fallback.bsplus-sortable-drag, list-style: none !important; } -#menu { - li:is(.active, .hasChildren.bsplus-active) > .sub > ul > .item:not(.hasChildren) { - position: relative; +#menu li:is(.active, .hasChildren.bsplus-active) > .sub > ul > .item:not(.hasChildren) { + position: relative; - &::before { - content: ""; - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 3px; - background: var(--item-colour, transparent); - transition: - width 100ms, - transform 0.3s ease; - border-radius: 8px 0 0 8px; - pointer-events: none; - } - - &:hover::before, - &:is(.active, .bsplus-active)::before { - width: 6px; - background: var(--item-colour, transparent); - } + &::before { + content: ""; + position: absolute; + top: 0; + left: 0; + bottom: 0; + width: 3px; + background: var(--item-colour, transparent); + transition: + width 100ms, + transform 0.3s ease; + border-radius: 8px 0 0 8px; + pointer-events: none; } - li.active > .sub > ul > .active { - background: rgba(0, 0, 0, 0.3) !important; + &:hover::before, + &:is(.active, .bsplus-active)::before { + width: 6px; + background: var(--item-colour, transparent); } } +#menu li.active > .sub > ul > .active { + background: rgba(0, 0, 0, 0.3) !important; +} + #userActions { display: none; } @@ -1370,10 +1369,6 @@ html.transparencyEffects [class*="BasicPanel__BasicPanel___q92_U"] > ol > li + l .assessmentsWrapper .message { display: none; } -#menu li, -#menu section { - cursor: pointer; -} #menu li:hover:not(.active) { background: rgba(0, 0, 0, 0.15) !important; } @@ -2962,14 +2957,12 @@ div.bar.flat { border-radius: 12px; } -.dark { - .cke_toolbox > .cke_toolbar .cke_combo_on > .cke_combo_button, - .cke_toolbox > .cke_toolbar .cke_button_on { - background-color: #3d3d3e !important; +.dark .cke_toolbox > .cke_toolbar .cke_combo_on > .cke_combo_button, +.dark .cke_toolbox > .cke_toolbar .cke_button_on { + background-color: #3d3d3e !important; - &::after { - background: rgb(207, 207, 207) !important; - } + &::after { + background: rgb(207, 207, 207) !important; } } @@ -3011,10 +3004,6 @@ ul.uiSplitButtonList, background: transparent; color: var(--text-primary); } -body { - background: var(--theme-primary); - overflow: hidden; -} .shortcuticondiv { height: 39px; width: 39px; @@ -3263,9 +3252,6 @@ body:not(.clr-open) .clr-picker, z-index: 10; opacity: 0.4; } -#menu { - --menuHidden: none; -} .editmenuoption { background: var(--background-primary); color: var(--text-primary); @@ -3722,13 +3708,6 @@ div.day-empty { .upcoming-special-day { font-size: 20px; } -.upcoming-blank { - display: flex; - border-bottom: 2px solid #bebebe; - margin: 5px 50px; - height: 2em; - padding: 0px; -} .upcoming-blank p { padding: 0; margin: 0; @@ -5857,18 +5836,16 @@ button.notice-close-btn { } } -.dark { - .notice-card { - border-color: rgba(255, 255, 255, 0.05); +.dark .notice-card { + border-color: rgba(255, 255, 255, 0.05); - &:hover { - border-color: rgba(255, 255, 255, 0.1); - } + &:hover { + border-color: rgba(255, 255, 255, 0.1); } +} - .notice-modal-content { - border-color: rgba(255, 255, 255, 0.05); - } +.dark .notice-modal-content { + border-color: rgba(255, 255, 255, 0.05); } @media (max-width: 768px) { diff --git a/src/plugins/built-in/globalSearch/src/core/styles.css b/src/plugins/built-in/globalSearch/src/core/styles.css index 952f94bd..4b8b53f1 100644 --- a/src/plugins/built-in/globalSearch/src/core/styles.css +++ b/src/plugins/built-in/globalSearch/src/core/styles.css @@ -60,7 +60,11 @@ justify-content: center; flex: none; height: 32px; - border-radius: 0; + border: 1px solid rgba(0, 0, 0, 0.1) !important; + border-bottom: none; + border-radius: 8px 8px 0 0; + background-color: rgba(248, 250, 252, 0.94) !important; + color: #555 !important; cursor: pointer; transition: background-color 0.2s ease, @@ -71,10 +75,12 @@ user-select: none; svg { + color: #555; opacity: 0.8; } p { + color: #555 !important; display: flex; align-self: stretch; align-items: center; @@ -85,23 +91,6 @@ } } -/* Light mode chip */ -.search-trigger { - border: 1px solid rgba(0, 0, 0, 0.1) !important; - border-bottom: none; - border-radius: 8px 8px 0 0; - background-color: rgba(248, 250, 252, 0.94) !important; - color: #555 !important; - - p { - color: #555 !important; - } - - svg { - color: #555; - } -} - .dark .search-trigger { border: 1px solid rgba(255, 255, 255, 0.1) !important; border-bottom: none; diff --git a/src/plugins/built-in/messageFolders/styles.css b/src/plugins/built-in/messageFolders/styles.css index 9947f59f..a3676df1 100644 --- a/src/plugins/built-in/messageFolders/styles.css +++ b/src/plugins/built-in/messageFolders/styles.css @@ -539,20 +539,6 @@ fill: none; } -.bsplus-context-item:hover { - background: var(--theme-offset-bg-more, rgba(128, 128, 128, 0.08)); -} - -.bsplus-context-item span { - flex: 1; -} - -.bsplus-context-checkmark { - color: var(--better-main, #007bff) !important; - font-weight: bold; - flex: 0 !important; -} - .bsplus-context-empty { padding: 12px; text-align: center;