Add: Option - userChrome.tab.one_line

This commit is contained in:
alstjr7375 2022-07-03 21:25:56 +09:00
parent 8c010c73ac
commit d6d26565a5
4 changed files with 78 additions and 0 deletions

View file

@ -3958,6 +3958,44 @@
}
}
}
/*= Tab Bar - Oneliner =======================================================*/
@supports -moz-bool-pref("userChrome.tab.one_line") {
#navigator-toolbox {
display: flex !important;
flex-wrap: wrap;
background-color: var(--toolbar-bgcolor) !important;
}
:root {
--navbar-size: 40vw;
}
#titlebar,
#nav-bar,
#PersonalToolbar,
#tab-notification-deck-template {
flex-basis: 100vw;
}
#TabsToolbar {
margin-left: var(--navbar-size) !important;
}
#nav-bar {
margin-right: calc(100vw - var(--navbar-size)) !important;
margin-top: calc(-1 * var(--tab-min-height)) !important;
height: var(--tab-min-height) !important;
}
#urlbar-container {
min-width: 0px !important;
}
toolbarspring.chromeclass-toolbar-additional,
.titlebar-spacer {
display: none !important;
}
}
/*= Tab Bar - Connect to window ==============================================*/
@supports -moz-bool-pref("userChrome.tab.connect_to_window") {
.tab-background {

View file

@ -23,6 +23,11 @@
@import "tabs_on_bottom";
}
/*= Tab Bar - Oneliner =======================================================*/
@include Option("userChrome.tab.one_line") {
@import "one_line";
}
/*= Tab Bar - Connect to window ==============================================*/
@include Option("userChrome.tab.connect_to_window") {
@import "connect_to_window";

34
src/tabbar/_one_line.scss Normal file
View file

@ -0,0 +1,34 @@
#navigator-toolbox {
display: flex !important;
flex-wrap: wrap;
background-color: var(--toolbar-bgcolor) !important;
}
:root {
--navbar-size: 40vw;
}
#titlebar,
#nav-bar,
#PersonalToolbar,
#tab-notification-deck-template {
flex-basis: 100vw;
}
#TabsToolbar {
margin-left: var(--navbar-size) !important;
}
#nav-bar {
margin-right: calc(100vw - var(--navbar-size)) !important;
margin-top: calc(-1 * var(--tab-min-height)) !important;
height: var(--tab-min-height) !important;
}
#urlbar-container {
min-width: 0px !important;
}
toolbarspring.chromeclass-toolbar-additional,
.titlebar-spacer {
display: none !important;
}

View file

@ -95,6 +95,7 @@ user_pref("userChrome.tab.bottom_rounded_corner", true);
// user_pref("userChrome.tab.on_bottom", true);
// user_pref("userChrome.tab.on_bottom.above_bookmark", true); // Need on_bottom
// user_pref("userChrome.tab.on_bottom.menubar_on_top", true); // Need on_bottom
// user_pref("userChrome.tab.one_line", true);
// user_pref("userChrome.tab.always_show_tab_icon", true);
// user_pref("userChrome.tab.close_button_at_pinned", true);
// user_pref("userChrome.tab.close_button_at_pinned.always", true);