mirror of
https://codeberg.org/claui/mobile-config-firefox.git
synced 2024-11-10 03:40:14 +00:00
Scope styles that select #browser to browser.xhtml
This commit is contained in:
parent
783914689c
commit
6263334baa
5 changed files with 284 additions and 270 deletions
|
@ -16,40 +16,42 @@ See the above repository for updates as well as full license text. */
|
||||||
/* This maximum visible rows won't work before Fx66 */
|
/* This maximum visible rows won't work before Fx66 */
|
||||||
/* So this setting does nothing on Fx65 and all tab rows will be shown */
|
/* So this setting does nothing on Fx65 and all tab rows will be shown */
|
||||||
|
|
||||||
:root{
|
@-moz-document url(chrome://browser/content/browser.xhtml){
|
||||||
|
|
||||||
|
:root{
|
||||||
--multirow-toolbar-height: 40px;
|
--multirow-toolbar-height: 40px;
|
||||||
--multirow-top-padding: 0px;
|
--multirow-top-padding: 0px;
|
||||||
--multirow-n-rows: 3;
|
--multirow-n-rows: 3;
|
||||||
--multirow-tab-min-width: 100px;
|
--multirow-tab-min-width: 100px;
|
||||||
--multirow-tab-dynamic-width: 1; /* Change to 0 for fixed-width tabs using the above width. */
|
--multirow-tab-dynamic-width: 1; /* Change to 0 for fixed-width tabs using the above width. */
|
||||||
}
|
}
|
||||||
@media (-moz-os-version: windows-win10){
|
@media (-moz-os-version: windows-win10){
|
||||||
:root[sizemode="maximized"]{ --multirow-top-padding: 8px }
|
:root[sizemode="maximized"]{ --multirow-top-padding: 8px }
|
||||||
}
|
}
|
||||||
:root[uidensity="compact"]{--multirow-toolbar-height: 32px}
|
:root[uidensity="compact"]{--multirow-toolbar-height: 32px}
|
||||||
:root{ border-top-width: 0px !important }
|
:root{ border-top-width: 0px !important }
|
||||||
|
|
||||||
#main-window > body > box,
|
#main-window > body > box,
|
||||||
#navigator-toolbox{ -moz-box-ordinal-group: 2; border-bottom: 0px !important }
|
#navigator-toolbox{ -moz-box-ordinal-group: 2; border-bottom: 0px !important }
|
||||||
|
|
||||||
#titlebar{-moz-appearance: none !important; } /* Try setting to "-moz-window-titlebar" if you face issues */
|
#titlebar{-moz-appearance: none !important; } /* Try setting to "-moz-window-titlebar" if you face issues */
|
||||||
|
|
||||||
#nav-bar{
|
#nav-bar{
|
||||||
position: fixed !important;
|
position: fixed !important;
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-left: 30px;
|
margin-left: 30px;
|
||||||
width: calc(100vw - 30px);
|
width: calc(100vw - 30px);
|
||||||
top: var(--multirow-top-padding);
|
top: var(--multirow-top-padding);
|
||||||
}
|
}
|
||||||
:root[inFullscreen] #nav-bar,
|
:root[inFullscreen] #nav-bar,
|
||||||
:root[tabsintitlebar] #nav-bar{
|
:root[tabsintitlebar] #nav-bar{
|
||||||
margin-right: 138px;
|
margin-right: 138px;
|
||||||
/* width == 100vw - margins */
|
/* width == 100vw - margins */
|
||||||
width: calc(100vw - 168px);
|
width: calc(100vw - 168px);
|
||||||
top: var(--multirow-top-padding);
|
top: var(--multirow-top-padding);
|
||||||
}
|
}
|
||||||
|
|
||||||
:root[inFullscreen] #TabsToolbar > #window-controls{
|
:root[inFullscreen] #TabsToolbar > #window-controls{
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
@ -57,33 +59,33 @@ See the above repository for updates as well as full license text. */
|
||||||
width: 138px;
|
width: 138px;
|
||||||
height: var(--multirow-toolbar-height);
|
height: var(--multirow-toolbar-height);
|
||||||
background:var(--toolbar-bgcolor);
|
background:var(--toolbar-bgcolor);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fix incorrect vertical alignment with megabar */
|
/* Fix incorrect vertical alignment with megabar */
|
||||||
#urlbar[breakout]{ --urlbar-toolbar-height: var(--multirow-toolbar-height) !important; }
|
#urlbar[breakout]{ --urlbar-toolbar-height: var(--multirow-toolbar-height) !important; }
|
||||||
|
|
||||||
/* Fix customization view */
|
/* Fix customization view */
|
||||||
#customization-panelWrapper > .panel-arrowbox > .panel-arrow{ margin-inline-end: initial !important; }
|
#customization-panelWrapper > .panel-arrowbox > .panel-arrow{ margin-inline-end: initial !important; }
|
||||||
|
|
||||||
#customization-container,
|
#customization-container,
|
||||||
:root:not([inFullscreen]) #content-deck,
|
:root:not([inFullscreen]) #content-deck,
|
||||||
:root:not([inFullscreen]) #browser{ margin-top: calc(var(--multirow-toolbar-height) + var(--multirow-top-padding))}
|
:root:not([inFullscreen]) #browser{ margin-top: calc(var(--multirow-toolbar-height) + var(--multirow-top-padding))}
|
||||||
|
|
||||||
:root[inFullscreen] #TabsToolbar > #window-controls,
|
:root[inFullscreen] #TabsToolbar > #window-controls,
|
||||||
:root[inFullscreen] #toolbar-menubar,
|
:root[inFullscreen] #toolbar-menubar,
|
||||||
:root[inFullscreen] #nav-bar{ top: calc(1px - (var(--multirow-toolbar-height) + var(--multirow-top-padding))) }
|
:root[inFullscreen] #nav-bar{ top: calc(1px - (var(--multirow-toolbar-height) + var(--multirow-top-padding))) }
|
||||||
|
|
||||||
:root[inFullscreen] #navigator-toolbox:hover > #titlebar > #TabsToolbar > #window-controls,
|
:root[inFullscreen] #navigator-toolbox:hover > #titlebar > #TabsToolbar > #window-controls,
|
||||||
:root[inFullscreen] #navigator-toolbox:hover > #nav-bar,
|
:root[inFullscreen] #navigator-toolbox:hover > #nav-bar,
|
||||||
:root[inFullscreen] #navigator-toolbox:hover > #titlebar > #toolbar-menubar{ top: 0px }
|
:root[inFullscreen] #navigator-toolbox:hover > #titlebar > #toolbar-menubar{ top: 0px }
|
||||||
|
|
||||||
/* Restyle nav-bar and menubar */
|
/* Restyle nav-bar and menubar */
|
||||||
#nav-bar-customization-target{ flex-grow: 1 }
|
#nav-bar-customization-target{ flex-grow: 1 }
|
||||||
|
|
||||||
#nav-bar-overflow-button,
|
#nav-bar-overflow-button,
|
||||||
#PanelUI-menu-button{ height: var(--multirow-toolbar-height); }
|
#PanelUI-menu-button{ height: var(--multirow-toolbar-height); }
|
||||||
|
|
||||||
#toolbar-menubar{
|
#toolbar-menubar{
|
||||||
height: var(--multirow-toolbar-height);
|
height: var(--multirow-toolbar-height);
|
||||||
position: fixed;
|
position: fixed;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -92,27 +94,27 @@ See the above repository for updates as well as full license text. */
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
color: var(--lwt-text-color);
|
color: var(--lwt-text-color);
|
||||||
background: linear-gradient(to right, var(--toolbar-bgcolor), var(--toolbar-bgcolor) 30px, transparent 30px) no-repeat;
|
background: linear-gradient(to right, var(--toolbar-bgcolor), var(--toolbar-bgcolor) 30px, transparent 30px) no-repeat;
|
||||||
}
|
}
|
||||||
#menubar-items + spacer{ flex-grow: 1 }
|
#menubar-items + spacer{ flex-grow: 1 }
|
||||||
|
|
||||||
#toolbar-menubar > #menubar-items{
|
#toolbar-menubar > #menubar-items{
|
||||||
-moz-box-pack: center;
|
-moz-box-pack: center;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
#toolbar-menubar:hover{ z-index: 2 }
|
#toolbar-menubar:hover{ z-index: 2 }
|
||||||
#toolbar-menubar:hover > #menubar-items{
|
#toolbar-menubar:hover > #menubar-items{
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
background-image: linear-gradient( to left,transparent,var(--lwt-accent-color) 35px);
|
background-image: linear-gradient( to left,transparent,var(--lwt-accent-color) 35px);
|
||||||
}
|
}
|
||||||
|
|
||||||
#toolbar-menubar > .titlebar-buttonbox-container{ background: var(--toolbar-bgcolor); }
|
#toolbar-menubar > .titlebar-buttonbox-container{ background: var(--toolbar-bgcolor); }
|
||||||
|
|
||||||
#toolbar-menubar > .titlebar-buttonbox-container > .titlebar-buttonbox{ height: 100% ;}
|
#toolbar-menubar > .titlebar-buttonbox-container > .titlebar-buttonbox{ height: 100% ;}
|
||||||
|
|
||||||
#main-menubar:last-child{ padding-inline-end: 40px }
|
#main-menubar:last-child{ padding-inline-end: 40px }
|
||||||
#toolbar-menubar > toolbarspring {
|
#toolbar-menubar > toolbarspring {
|
||||||
background: url("chrome://global/skin/icons/settings.svg") no-repeat 10px;
|
background: url("chrome://global/skin/icons/settings.svg") no-repeat 10px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -120,16 +122,15 @@ See the above repository for updates as well as full license text. */
|
||||||
-moz-context-properties: fill;
|
-moz-context-properties: fill;
|
||||||
min-width: 28px !important;
|
min-width: 28px !important;
|
||||||
max-width: 28px !important;
|
max-width: 28px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
:root[tabsintitlebar] #PanelUI-button{ margin-right: 20px; }
|
:root[tabsintitlebar] #PanelUI-button{ margin-right: 20px; }
|
||||||
|
|
||||||
#tabbrowser-tabs{
|
#tabbrowser-tabs{
|
||||||
min-height: unset !important;
|
min-height: unset !important;
|
||||||
padding-inline-start: 0px !important
|
padding-inline-start: 0px !important
|
||||||
}
|
}
|
||||||
|
|
||||||
@-moz-document url(chrome://browser/content/browser.xhtml){
|
|
||||||
#scrollbutton-up~spacer,
|
#scrollbutton-up~spacer,
|
||||||
#scrollbutton-up,
|
#scrollbutton-up,
|
||||||
#scrollbutton-down{ display: var(--scrollbutton-display-model,initial) }
|
#scrollbutton-down{ display: var(--scrollbutton-display-model,initial) }
|
||||||
|
@ -142,24 +143,23 @@ See the above repository for updates as well as full license text. */
|
||||||
scrollbar-color: currentColor transparent;
|
scrollbar-color: currentColor transparent;
|
||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#tabbrowser-arrowscrollbox{
|
#tabbrowser-arrowscrollbox{
|
||||||
overflow: -moz-hidden-unscrollable;
|
overflow: -moz-hidden-unscrollable;
|
||||||
display: block;
|
display: block;
|
||||||
--scrollbutton-display-model: none;
|
--scrollbutton-display-model: none;
|
||||||
--uc-scrollbox-max-height: calc(var(--tab-min-height) * var(--multirow-n-rows));
|
--uc-scrollbox-max-height: calc(var(--tab-min-height) * var(--multirow-n-rows));
|
||||||
}
|
}
|
||||||
:root[inFullscreen] #tabbrowser-arrowscrollbox:not(:hover){ --uc-scrollbox-max-height: 1px; min-height: 1px !important; }
|
:root[inFullscreen] #tabbrowser-arrowscrollbox:not(:hover){ --uc-scrollbox-max-height: 1px; min-height: 1px !important; }
|
||||||
|
|
||||||
.tabbrowser-tab{ height: var(--tab-min-height); }
|
.tabbrowser-tab{ height: var(--tab-min-height); }
|
||||||
|
|
||||||
.tabbrowser-tab[pinned]{
|
.tabbrowser-tab[pinned]{
|
||||||
position: static !important;
|
position: static !important;
|
||||||
margin-inline-start: 0px !important;
|
margin-inline-start: 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabbrowser-tab[fadein]:not([pinned]){
|
.tabbrowser-tab[fadein]:not([pinned]){
|
||||||
min-width: var(--multirow-tab-min-width) !important;
|
min-width: var(--multirow-tab-min-width) !important;
|
||||||
flex-grow: var(--multirow-tab-dynamic-width);
|
flex-grow: var(--multirow-tab-dynamic-width);
|
||||||
/*
|
/*
|
||||||
|
@ -167,18 +167,19 @@ See the above repository for updates as well as full license text. */
|
||||||
Don't set to none or you'll see errors in console when closing tabs
|
Don't set to none or you'll see errors in console when closing tabs
|
||||||
*/
|
*/
|
||||||
/*max-width: 100vw !important;*/
|
/*max-width: 100vw !important;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabbrowser-tab > stack{ width: 100%; height: 100%; }
|
||||||
|
|
||||||
|
/* This should fix potential flash that could occur when bottom border is hovered to show tabs in fullscreen mode */
|
||||||
|
#tabbrowser-tabpanels{ background-color: var(--lwt-accent-color) !important; }
|
||||||
|
|
||||||
|
/* Hide some things that are unnecessary in multi-row below content mode */
|
||||||
|
|
||||||
|
#TabsToolbar > #window-controls,
|
||||||
|
#alltabs-button,
|
||||||
|
:root:not([customizing]) #TabsToolbar #new-tab-button,
|
||||||
|
#tabbrowser-arrowscrollbox > spacer,
|
||||||
|
.tabbrowser-tab::after{ display: none !important } /* Also disables tab separators since they mysteriously break tab-row scrolling */
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabbrowser-tab > stack{ width: 100%; height: 100%; }
|
|
||||||
|
|
||||||
/* This should fix potential flash that could occur when bottom border is hovered to show tabs in fullscreen mode */
|
|
||||||
#tabbrowser-tabpanels{ background-color: var(--lwt-accent-color) !important; }
|
|
||||||
|
|
||||||
/* Hide some things that are unnecessary in multi-row below content mode */
|
|
||||||
|
|
||||||
#TabsToolbar > #window-controls,
|
|
||||||
#alltabs-button,
|
|
||||||
:root:not([customizing]) #TabsToolbar #new-tab-button,
|
|
||||||
#tabbrowser-arrowscrollbox > spacer,
|
|
||||||
.tabbrowser-tab::after{ display: none !important } /* Also disables tab separators since they mysteriously break tab-row scrolling */
|
|
||||||
|
|
||||||
|
|
|
@ -3,34 +3,36 @@ See the above repository for updates as well as full license text. */
|
||||||
|
|
||||||
/* Moves the main toolbar (#nav-bar) to the bottom of the window */
|
/* Moves the main toolbar (#nav-bar) to the bottom of the window */
|
||||||
|
|
||||||
/* REQUIRES browser.urlbar.update1 to be true, otherwise urlbar won't show any results */
|
@-moz-document url(chrome://browser/content/browser.xhtml){
|
||||||
|
|
||||||
:root:not([inFullscreen]){
|
:root:not([inFullscreen]){
|
||||||
--uc-bottom-toolbar-height: calc(39px + var(--toolbarbutton-outer-padding) )
|
--uc-bottom-toolbar-height: calc(39px + var(--toolbarbutton-outer-padding) )
|
||||||
}
|
}
|
||||||
|
|
||||||
:root[uidensity="compact"]:not([inFullscreen]){
|
:root[uidensity="compact"]:not([inFullscreen]){
|
||||||
--uc-bottom-toolbar-height: calc(29px + var(--toolbarbutton-outer-padding) )
|
--uc-bottom-toolbar-height: calc(29px + var(--toolbarbutton-outer-padding) )
|
||||||
}
|
}
|
||||||
|
|
||||||
#browser,
|
#browser,
|
||||||
#customization-container{ margin-bottom: var(--uc-bottom-toolbar-height,0px) }
|
#customization-container{ margin-bottom: var(--uc-bottom-toolbar-height,0px) }
|
||||||
|
|
||||||
#nav-bar{
|
#nav-bar{
|
||||||
position: fixed !important;
|
position: fixed !important;
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#nav-bar-customization-target{ flex-grow: 1; }
|
#nav-bar-customization-target{ flex-grow: 1; }
|
||||||
|
|
||||||
#urlbar[breakout][breakout-extend]{
|
#urlbar[breakout][breakout-extend]{
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
flex-direction: column-reverse;
|
flex-direction: column-reverse;
|
||||||
bottom: -2px !important; /* Change to 3-5 px if using compact_urlbar_megabar.css depending on toolbar density */
|
bottom: -2px !important; /* Change to 3-5 px if using compact_urlbar_megabar.css depending on toolbar density */
|
||||||
top: auto !important;
|
top: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#urlbar[open] > .urlbarView{ margin-block: 0px calc(var(--urlbar-height) + 1px) !important; box-shadow: none !important; }
|
#urlbar[open] > .urlbarView{ margin-block: 0px calc(var(--urlbar-height) + 1px) !important; box-shadow: none !important; }
|
||||||
|
|
||||||
|
}
|
|
@ -5,57 +5,61 @@ See the above repository for updates as well as full license text. */
|
||||||
|
|
||||||
/* By default, menubar will stay on top with two options to select it's behavior - see below */
|
/* By default, menubar will stay on top with two options to select it's behavior - see below */
|
||||||
|
|
||||||
#titlebar{ -moz-appearance: none !important; }
|
@-moz-document url(chrome://browser/content/browser.xhtml){
|
||||||
|
|
||||||
@media (-moz-os-version: windows-win10){
|
#titlebar{ -moz-appearance: none !important; }
|
||||||
|
|
||||||
|
@media (-moz-os-version: windows-win10){
|
||||||
:root[sizemode="maximized"][tabsintitlebar] :-moz-any(#browser,#customization-container,#toolbar-menubar){ margin-top: 8px !important; }
|
:root[sizemode="maximized"][tabsintitlebar] :-moz-any(#browser,#customization-container,#toolbar-menubar){ margin-top: 8px !important; }
|
||||||
}
|
}
|
||||||
|
|
||||||
#mainPopupSet,
|
#mainPopupSet,
|
||||||
#browser,
|
#browser,
|
||||||
#customization-container
|
#customization-container
|
||||||
,#nav-bar, #PersonalToolbar/* Remove this row if you want tabs to be the top-most row */
|
,#nav-bar, #PersonalToolbar/* Remove this row if you want tabs to be the top-most row */
|
||||||
{ -moz-box-ordinal-group: 0 }
|
{ -moz-box-ordinal-group: 0 }
|
||||||
|
|
||||||
#toolbar-menubar{ position: fixed; display: flex; width: 100vw; top: 0px; }
|
#toolbar-menubar{ position: fixed; display: flex; width: 100vw; top: 0px; }
|
||||||
|
|
||||||
#toolbar-menubar > spacer{ flex-grow: 1 }
|
#toolbar-menubar > spacer{ flex-grow: 1 }
|
||||||
|
|
||||||
#urlbar[breakout][breakout-extend]{
|
#urlbar[breakout][breakout-extend]{
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
flex-direction: column-reverse;
|
flex-direction: column-reverse;
|
||||||
bottom: -2px !important; /* Change to 3-5 px if using compact_urlbar_megabar.css depending on toolbar density */
|
bottom: -2px !important; /* Change to 3-5 px if using compact_urlbar_megabar.css depending on toolbar density */
|
||||||
top: auto !important;
|
top: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#urlbar[open] > .urlbarView{ margin-block: 0px calc(var(--urlbar-height) + 1px) !important; box-shadow: none !important; }
|
||||||
|
|
||||||
|
/* Yeah, removes window controls. Likely not wanted on bottom row */
|
||||||
|
#TabsToolbar > .titlebar-buttonbox-container{ display: none }
|
||||||
|
#toolbar-menubar > .titlebar-buttonbox-container{ order: 1000 }
|
||||||
|
|
||||||
|
/**************
|
||||||
|
Menubar options
|
||||||
|
***************/
|
||||||
|
|
||||||
|
/* Activate only ONE of the following */
|
||||||
|
|
||||||
|
/* 1. Overlay menubar on top of web-content (default) */
|
||||||
|
/* This should be used if menubar is disabled and Alt-key is used to activate it temporarily */
|
||||||
|
|
||||||
|
#toolbar-menubar{ z-index: 1; background-color: var(--lwt-accent-color,black) }
|
||||||
|
|
||||||
|
/* 2. Static menubar on top of the window, uncomment to enable this option */
|
||||||
|
/* Use when menubar is enabled to always show it */
|
||||||
|
|
||||||
|
/*
|
||||||
|
#browser,#customization-container{ padding-top: 28px }
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* 3. Menubar below content, above tabs toolbar */
|
||||||
|
/*
|
||||||
|
#toolbar-menubar{ position: static; display: -moz-box; margin-top: 0px !important; }
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* set to "reverse" (without quotes) if you want tabs above menubar with option 3 */
|
||||||
|
#titlebar{ -moz-box-direction: normal; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#urlbar[open] > .urlbarView{ margin-block: 0px calc(var(--urlbar-height) + 1px) !important; box-shadow: none !important; }
|
|
||||||
|
|
||||||
/* Yeah, removes window controls. Likely not wanted on bottom row */
|
|
||||||
#TabsToolbar > .titlebar-buttonbox-container{ display: none }
|
|
||||||
#toolbar-menubar > .titlebar-buttonbox-container{ order: 1000 }
|
|
||||||
|
|
||||||
/**************
|
|
||||||
Menubar options
|
|
||||||
***************/
|
|
||||||
|
|
||||||
/* Activate only ONE of the following */
|
|
||||||
|
|
||||||
/* 1. Overlay menubar on top of web-content (default) */
|
|
||||||
/* This should be used if menubar is disabled and Alt-key is used to activate it temporarily */
|
|
||||||
|
|
||||||
#toolbar-menubar{ z-index: 1; background-color: var(--lwt-accent-color,black) }
|
|
||||||
|
|
||||||
/* 2. Static menubar on top of the window, uncomment to enable this option */
|
|
||||||
/* Use when menubar is enabled to always show it */
|
|
||||||
|
|
||||||
/*
|
|
||||||
#browser,#customization-container{ padding-top: 28px }
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* 3. Menubar below content, above tabs toolbar */
|
|
||||||
/*
|
|
||||||
#toolbar-menubar{ position: static; display: -moz-box; margin-top: 0px !important; }
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* set to "reverse" (without quotes) if you want tabs above menubar with option 3 */
|
|
||||||
#titlebar{ -moz-box-direction: normal; }
|
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/vertical_bookmarks_toolbar.css made available under Mozilla Public License v. 2.0
|
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/vertical_bookmarks_toolbar.css made available under Mozilla Public License v. 2.0
|
||||||
See the above repository for updates as well as full license text. */
|
See the above repository for updates as well as full license text. */
|
||||||
|
|
||||||
Makes bookmarks toolbar appear vertically at the left side of the window
|
/* Makes bookmarks toolbar appear vertically at the left side of the window */
|
||||||
|
|
||||||
:root:not([inDOMFullscreen]){
|
@-moz-document url(chrome://browser/content/browser.xhtml){
|
||||||
|
|
||||||
|
:root:not([inDOMFullscreen]){
|
||||||
--uc-vertical-toolbar-width: 60px;
|
--uc-vertical-toolbar-width: 60px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#PersonalToolbar{
|
#PersonalToolbar{
|
||||||
position: fixed;
|
position: fixed;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -18,20 +20,22 @@ Makes bookmarks toolbar appear vertically at the left side of the window
|
||||||
max-height: 100vh !important;
|
max-height: 100vh !important;
|
||||||
padding-bottom: 120px !important;
|
padding-bottom: 120px !important;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#personal-bookmarks{ overflow-y: auto; scrollbar-width: none;}
|
#personal-bookmarks{ overflow-y: auto; scrollbar-width: none;}
|
||||||
|
|
||||||
#PersonalToolbar > #personal-bookmarks > #PlacesToolbar > hbox{ -moz-box-orient: vertical !important; }
|
#PersonalToolbar > #personal-bookmarks > #PlacesToolbar > hbox{ -moz-box-orient: vertical !important; }
|
||||||
#PersonalToolbar #PlacesToolbarItems{
|
#PersonalToolbar #PlacesToolbarItems{
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
#PersonalToolbar #PlacesToolbarItems > .bookmark-item{ padding-block: 4px !important; }
|
#PersonalToolbar #PlacesToolbarItems > .bookmark-item{ padding-block: 4px !important; }
|
||||||
|
|
||||||
body > #browser,
|
body > #browser,
|
||||||
body > #browser-bottombox,
|
body > #browser-bottombox,
|
||||||
#customization-container{
|
#customization-container{
|
||||||
margin-left: var(--uc-vertical-toolbar-width,0);
|
margin-left: var(--uc-vertical-toolbar-width,0);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -6,48 +6,51 @@ See the above repository for updates as well as full license text. */
|
||||||
/* The first element in the menubar is used to "toggle" the file-menu & friends */
|
/* The first element in the menubar is used to "toggle" the file-menu & friends */
|
||||||
/* So, if you want the menu items to be toggleable, just move one button to be before menubar items in the toolbar. If all buttons come after menubar items, then none of those will trigger menubar items. */
|
/* So, if you want the menu items to be toggleable, just move one button to be before menubar items in the toolbar. If all buttons come after menubar items, then none of those will trigger menubar items. */
|
||||||
|
|
||||||
|
@-moz-document url(chrome://browser/content/browser.xhtml){
|
||||||
|
|
||||||
:root:not([customizing]) #titlebar{
|
:root:not([customizing]) #titlebar{
|
||||||
position: fixed;
|
position: fixed;
|
||||||
display: block;
|
display: block;
|
||||||
-moz-appearance: none !important;
|
-moz-appearance: none !important;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
}
|
}
|
||||||
:root:not([customizing]) #navigator-toolbox{ margin-top: var(--tab-min-height) }
|
:root:not([customizing]) #navigator-toolbox{ margin-top: var(--tab-min-height) }
|
||||||
|
|
||||||
#TabsToolbar:not([customizing]){
|
#TabsToolbar:not([customizing]){
|
||||||
position: fixed;
|
position: fixed;
|
||||||
display: block;
|
display: block;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
padding-left: 30px !important;
|
padding-left: 30px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#TabsToolbar > .toolbar-items{ max-width: calc(100vw - 138px) }
|
#TabsToolbar > .toolbar-items{ max-width: calc(100vw - 138px) }
|
||||||
#TabsToolbar > .titlebar-buttonbox-container{
|
#TabsToolbar > .titlebar-buttonbox-container{
|
||||||
display: block !important;
|
display: block !important;
|
||||||
float: right !important;
|
float: right !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#toolbar-menubar:not([customizing]){
|
#toolbar-menubar:not([customizing]){
|
||||||
margin-top: 40px;
|
margin-top: 40px;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
-moz-box-orient: vertical;
|
-moz-box-orient: vertical;
|
||||||
-moz-box-flex: 1;
|
-moz-box-flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#toolbar-menubar > .titlebar-buttonbox-container,#toolbar-menubar > spacer{ display: none !important; }
|
#toolbar-menubar > .titlebar-buttonbox-container,#toolbar-menubar > spacer{ display: none !important; }
|
||||||
|
|
||||||
#toolbar-menubar > #menubar-items{ visibility: collapse }
|
#toolbar-menubar > #menubar-items{ visibility: collapse }
|
||||||
#toolbar-menubar > .toolbarbutton-1:first-child:hover + #menubar-items,#toolbar-menubar > #menubar-items:hover{ visibility: visible }
|
#toolbar-menubar > .toolbarbutton-1:first-child:hover + #menubar-items,#toolbar-menubar > #menubar-items:hover{ visibility: visible }
|
||||||
|
|
||||||
#toolbar-menubar:not([customizing]) #main-menubar{
|
#toolbar-menubar:not([customizing]) #main-menubar{
|
||||||
-moz-box-orient: vertical;
|
-moz-box-orient: vertical;
|
||||||
margin-left: -60px;
|
margin-left: -60px;
|
||||||
background-color: var(--lwt-accent-color)
|
background-color: var(--lwt-accent-color)
|
||||||
}
|
}
|
||||||
|
|
||||||
:root:not([inDOMFullscreen]) > #content-deck,:root:not([inDOMFullscreen]) #browser{ margin-right: 30px }
|
:root:not([inDOMFullscreen]) > #content-deck,:root:not([inDOMFullscreen]) #browser{ margin-right: 30px }
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue