mirror of
https://github.com/black7375/Firefox-UI-Fix.git
synced 2026-04-06 22:02:10 -07:00
Clean: URL Bar -> Combined
This commit is contained in:
parent
acddc3711f
commit
fdbca947d7
9 changed files with 137 additions and 147 deletions
|
|
@ -7410,15 +7410,133 @@
|
|||
display: none !important;
|
||||
}
|
||||
}
|
||||
/** urlbar ********************************************************************/
|
||||
/*= Url Bar - Always show page actions =======================================*/
|
||||
/** Url View UI ***************************************************************/
|
||||
/*= Url View - Always show page actions ======================================*/
|
||||
@supports -moz-bool-pref("userChrome.urlbar.always_show_page_actions") {
|
||||
#urlbar:not([breakout-extend="true"]) #pageActionButton {
|
||||
display: block !important;
|
||||
visibility: visible !important;
|
||||
}
|
||||
}
|
||||
/*= Url Bar - Combined buttons ===============================================*/
|
||||
/*= Url View - Move icon to left =============================================*/
|
||||
@supports -moz-bool-pref("userChrome.urlView.move_icon_to_left") {
|
||||
.urlbarView-type-icon {
|
||||
min-width: 16px !important;
|
||||
height: 16px !important;
|
||||
margin-block: 0 !important;
|
||||
margin-inline-start: 0 !important;
|
||||
}
|
||||
|
||||
.urlbarView-favicon {
|
||||
margin-inline-start: 20px !important;
|
||||
}
|
||||
}
|
||||
/*= Url View - Go button when typing =========================================*/
|
||||
@supports -moz-bool-pref("userChrome.urlView.go_button_when_typing") {
|
||||
#urlbar-input-container[pageproxystate="invalid"] #urlbar-go-button {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
/** Panel UI ******************************************************************/
|
||||
@supports -moz-bool-pref("userChrome.panel.remove_strip") {
|
||||
#appMenu-fxa-separator {
|
||||
--panel-separator-zap-gradient: none;
|
||||
/* Original: linear-gradient(90deg, #9059FF 0%, #FF4AA2 52.08%, #FFBD4F 100%) */
|
||||
}
|
||||
}
|
||||
@supports -moz-bool-pref("userChrome.panel.full_width_separator") {
|
||||
/* Full width separators */
|
||||
:root {
|
||||
/* Original
|
||||
--panel-separator-margin-vertical: 4px;
|
||||
--panel-separator-margin-horizontal: 8px;
|
||||
--panel-separator-margin: var(--panel-separator-margin-vertical) var(--panel-separator-margin-horizontal);
|
||||
*/
|
||||
--panel-separator-margin-horizontal: 0 !important;
|
||||
}
|
||||
}
|
||||
@supports -moz-bool-pref("userChrome.panel.full_width_padding") {
|
||||
/* Original
|
||||
--arrowpanel-menuitem-margin: 0 8px;
|
||||
--arrowpanel-menuitem-padding-block: 8px;
|
||||
--arrowpanel-menuitem-padding-inline: 8px;
|
||||
--arrowpanel-menuitem-padding: var(--arrowpanel-menuitem-padding-block) var(--arrowpanel-menuitem-padding-inline);
|
||||
*/
|
||||
:root,
|
||||
:root:is([uidensity="compact"], [uidensity="touch"]) {
|
||||
--arrowpanel-menuitem-margin: 0 !important;
|
||||
--arrowpanel-menuitem-padding-inline: calc(var(--arrowpanel-menuitem-padding-block) + 8px) !important;
|
||||
}
|
||||
}
|
||||
/** Sidebar UI ****************************************************************/
|
||||
@supports -moz-bool-pref("userChrome.sidebar.overlap") or -moz-bool-pref("userChrome.autohide.sidebar") {
|
||||
#sidebar-box {
|
||||
/* Original
|
||||
min-width: 14em;
|
||||
width: 18em;
|
||||
max-width: 36em;
|
||||
*/
|
||||
--uc-sidebar-width: 40px;
|
||||
--uc-sidebar-activate-width: 18em;
|
||||
--uc-sidebar-activate-width-reverse: calc(-1 * var(--uc-sidebar-activate-width));
|
||||
--uc-sidebar-fullscreen-width: 4px;
|
||||
--uc-sidebar-shadow-color: #28282f;
|
||||
--uc-autohide-sidebar-speed: 750ms;
|
||||
--uc-autohide-fullscreen-sidebar-speed: 1s;
|
||||
--uc-autohide-sidebar-delay: 600ms;
|
||||
/* Wait 0.6s before hiding sidebar */
|
||||
z-index: 1 !important;
|
||||
position: relative !important;
|
||||
box-shadow: 1px 0px 15px -10px var(--uc-sidebar-shadow-color);
|
||||
}
|
||||
#sidebar-box[positionend="true"] {
|
||||
box-shadow: -1px 0px 15px -10px var(--uc-sidebar-shadow-color);
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#sidebar-splitter {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
@supports -moz-bool-pref("userChrome.sidebar.overlap") {
|
||||
#sidebar-box[positionend="true"] {
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
#sidebar-header,
|
||||
#sidebar {
|
||||
background-color: var(--sidebar-background-color) !important;
|
||||
color: var(--sidebar-text-color) !important;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@supports not -moz-bool-pref("userChrome.autohide.sidebar") {
|
||||
#sidebar-box,
|
||||
#sidebar {
|
||||
min-width: var(--uc-sidebar-activate-width) !important;
|
||||
max-width: var(--uc-sidebar-activate-width) !important;
|
||||
}
|
||||
|
||||
#sidebar-box {
|
||||
margin-inline-start: var(--uc-sidebar-activate-width-reverse) !important;
|
||||
will-change: padding-inline;
|
||||
}
|
||||
#sidebar-box:not([hidden="true"]) {
|
||||
padding-inline-start: var(--uc-sidebar-activate-width);
|
||||
}
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
#sidebar-box {
|
||||
transition: padding-inline-start 0.25s var(--animation-easing-function), opacity 0.25s ease-in-out,
|
||||
visibility 0s linear !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/** Combined UI ***************************************************************/
|
||||
/*= Combined - At URL bar ====================================================*/
|
||||
@supports -moz-bool-pref("userChrome.combined.nav_button") or -moz-bool-pref(
|
||||
"userChrome.combined.nav_button.home_button"
|
||||
) or -moz-bool-pref("userChrome.combined.urlbar.nav_button") or -moz-bool-pref(
|
||||
|
|
@ -7742,136 +7860,6 @@
|
|||
padding: var(--urlbar-icon-padding) !important;
|
||||
}
|
||||
}
|
||||
#nav-bar-customization-target > #back-button {
|
||||
-moz-box-ordinal-group: 2;
|
||||
}
|
||||
|
||||
#nav-bar-customization-target > #forward-button {
|
||||
-moz-box-ordinal-group: 4;
|
||||
}
|
||||
|
||||
#nav-bar-customization-target > #home-button {
|
||||
-moz-box-ordinal-group: 3;
|
||||
}
|
||||
|
||||
/** Url View UI ***************************************************************/
|
||||
/*= Url View - Move icon to left =============================================*/
|
||||
@supports -moz-bool-pref("userChrome.urlView.move_icon_to_left") {
|
||||
.urlbarView-type-icon {
|
||||
min-width: 16px !important;
|
||||
height: 16px !important;
|
||||
margin-block: 0 !important;
|
||||
margin-inline-start: 0 !important;
|
||||
}
|
||||
|
||||
.urlbarView-favicon {
|
||||
margin-inline-start: 20px !important;
|
||||
}
|
||||
}
|
||||
/*= Url View - Go button when typing =========================================*/
|
||||
@supports -moz-bool-pref("userChrome.urlView.go_button_when_typing") {
|
||||
#urlbar-input-container[pageproxystate="invalid"] #urlbar-go-button {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
/** Panel UI ******************************************************************/
|
||||
@supports -moz-bool-pref("userChrome.panel.remove_strip") {
|
||||
#appMenu-fxa-separator {
|
||||
--panel-separator-zap-gradient: none;
|
||||
/* Original: linear-gradient(90deg, #9059FF 0%, #FF4AA2 52.08%, #FFBD4F 100%) */
|
||||
}
|
||||
}
|
||||
@supports -moz-bool-pref("userChrome.panel.full_width_separator") {
|
||||
/* Full width separators */
|
||||
:root {
|
||||
/* Original
|
||||
--panel-separator-margin-vertical: 4px;
|
||||
--panel-separator-margin-horizontal: 8px;
|
||||
--panel-separator-margin: var(--panel-separator-margin-vertical) var(--panel-separator-margin-horizontal);
|
||||
*/
|
||||
--panel-separator-margin-horizontal: 0 !important;
|
||||
}
|
||||
}
|
||||
@supports -moz-bool-pref("userChrome.panel.full_width_padding") {
|
||||
/* Original
|
||||
--arrowpanel-menuitem-margin: 0 8px;
|
||||
--arrowpanel-menuitem-padding-block: 8px;
|
||||
--arrowpanel-menuitem-padding-inline: 8px;
|
||||
--arrowpanel-menuitem-padding: var(--arrowpanel-menuitem-padding-block) var(--arrowpanel-menuitem-padding-inline);
|
||||
*/
|
||||
:root,
|
||||
:root:is([uidensity="compact"], [uidensity="touch"]) {
|
||||
--arrowpanel-menuitem-margin: 0 !important;
|
||||
--arrowpanel-menuitem-padding-inline: calc(var(--arrowpanel-menuitem-padding-block) + 8px) !important;
|
||||
}
|
||||
}
|
||||
/** Sidebar UI ****************************************************************/
|
||||
@supports -moz-bool-pref("userChrome.sidebar.overlap") or -moz-bool-pref("userChrome.autohide.sidebar") {
|
||||
#sidebar-box {
|
||||
/* Original
|
||||
min-width: 14em;
|
||||
width: 18em;
|
||||
max-width: 36em;
|
||||
*/
|
||||
--uc-sidebar-width: 40px;
|
||||
--uc-sidebar-activate-width: 18em;
|
||||
--uc-sidebar-activate-width-reverse: calc(-1 * var(--uc-sidebar-activate-width));
|
||||
--uc-sidebar-fullscreen-width: 4px;
|
||||
--uc-sidebar-shadow-color: #28282f;
|
||||
--uc-autohide-sidebar-speed: 750ms;
|
||||
--uc-autohide-fullscreen-sidebar-speed: 1s;
|
||||
--uc-autohide-sidebar-delay: 600ms;
|
||||
/* Wait 0.6s before hiding sidebar */
|
||||
z-index: 1 !important;
|
||||
position: relative !important;
|
||||
box-shadow: 1px 0px 15px -10px var(--uc-sidebar-shadow-color);
|
||||
}
|
||||
#sidebar-box[positionend="true"] {
|
||||
box-shadow: -1px 0px 15px -10px var(--uc-sidebar-shadow-color);
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#sidebar-splitter {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
@supports -moz-bool-pref("userChrome.sidebar.overlap") {
|
||||
#sidebar-box[positionend="true"] {
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
#sidebar-header,
|
||||
#sidebar {
|
||||
background-color: var(--sidebar-background-color) !important;
|
||||
color: var(--sidebar-text-color) !important;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@supports not -moz-bool-pref("userChrome.autohide.sidebar") {
|
||||
#sidebar-box,
|
||||
#sidebar {
|
||||
min-width: var(--uc-sidebar-activate-width) !important;
|
||||
max-width: var(--uc-sidebar-activate-width) !important;
|
||||
}
|
||||
|
||||
#sidebar-box {
|
||||
margin-inline-start: var(--uc-sidebar-activate-width-reverse) !important;
|
||||
will-change: padding-inline;
|
||||
}
|
||||
#sidebar-box:not([hidden="true"]) {
|
||||
padding-inline-start: var(--uc-sidebar-activate-width);
|
||||
}
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
#sidebar-box {
|
||||
transition: padding-inline-start 0.25s var(--animation-easing-function), opacity 0.25s ease-in-out,
|
||||
visibility 0s linear !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/** Others UI **************************************************************/
|
||||
/*= Counter for Tab ==========================================================*/
|
||||
@supports -moz-bool-pref("userChrome.counter.tab") {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,4 @@
|
|||
/*= Url Bar - Always show page actions =======================================*/
|
||||
@include Option("userChrome.urlbar.always_show_page_actions") {
|
||||
@import "always_show_page_actions";
|
||||
}
|
||||
|
||||
/*= Url Bar - Combined buttons ===============================================*/
|
||||
/*= Combined - At URL bar ====================================================*/
|
||||
@include Option(
|
||||
"userChrome.combined.nav_button", "userChrome.combined.nav_button.home_button",
|
||||
"userChrome.combined.urlbar.nav_button", "userChrome.combined.urlbar.home_button", "userChrome.combined.urlbar.reload_button"
|
||||
|
|
@ -39,9 +39,6 @@
|
|||
/** Tab UI ****************************************************************/
|
||||
@import "tab/index";
|
||||
|
||||
/** urlbar ********************************************************************/
|
||||
@import "urlbar/index";
|
||||
|
||||
/** Url View UI ***************************************************************/
|
||||
@import "urlview/index";
|
||||
|
||||
|
|
@ -51,6 +48,9 @@
|
|||
/** Sidebar UI ****************************************************************/
|
||||
@import "sidebar/index";
|
||||
|
||||
/** Combined UI ***************************************************************/
|
||||
@import "combined/index";
|
||||
|
||||
/** Others UI **************************************************************/
|
||||
@import "counter/index";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
/*= Url View - Always show page actions ======================================*/
|
||||
@include Option("userChrome.urlbar.always_show_page_actions") {
|
||||
@import "always_show_page_actions";
|
||||
}
|
||||
|
||||
/*= Url View - Move icon to left =============================================*/
|
||||
@include Option("userChrome.urlView.move_icon_to_left") {
|
||||
@import "move_icon_to_left";
|
||||
|
|
|
|||
12
user.js
12
user.js
|
|
@ -110,6 +110,12 @@ user_pref("userChrome.rounding.square_tab", false);
|
|||
// user_pref("userChrome.counter.tab", true);
|
||||
// user_pref("userChrome.counter.bookmark_menu", true);
|
||||
|
||||
// user_pref("userChrome.combined.nav_button", true);
|
||||
// user_pref("userChrome.combined.nav_button.home_button", true);
|
||||
// user_pref("userChrome.combined.urlbar.nav_button", true);
|
||||
// user_pref("userChrome.combined.urlbar.home_button", true);
|
||||
// user_pref("userChrome.combined.urlbar.reload_button", true);
|
||||
|
||||
// user_pref("userChrome.rounding.square_button", true);
|
||||
// user_pref("userChrome.rounding.square_panel", true);
|
||||
// user_pref("userChrome.rounding.square_panelitem", true);
|
||||
|
|
@ -129,11 +135,7 @@ user_pref("userChrome.rounding.square_tab", false);
|
|||
// user_pref("userChrome.padding.urlView_result", true);
|
||||
// user_pref("userChrome.padding.panel_header", true);
|
||||
|
||||
// user_pref("userChrome.urlbar.always_show_page_actions", true);
|
||||
// user_pref("userChrome.urlbar.combined_with_reload", true);
|
||||
// user_pref("userChrome.urlbar.combined_with_back_forward", true);
|
||||
// user_pref("userChrome.urlbar.combined_with_home", true);
|
||||
|
||||
// user_pref("userChrome.urlView.always_show_page_actions", true);
|
||||
// user_pref("userChrome.urlView.move_icon_to_left", true);
|
||||
// user_pref("userChrome.urlView.go_button_when_typing", true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue