Compare commits

...

16 commits

Author SHA1 Message Date
alstjr7375
aaac164e90 fix: built-in theme selector #1148
Some checks failed
CI / build (push) Has been cancelled
2025-12-14 02:51:56 +09:00
hdk5
db5589e703
Fix context menu icon padding (#1147)
Some checks are pending
CI / build (push) Waiting to run
2025-12-13 20:00:32 +09:00
alstjr7375
aa9fc543b3 Fix: Bookmark Menu padding
Some checks failed
CI / build (push) Has been cancelled
2025-11-29 00:00:00 +09:00
alstjr7375
38507b733b Fix: Tab - Rounding #1139
Some checks failed
CI / build (push) Has been cancelled
2025-11-16 22:35:03 +09:00
alstjr7375
2bcd91f8b8 Chore: Release name change for legacy Firefox 117 #1131 2025-10-12 00:00:00 +09:00
alstjr7375
4645a41e7e Fix: Context menu spacing in toggle-able menus #1128
Some checks failed
CI / build (push) Has been cancelled
2025-09-13 00:00:00 +09:00
alstjr7375
b0b977e658 Docs: CREDIT 2025-08-10 23:08:56 +09:00
alstjr7375
44d4124a57 Fix: Tabbar - Clipping at movingtab #1126
Some checks failed
CI / build (push) Has been cancelled
2025-08-10 00:36:36 +09:00
alstjr7375
3b2e609eab Fix: Pinned Tab - Color & separator #1111 2025-08-09 23:41:33 +09:00
alstjr7375
7e21531269 Fix: Sidebar - Menu icons
Some checks failed
CI / build (push) Has been cancelled
2025-08-06 09:06:44 +09:00
alstjr7375
37ba412b4c Fix: Icons - Tab toolbar
Some checks are pending
CI / build (push) Waiting to run
2025-08-05 09:10:56 +09:00
alstjr7375
83431e9e76 Fix: Tabbar - Vertical tab max-width adjustment #1107
Some checks failed
CI / build (push) Has been cancelled
2025-08-03 21:29:20 +09:00
alstjr7375
2576f0b031 Fix: Tabar - max-height #1111 2025-08-02 00:00:00 +09:00
alstjr7375
5a5dedef16 Fix: URLBar - Remove Megabar CSS #1038
Some checks failed
CI / build (push) Has been cancelled
2025-08-01 09:14:30 +09:00
Esteve Varela Colominas
2360479dc1 Fix Megabar CSS (#1038) 2025-08-01 09:14:30 +09:00
alstjr7375
5e49ab0a9a Fix: Global Menubar - padding #1099
Some checks failed
CI / build (push) Has been cancelled
2025-07-12 00:00:00 +09:00
32 changed files with 1896 additions and 354 deletions

View file

@ -42,14 +42,14 @@ jobs:
- mode: "STANDARD" - mode: "STANDARD"
name: "Lepton-Proton-Style" name: "Lepton-Proton-Style"
branch: "proton-style" branch: "proton-style"
- mode: "ESR" - mode: "LegacyV117"
name: "ESR-Lepton" name: "LegacyV117-Lepton"
branch: "master" branch: "master"
- mode: "ESR" - mode: "LegacyV117"
name: "ESR-Lepton-Photon-Style" name: "LegacyV117-Lepton-Photon-Style"
branch: "photon-style" branch: "photon-style"
- mode: "ESR" - mode: "LegacyV117"
name: "ESR-Lepton-Proton-Style" name: "LegacyV117-Lepton-Proton-Style"
branch: "proton-style" branch: "proton-style"
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -75,8 +75,8 @@ jobs:
rm css/leptonChromeESR.css rm css/leptonChromeESR.css
rm css/leptonContentESR.css rm css/leptonContentESR.css
- name: Processing for ESR - name: Processing for LegacyV117
if: matrix.mode == 'ESR' if: matrix.mode == 'LegacyV117'
run: | run: |
sed -i "s/\.css/ESR\.css/g" userChrome.css sed -i "s/\.css/ESR\.css/g" userChrome.css
sed -i "s/\.css/ESR\.css/g" userContent.css sed -i "s/\.css/ESR\.css/g" userContent.css

View file

@ -38,6 +38,9 @@ N: Alex Besogonov
E: Alex.Besogonov@gmail.com E: Alex.Besogonov@gmail.com
W: https://github.com/Cyberax W: https://github.com/Cyberax
N: aslam karachiwala
W: https://github.com/akwala
N: AuRiMaS666 N: AuRiMaS666
W: https://github.com/AuRiMaS666 W: https://github.com/AuRiMaS666
@ -171,6 +174,9 @@ N: menndouyukkuri
E: menndoukusagari@gmail.com E: menndoukusagari@gmail.com
W: https://github.com/menndouyukkuri W: https://github.com/menndouyukkuri
N: mid-kid
W: https://github.com/mid-kid
N: Mizuki N: Mizuki
W: https://github.com/MagicalDrizzle W: https://github.com/MagicalDrizzle

View file

@ -214,6 +214,7 @@ Thanks to all sponsors & contributors to this project for providing help and dev
[[https://github.com/Ygg01][@@html:<img width="60" height="60" src="https://avatars.githubusercontent.com/u/1146204?s=60&v=4"/>@@]] [[https://github.com/Ygg01][@@html:<img width="60" height="60" src="https://avatars.githubusercontent.com/u/1146204?s=60&v=4"/>@@]]
[[https://github.com/engelju][@@html:<img width="60" height="60" src="https://avatars.githubusercontent.com/u/2188152?s=60&v=4"/>@@]] [[https://github.com/engelju][@@html:<img width="60" height="60" src="https://avatars.githubusercontent.com/u/2188152?s=60&v=4"/>@@]]
[[https://github.com/xrstf][@@html:<img width="60" height="60" src="https://avatars.githubusercontent.com/u/127499?s=60&v=4"/>@@]] [[https://github.com/xrstf][@@html:<img width="60" height="60" src="https://avatars.githubusercontent.com/u/127499?s=60&v=4"/>@@]]
[[https://github.com/akwala][@@html:<img width="60" height="60" src="https://avatars.githubusercontent.com/u/1786?s=60&v=4"/>@@]]
- A donation was received on [[https://ko-fi.com/black7375][Ko-Fi]] - A donation was received on [[https://ko-fi.com/black7375][Ko-Fi]]
- [[https://ko-fi.com/home/coffeeshop?txid=97e5fa0d-c73e-4308-a2fd-6b44b08cd828][Safira]] - [[https://ko-fi.com/home/coffeeshop?txid=97e5fa0d-c73e-4308-a2fd-6b44b08cd828][Safira]]

1336
css/leptonChrome.css generated

File diff suppressed because it is too large Load diff

668
css/leptonChromeESR.css generated

File diff suppressed because it is too large Load diff

6
css/leptonContent.css generated
View file

@ -3439,6 +3439,9 @@
.menu-icon { .menu-icon {
display: unset !important; display: unset !important;
} }
#main-menubar > menu > .menu-icon {
display: none !important;
}
/* Contextmenu Checkbox Unset */ /* Contextmenu Checkbox Unset */
menupopup:is(#placesContext, #placesColumnsContext, #downloadsContextMenu) menuitem[type="checkbox"] { menupopup:is(#placesContext, #placesColumnsContext, #downloadsContextMenu) menuitem[type="checkbox"] {
margin-inline: 0 !important; margin-inline: 0 !important;
@ -7293,6 +7296,9 @@
.menu-icon { .menu-icon {
display: unset !important; display: unset !important;
} }
#main-menubar > menu > .menu-icon {
display: none !important;
}
/* Contextmenu Checkbox Unset */ /* Contextmenu Checkbox Unset */
menupopup:is(#placesContext, #placesColumnsContext, #downloadsContextMenu) menuitem[type="checkbox"] { menupopup:is(#placesContext, #placesColumnsContext, #downloadsContextMenu) menuitem[type="checkbox"] {
margin-inline: 0 !important; margin-inline: 0 !important;

View file

@ -3578,6 +3578,9 @@
.menu-icon { .menu-icon {
display: unset !important; display: unset !important;
} }
#main-menubar > menu > .menu-icon {
display: none !important;
}
/* Contextmenu Checkbox Unset */ /* Contextmenu Checkbox Unset */
menupopup:is(#placesContext, #placesColumnsContext, #downloadsContextMenu) menuitem[type="checkbox"] { menupopup:is(#placesContext, #placesColumnsContext, #downloadsContextMenu) menuitem[type="checkbox"] {
margin-inline: 0 !important; margin-inline: 0 !important;

View file

@ -248,6 +248,7 @@ $_os_linuxDefaultShadow: 0 0 4px rgba(128, 128, 142, 0.5);
-moz-default-appearance:-moz-window-titlebar !important;; -moz-default-appearance:-moz-window-titlebar !important;;
} }
:root:is([tabsintitlebar], [customtitlebar]):not(:-moz-lwtheme) #pinned-tabs-container,
:root:is([tabsintitlebar], [customtitlebar]):not(:-moz-lwtheme) #tabbrowser-arrowscrollbox { :root:is([tabsintitlebar], [customtitlebar]):not(:-moz-lwtheme) #tabbrowser-arrowscrollbox {
color: -moz-dialogtext !important; color: -moz-dialogtext !important;
} }

View file

@ -609,6 +609,30 @@ panelMenuBookmarkThisPage[starred] {
); );
} }
/*= sidebar-context-menu =====================================================*/
#sidebar-context-menu-manage-extension {
--menuitem-image: url("chrome://global/skin/icons/settings.svg");
}
#sidebar-context-menu-remove-extension {
--menuitem-image: url("chrome://global/skin/icons/delete.svg");
}
#sidebar-context-menu-report-extension {
--menuitem-image: url("../icons/send.svg");
}
#sidebar-context-menu-unpin-extension {
--menuitem-image: url("../icons/unpin-tab.svg");
}
#sidebar-context-menu-hide-sidebar {
--menuitem-image: url("../icons/eye-hide.svg");
}
#sidebar-context-menu-customize-sidebar {
--menuitem-image: url("chrome://browser/skin/customize.svg");
}
#sidebar-context-menu-enable-vertical-tabs {
--menuitem-image: url("chrome://browser/skin/sidebar-collapsed.svg");
}
/*= chrome://browser/content/syncedtabs/sidebar.xhtml ========================*/ /*= chrome://browser/content/syncedtabs/sidebar.xhtml ========================*/
.item.client[clientType=phone] > .item-title-container > .item-icon-container { .item.client[clientType=phone] > .item-title-container > .item-icon-container {
background-image: url("../icons/device-phone.svg") !important; background-image: url("../icons/device-phone.svg") !important;

View file

@ -218,6 +218,13 @@
--menuitem-image: url("../icons/undo.svg"); --menuitem-image: url("../icons/undo.svg");
} }
#toolbar-context-customize-sidebar {
--menuitem-image: url("chrome://browser/skin/customize.svg");
}
#toolbar-context-toggle-vertical-tabs {
--menuitem-image: url("chrome://browser/skin/sidebar-collapsed.svg");
}
#toggle_toolbar-menubar { #toggle_toolbar-menubar {
/* checkbox */ /* checkbox */
--menuitem-image: url("../icons/calendar-agenda.svg"); --menuitem-image: url("../icons/calendar-agenda.svg");

View file

@ -17,8 +17,8 @@ menupopup menupopup[emptyplacesresult] .menu-text,
//-- Mixin --------------------------------------------------------------------- //-- Mixin ---------------------------------------------------------------------
// Items // Items
$_bookmarkMenuitem: "menuitem:not(.menuitem-iconic, [disabled=\"true\"])"; $_bookmarkMenuitem: "menuitem:not(.menuitem-iconic, [disabled=\"true\"]):not(:has(.menu-icon[aria-hidden=\"true\"]))";
$_bookmarkMenu: "menu:not(.menu-iconic)"; $_bookmarkMenu: "menu:not(.menu-iconic):not(:has(.menu-icon[aria-hidden=\"true\"]))";
// Components // Components
$_bookmarkPopup: "menupopup:is(#BMB_bookmarksPopup)[placespopup=\"true\"]"; $_bookmarkPopup: "menupopup:is(#BMB_bookmarksPopup)[placespopup=\"true\"]";

View file

@ -102,6 +102,11 @@ $_layoutCommonMenus: (
@include _layout_root_non_native; @include _layout_root_non_native;
@include _layoutIconMenus { @include _layoutIconMenus {
@include _layout_init_non_native(); @include _layout_init_non_native();
// FF v141 #1128
> .menu-icon {
display: none !important;
}
} }
// FF v121 // FF v121

View file

@ -12,7 +12,7 @@ $_checkMenu: ":not([type=\"checkbox\"][checked=\"true\"], [type=\"radio\"])";
$_nestedPopup: "> menupopup:not(.in-menulist) >"; $_nestedPopup: "> menupopup:not(.in-menulist) >";
$_nestedPopupIcon: ":not(menu, #ContentSelectDropdown) #{$_nestedPopup}"; $_nestedPopupIcon: ":not(menu, #ContentSelectDropdown) #{$_nestedPopup}";
$_nestedPopupPadding: ":not(menu, #ContentSelectDropdown, #context-navigation) #{$_nestedPopup}"; $_nestedPopupPadding: ":not(menu, #ContentSelectDropdown, #context-navigation) #{$_nestedPopup}";
$_iconMenuPopup: "menupopup:is(#menu_FilePopup, #menu_EditPopup, #menu_viewPopup, #goPopup, #historyMenuPopup, #bookmarksMenuPopup, #menu_ProfilesPopup, #menu_ToolsPopup, #windowPopup, #menu_HelpPopup, #usercssloader-menupopup)"; $_iconMenuPopup: "menupopup:is(#menu_FilePopup, #menu_EditPopup, #menu_viewPopup, #goPopup, #historyMenuPopup, #bookmarksMenuPopup, #menu_ProfilesPopup, #menu_ToolsPopup, #windowPopup, #menu_HelpPopup, #usercssloader-menupopup, #sidebar-context-menu)";
$_nestedPopupIconMenus: selector.nest( $_nestedPopupIconMenus: selector.nest(
$_nestedPopupIcon, $_nestedPopupIcon,
@ -195,6 +195,9 @@ $_initialMenus: $_initialMenus + "," +
.menu-icon { .menu-icon {
display: unset !important; display: unset !important;
} }
#main-menubar > menu > .menu-icon {
display: none !important;
}
} }
@mixin _layout_init_linux() { @mixin _layout_init_linux() {
padding-inline-start: 3px; padding-inline-start: 3px;

View file

@ -51,12 +51,14 @@
} }
@include Option("userChrome.padding.urlView_expanding", "userChrome.urlView.as_commandbar") { @include Option("userChrome.padding.urlView_expanding", "userChrome.urlView.as_commandbar") {
#urlbar[breakout][breakout-extend] { #urlbar[breakout][breakout-extend] {
top: calc((var(--urlbar-toolbar-height, var(--urlbar-container-height)) - var(--urlbar-height)) / 2) !important; top: calc(var(--urlbar-container-height) * 2 - var(--urlbar-height)) !important;
left: 0 !important; width: var(--urlbar-width) !important;
width: 100% !important; position: relative !important;
margin: 0 !important;
} }
#urlbar[breakout][breakout-extend] > #urlbar-input-container { #urlbar[breakout][breakout-extend] > #urlbar-input-container,
#urlbar[breakout][breakout-extend] > .urlbar-input-container {
height: var(--urlbar-height) !important; height: var(--urlbar-height) !important;
padding-block: 0 !important; padding-block: 0 !important;
padding-inline: var(--urlbar-container-padding, 0px) !important; padding-inline: var(--urlbar-container-padding, 0px) !important;

View file

@ -62,12 +62,17 @@
} }
@include NotOption("userChrome.tabbar.multi_row") { @include NotOption("userChrome.tabbar.multi_row") {
:root:not([uidensity="compact"]) #TabsToolbar:not([multibar]) #pinned-tabs-container,
#TabsToolbar:not([multibar]) #pinned-tabs-container[overflowing="true"] > .tabbrowser-tab[pinned="true"],
#TabsToolbar:not([multibar]) #pinned-tabs-container[overflowing="true"] > .tabbrowser-tab[pinned="true"] .tab-stack,
#TabsToolbar:not([multibar]) #pinned-tabs-container[overflowing="true"] > .tabbrowser-tab[pinned="true"] .tab-content,
:root:not([uidensity="compact"]) #TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox, :root:not([uidensity="compact"]) #TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox,
#TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox[overflowing="true"] > .tabbrowser-tab[pinned="true"], #TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox[overflowing="true"] > .tabbrowser-tab[pinned="true"],
#TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox[overflowing="true"] > .tabbrowser-tab[pinned="true"] .tab-stack, #TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox[overflowing="true"] > .tabbrowser-tab[pinned="true"] .tab-stack,
#TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox[overflowing="true"] > .tabbrowser-tab[pinned="true"] .tab-content { #TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox[overflowing="true"] > .tabbrowser-tab[pinned="true"] .tab-content {
max-height: var(--tab-min-height) !important; /* Force apply height */ max-height: var(--tab-min-height) !important; /* Force apply height */
} }
:root[uidensity="compact"] #TabsToolbar:not([multibar]) #pinned-tabs-container,
:root[uidensity="compact"] #TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox { :root[uidensity="compact"] #TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox {
height: var(--tab-min-height) !important; height: var(--tab-min-height) !important;
} }
@ -75,6 +80,7 @@
} }
/* Scroll Button - Size Fix */ /* Scroll Button - Size Fix */
:root #pinned-tabs-container,
:root #tabbrowser-arrowscrollbox { :root #tabbrowser-arrowscrollbox {
--scrollbtn-vertical-padding: 3px; --scrollbtn-vertical-padding: 3px;
--scrollbtn-vertical-border: 2px; --scrollbtn-vertical-border: 2px;

View file

@ -60,6 +60,7 @@
} }
} }
:root:not([uidensity="touch"]) #pinned-tabs-container,
:root:not([uidensity="touch"]) #tabbrowser-arrowscrollbox { :root:not([uidensity="touch"]) #tabbrowser-arrowscrollbox {
--scrollbtn-inner-padding: 1px; --scrollbtn-inner-padding: 1px;
--scrollbtn-outer-padding: 3px; --scrollbtn-outer-padding: 3px;
@ -93,6 +94,9 @@
.tabbrowser-tab[fadein]:not([pinned]):not([style*="max-width"]) { .tabbrowser-tab[fadein]:not([pinned]):not([style*="max-width"]) {
max-width: var(--tab-max-width) !important; /* Original: 225px */ max-width: var(--tab-max-width) !important; /* Original: 225px */
#tabbrowser-tabs[orient="vertical"][expanded] & {
max-width: none !important;
}
#tabbrowser-tabs[orient="horizontal"] tab-group[collapsed] > & { #tabbrowser-tabs[orient="horizontal"] tab-group[collapsed] > & {
min-width: 0 !important; min-width: 0 !important;
max-width: 0 !important; max-width: 0 !important;
@ -104,6 +108,8 @@
/* neighbouring tabs should "pinch" together */ /* neighbouring tabs should "pinch" together */
:root[customizing="true"] #tabbrowser-arrowscrollbox-periphery, :root[customizing="true"] #tabbrowser-arrowscrollbox-periphery,
#tabbrowser-tabs:not([hasadjacentnewtabbutton]):not([overflow="true"])
> #pinned-tabs-container > #tabbrowser-arrowscrollbox-periphery,
#tabbrowser-tabs:not([hasadjacentnewtabbutton]):not([overflow="true"]) #tabbrowser-tabs:not([hasadjacentnewtabbutton]):not([overflow="true"])
> #tabbrowser-arrowscrollbox > #tabbrowser-arrowscrollbox-periphery { > #tabbrowser-arrowscrollbox > #tabbrowser-arrowscrollbox-periphery {
min-width: 3px; // With Panorama Tab Groups #643 #846 min-width: 3px; // With Panorama Tab Groups #643 #846

View file

@ -3,6 +3,11 @@
--tab-border-radius: 0 !important; /* Original: 4px */ --tab-border-radius: 0 !important; /* Original: 4px */
} }
} }
@include NotOption("userChrome.rounding.square_tab") {
:root {
--tab-border-radius: 4px !important; /* Original: 4px */
}
}
@include Option("userChrome.rounding.square_button") { @include Option("userChrome.rounding.square_button") {
:root { :root {
--urlbar-icon-border-radius: 0 !important; /* Original: calc(var(--toolbarbutton-border-radius) - 1px); */ --urlbar-icon-border-radius: 0 !important; /* Original: calc(var(--toolbarbutton-border-radius) - 1px); */

View file

@ -1,3 +1,17 @@
#TabsToolbar {
#tabbrowser-tabs:not([orient="vertical"]) {
max-height: var(--tab-min-height);
}
#tabbrowser-tabs:not([orient="vertical"])[movingtab] {
padding-bottom: unset !important;
margin-bottom: unset !important;
}
&[multibar] #tabbrowser-tabs:not([orient="vertical"]) {
max-height: var(--tab-min-height_mlt);
}
}
#tabbrowser-tabs:not([orient="vertical"]) { #tabbrowser-tabs:not([orient="vertical"]) {
min-height: unset !important; /* Original: var(--tabstrip-min-height) */ min-height: unset !important; /* Original: var(--tabstrip-min-height) */
@ -34,6 +48,7 @@
} }
/* Pinned Tab - tabbrowser-arrowscrollbox overflowing */ /* Pinned Tab - tabbrowser-arrowscrollbox overflowing */
#tabbrowser-tabs[positionpinnedtabs] > #pinned-tabs-container > .tabbrowser-tab[pinned],
#tabbrowser-tabs[positionpinnedtabs] > #tabbrowser-arrowscrollbox > .tabbrowser-tab[pinned] { #tabbrowser-tabs[positionpinnedtabs] > #tabbrowser-arrowscrollbox > .tabbrowser-tab[pinned] {
z-index: 0 !important; z-index: 0 !important;

View file

@ -30,6 +30,7 @@
} }
.tabbrowser-tab[visuallyselected]:not([labelendaligned]):hover .tab-label-container, .tabbrowser-tab[visuallyselected]:not([labelendaligned]):hover .tab-label-container,
#tabbrowser-tabs:not([closebuttons=activetab]) > #pinned-tabs-container > .tabbrowser-tab:not([visuallyselected],[labelendaligned]):hover .tab-label-container,
#tabbrowser-tabs:not([closebuttons=activetab]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab:not([visuallyselected],[labelendaligned]):hover .tab-label-container { #tabbrowser-tabs:not([closebuttons=activetab]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab:not([visuallyselected],[labelendaligned]):hover .tab-label-container {
--tab-label-mask-size: 0.9em; /* Original: 1em */ --tab-label-mask-size: 0.9em; /* Original: 1em */
} }

View file

@ -19,6 +19,11 @@
} }
#tabbrowser-tabs[closebuttons="activetab"] { #tabbrowser-tabs[closebuttons="activetab"] {
> #pinned-tabs-container
> .tabbrowser-tab:not([pinned])
> .tab-stack
> .tab-content
> .tab-close-button:not([selected]),
> #tabbrowser-arrowscrollbox > #tabbrowser-arrowscrollbox
> .tabbrowser-tab:not([pinned]) > .tabbrowser-tab:not([pinned])
> .tab-stack > .tab-stack

View file

@ -94,8 +94,7 @@
} }
} }
&::is([lwtheme-mozlightdark], [style*="--lwt-accent-color: rgb(28, 27, 34); --lwt-text-color: rgba(251, 251, 254);"])#{$lwtheme} &#{$builtInDarkStyle} #TabsToolbar[brighttext] #tabbrowser-tabs:not([noshadowfortests]) .tabbrowser-tab[visuallyselected] .tab-background {
#TabsToolbar[brighttext] #tabbrowser-tabs:not([noshadowfortests]) .tabbrowser-tab[visuallyselected] .tab-background {
&::before, &::before,
&::after { &::after {
/* As Selected Tab - Box Shadow */ /* As Selected Tab - Box Shadow */

View file

@ -17,7 +17,7 @@ $ucTabBackgroundShadowHard: drop-shadow(-1px 0px 0px var(--uc-tab-shadow-color,
filter: $ucTabBasicShadow; filter: $ucTabBasicShadow;
} }
:root:is([lwtheme-mozlightdark], [style*="--lwt-accent-color: rgb(28, 27, 34); --lwt-text-color: rgba(251, 251, 254);"])#{$lwtheme} :root#{$builtInDarkStyle}
#TabsToolbar[brighttext] #tabbrowser-tabs:not([noshadowfortests]) .tabbrowser-tab { #TabsToolbar[brighttext] #tabbrowser-tabs:not([noshadowfortests]) .tabbrowser-tab {
&:is([selected], [multiselected]) { &:is([selected], [multiselected]) {
> .tab-stack > .tab-stack
@ -37,7 +37,7 @@ $ucTabBackgroundShadowHard: drop-shadow(-1px 0px 0px var(--uc-tab-shadow-color,
/* For themes outside of Light and Dark (which are curated by Mozilla), show a thicker border /* For themes outside of Light and Dark (which are curated by Mozilla), show a thicker border
around the tab to help themes that are dependent on tab_line to show the selected tab. */ around the tab to help themes that are dependent on tab_line to show the selected tab. */
:root:not([lwtheme-mozlightdark], [style*="--lwt-accent-color: rgb(240, 240, 244); --lwt-text-color: rgba(21, 20, 26);"])#{$lwtheme} :root:not(#{$builtInLightStyle})
#TabsToolbar:not([brighttext]) #TabsToolbar:not([brighttext])
#tabbrowser-tabs:not([noshadowfortests]) #tabbrowser-tabs:not([noshadowfortests])
.tabbrowser-tab:is([visuallyselected], [multiselected]) .tabbrowser-tab:is([visuallyselected], [multiselected])
@ -48,7 +48,7 @@ $ucTabBackgroundShadowHard: drop-shadow(-1px 0px 0px var(--uc-tab-shadow-color,
$ucTabAdditionalShadow; $ucTabAdditionalShadow;
} }
:root:not([lwtheme-mozlightdark], [style*="--lwt-accent-color: rgb(28, 27, 34); --lwt-text-color: rgba(251, 251, 254);"])#{$lwtheme} :root:not(#{$builtInDarkStyle})
#TabsToolbar[brighttext] #TabsToolbar[brighttext]
#tabbrowser-tabs:not([noshadowfortests]) #tabbrowser-tabs:not([noshadowfortests])
.tabbrowser-tab:is([visuallyselected], [multiselected]) .tabbrowser-tab:is([visuallyselected], [multiselected])

View file

@ -7,6 +7,26 @@
background-color: var(--tab-selected-bgcolor, var(--toolbar-bgcolor)) !important; background-color: var(--tab-selected-bgcolor, var(--toolbar-bgcolor)) !important;
} }
#pinned-tabs-container
> .tabbrowser-tab
> .tab-stack
> .tab-background[selected],
#tabbrowser-tabs:not([movingtab])
> #pinned-tabs-container
> .tabbrowser-tab
> .tab-stack
> .tab-background[selected],
#pinned-tabs-container
> tab-group
> .tabbrowser-tab
> .tab-stack
> .tab-background[selected],
#tabbrowser-tabs[orient="horizontal"]:not([movingtab])
> #pinned-tabs-container
> tab-group
> .tabbrowser-tab
> .tab-stack
> .tab-background[selected],
#tabbrowser-arrowscrollbox #tabbrowser-arrowscrollbox
> .tabbrowser-tab > .tabbrowser-tab
> .tab-stack > .tab-stack

View file

@ -7,6 +7,17 @@
} }
} }
#tabbrowser-tabs:not([movingtab])
> #pinned-tabs-container
> .tabbrowser-tab
> .tab-stack
> .tab-background[multiselected]:not([selected]),
#tabbrowser-tabs:not([movingtab])
> #pinned-tabs-container
> tab-group
> .tabbrowser-tab
> .tab-stack
> .tab-background[multiselected]:not([selected]),
#tabbrowser-tabs:not([movingtab]) #tabbrowser-tabs:not([movingtab])
> #tabbrowser-arrowscrollbox > #tabbrowser-arrowscrollbox
> .tabbrowser-tab > .tabbrowser-tab

View file

@ -23,6 +23,7 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
#pinned-tabs-container,
#tabbrowser-arrowscrollbox { #tabbrowser-arrowscrollbox {
--start-tab-separator-position-x: -1.5px; --start-tab-separator-position-x: -1.5px;
--end-tab-separator-position-x: 1.5px; --end-tab-separator-position-x: 1.5px;
@ -69,6 +70,7 @@
} }
} }
#pinned-tabs-container:not([orient="vertical"]):not(:empty):not(:has(.tabbrowser-tab[pinned]:is([visuallyselected], [multiselected], :hover):last-of-type)) ~ #tabbrowser-arrowscrollbox:not([orient="vertical"]) .tabbrowser-tab:not([visuallyselected], [multiselected], :hover):first-of-type .tab-stack::before,
#tabbrowser-tabs:not([orient="vertical"]) .tabbrowser-tab:not([visuallyselected], [multiselected], :hover, :first-of-type) .tab-stack::before { #tabbrowser-tabs:not([orient="vertical"]) .tabbrowser-tab:not([visuallyselected], [multiselected], :hover, :first-of-type) .tab-stack::before {
opacity: var(--tab-separator-opacity); opacity: var(--tab-separator-opacity);
} }

View file

@ -48,6 +48,7 @@ spacer:is([part="overflow-start-indicator"], [part="overflow-end-indicator"]),
} }
/* Pinned */ /* Pinned */
#tabbrowser-tabs[positionpinnedtabs] > #pinned-tabs-container > .tabbrowser-tab[pinned][selected="true"],
#tabbrowser-tabs[positionpinnedtabs] > #tabbrowser-arrowscrollbox > .tabbrowser-tab[pinned][selected="true"] { #tabbrowser-tabs[positionpinnedtabs] > #tabbrowser-arrowscrollbox > .tabbrowser-tab[pinned][selected="true"] {
position: relative !important; position: relative !important;
} }
@ -70,12 +71,13 @@ spacer:is([part="overflow-start-indicator"], [part="overflow-end-indicator"]),
/* Padding */ /* Padding */
@include _asTitlebar_preSpacer { @include _asTitlebar_preSpacer {
#pinned-tabs-container,
#tabbrowser-arrowscrollbox { #tabbrowser-arrowscrollbox {
margin-inline: 2px !important; margin-inline: 2px !important;
} :root[sizemode="normal"] & {
:root[sizemode="normal"] #tabbrowser-arrowscrollbox {
margin-inline: 6px !important; margin-inline: 6px !important;
} }
}
} }

View file

@ -40,6 +40,7 @@ See the above repository for updates as well as full license text. */
} }
.scrollbox-clip[orient="horizontal"], .scrollbox-clip[orient="horizontal"],
#pinned-tabs-container,
#tabbrowser-arrowscrollbox { #tabbrowser-arrowscrollbox {
overflow: -moz-hidden-unscrollable; overflow: -moz-hidden-unscrollable;
display: block; display: block;

View file

@ -46,6 +46,7 @@ spacer[part="overflow-start-indicator"] + .scrollbox-clip > scrollbox {
} }
} }
#pinned-tabs-container,
#tabbrowser-arrowscrollbox { #tabbrowser-arrowscrollbox {
padding-inline-end: calc(16px + (var(--toolbarbutton-inner-padding) + var(--toolbarbutton-outer-padding)) * 2) !important; padding-inline-end: calc(16px + (var(--toolbarbutton-inner-padding) + var(--toolbarbutton-outer-padding)) * 2) !important;
} }

View file

@ -100,10 +100,8 @@ html#main-window menupopup:not(.in-menulist) {
} }
/* Default theme color preservation */ /* Default theme color preservation */
:root[lwtheme-mozlightdark] menupopup:not(#BMB_bookmarksPopup, [placespopup="true"]), /* Legacy */ #{built-in-default-theme()} menupopup:not(#BMB_bookmarksPopup, [placespopup="true"]),
:root[lwtheme-mozlightdark] menupopup:is(#goPopup, #historyMenuPopup, #bookmarksMenuPopup), /* Legacy */ #{built-in-default-theme()} menupopup:is(#goPopup, #historyMenuPopup, #bookmarksMenuPopup) {
:root:is([style*="--lwt-accent-color: rgb(240, 240, 244); --lwt-text-color: rgba(21, 20, 26);"], [style*="--lwt-accent-color: rgb(28, 27, 34); --lwt-text-color: rgba(251, 251, 254);"]) menupopup:not(#BMB_bookmarksPopup, [placespopup="true"]),
:root:is([style*="--lwt-accent-color: rgb(240, 240, 244); --lwt-text-color: rgba(21, 20, 26);"], [style*="--lwt-accent-color: rgb(28, 27, 34); --lwt-text-color: rgba(251, 251, 254);"]) menupopup:is(#goPopup, #historyMenuPopup, #bookmarksMenuPopup) {
--menu-color: var(--toolbar-color, var(--in-content-page-color)) !important; --menu-color: var(--toolbar-color, var(--in-content-page-color)) !important;
--arrowpanel-background: var( --arrowpanel-background: var(
--toolbar-bgcolor, --toolbar-bgcolor,

View file

@ -241,13 +241,25 @@
/* Hard Coded */ /* Hard Coded */
@include Option("userChrome.tab.color_like_toolbar") { @include Option("userChrome.tab.color_like_toolbar") {
:root[lwtheme-mozlightdark][lwt-default-theme-in-dark-mode] /* Legacy */
#tabbrowser-tabs:not([movingtab])
> #pinned-tabs-container
> .tabbrowser-tab
> .tab-stack
> .tab-background[selected],
:root#{$builtInDarkStyle}
#tabbrowser-tabs:not([movingtab])
> #pinned-tabs-container
> .tabbrowser-tab
> .tab-stack
> .tab-background[selected],
:root[lwtheme-mozlightdark][lwt-default-theme-in-dark-mode] /* Legacy */ :root[lwtheme-mozlightdark][lwt-default-theme-in-dark-mode] /* Legacy */
#tabbrowser-tabs:not([movingtab]) #tabbrowser-tabs:not([movingtab])
> #tabbrowser-arrowscrollbox > #tabbrowser-arrowscrollbox
> .tabbrowser-tab > .tabbrowser-tab
> .tab-stack > .tab-stack
> .tab-background[selected], > .tab-background[selected],
:root[style*="--lwt-accent-color: rgb(28, 27, 34); --lwt-text-color: rgba(251, 251, 254);"][lwt-default-theme-in-dark-mode] :root#{$builtInDarkStyle}
#tabbrowser-tabs:not([movingtab]) #tabbrowser-tabs:not([movingtab])
> #tabbrowser-arrowscrollbox > #tabbrowser-arrowscrollbox
> .tabbrowser-tab > .tabbrowser-tab

View file

@ -342,6 +342,24 @@
} }
} }
:root#{$not_lwtheme}
#tabbrowser-tabs:not([movingtab])
> #pinned-tabs-container
> .tabbrowser-tab
> .tab-stack
> .tab-background[multiselected]:not([selected]),
:root[lwtheme-mozlightdark] /* Legacy */
#tabbrowser-tabs:not([movingtab])
> #pinned-tabs-container
> .tabbrowser-tab
> .tab-stack
> .tab-background[multiselected]:not([selected]),
#{built-in-default-theme()}
#tabbrowser-tabs:not([movingtab])
> #pinned-tabs-container
> .tabbrowser-tab
> .tab-stack
> .tab-background[multiselected]:not([selected]),
:root#{$not_lwtheme} :root#{$not_lwtheme}
#tabbrowser-tabs:not([movingtab]) #tabbrowser-tabs:not([movingtab])
> #tabbrowser-arrowscrollbox > #tabbrowser-arrowscrollbox
@ -354,7 +372,7 @@
> .tabbrowser-tab > .tabbrowser-tab
> .tab-stack > .tab-stack
> .tab-background[multiselected]:not([selected]), > .tab-background[multiselected]:not([selected]),
:root:is([style*="--lwt-accent-color: rgb(240, 240, 244); --lwt-text-color: rgba(21, 20, 26);"], [style*="--lwt-accent-color: rgb(28, 27, 34); --lwt-text-color: rgba(251, 251, 254);"]) #{built-in-default-theme()}
#tabbrowser-tabs:not([movingtab]) #tabbrowser-tabs:not([movingtab])
> #tabbrowser-arrowscrollbox > #tabbrowser-arrowscrollbox
> .tabbrowser-tab > .tabbrowser-tab

View file

@ -9,13 +9,13 @@ $_lightText: '[lwthemetextcolor="bright"]';
$_darkText: ":not(#{$_lightText})"; $_darkText: ":not(#{$_lightText})";
$_sysDark: "[lwt-default-theme-in-dark-mode]"; $_sysDark: "[lwt-default-theme-in-dark-mode]";
$_lightStyle: '[style*="--lwt-accent-color: rgb(240, 240, 244); --lwt-text-color: rgba(21, 20, 26);"]'; $builtInLightStyle: ':is([style*="--lwt-accent-color: rgb(240, 240, 244); --lwt-text-color: rgba(21, 20, 26);"], [builtintheme][devtoolstheme="light"])';
$_darkStyle: '[style*="--lwt-accent-color: rgb(28, 27, 34); --lwt-text-color: rgba(251, 251, 254);"]'; $builtInDarkStyle: ':is([style*="--lwt-accent-color: rgb(28, 27, 34); --lwt-text-color: rgba(251, 251, 254);"], [builtintheme][devtoolstheme="dark"])';
//== Mixin ===================================================================== //== Mixin =====================================================================
@function built-in-default-theme() { @function built-in-default-theme() {
$oldDefault: selector.append(":root", $_lightdark); $oldDefault: selector.append(":root", $_lightdark);
$newDefault: selector.append(":root", ":is(#{$_lightStyle}, #{$_darkStyle})"); $newDefault: selector.append(":root", ":is(#{$builtInLightStyle}, #{$builtInDarkStyle})");
@return "#{$oldDefault}, #{$newDefault}"; @return "#{$oldDefault}, #{$newDefault}";
} }
@ -29,14 +29,14 @@ $_darkStyle: '[style*="--lwt-accent-color: rgb(28, 27, 34); --lwt-text-color: rg
@function built-in-light-theme() { @function built-in-light-theme() {
$oldLight: selector.append(":root", $_lightdark, $_darkText); $oldLight: selector.append(":root", $_lightdark, $_darkText);
$newLight: selector.append(":root", $_lightStyle); $newLight: selector.append(":root", $builtInLightStyle);
@return "#{$oldLight}, #{$newLight}"; @return "#{$oldLight}, #{$newLight}";
} }
@function built-in-dark-theme() { @function built-in-dark-theme() {
$oldDark: selector.append(":root", $_lightdark, $_lightText); $oldDark: selector.append(":root", $_lightdark, $_lightText);
$newDark: selector.append(":root", $_darkStyle); $newDark: selector.append(":root", $builtInDarkStyle);
@return "#{$oldDark}, #{$newDark}"; @return "#{$oldDark}, #{$newDark}";
} }