fixed squashed titlebar buttons on windows

This commit is contained in:
bmFtZQ 2021-03-14 17:10:05 +08:00 committed by GitHub
parent 17de5d7710
commit cc1fd6eec5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 30 deletions

View file

@ -30,7 +30,7 @@
#TabsToolbar-customization-target > toolbarbutton { #TabsToolbar-customization-target > toolbarbutton {
transform: translateY(8px) !important; transform: translateY(8px) !important;
} }
#TabsToolbar toolbarbutton, #TabsToolbar .tabbrowser-arrowscrollbox::part(scrollbutton-up), #TabsToolbar .tabbrowser-arrowscrollbox::part(scrollbutton-down), #scrollbutton-up[part="scrollbutton-up"]:not(.menupopup-scrollbutton), #scrollbutton-down[part="scrollbutton-down"]:not(.menupopup-scrollbutton) { #TabsToolbar toolbarbutton:not(.titlebar-button), #TabsToolbar .tabbrowser-arrowscrollbox::part(scrollbutton-up), #TabsToolbar .tabbrowser-arrowscrollbox::part(scrollbutton-down), #scrollbutton-up[part="scrollbutton-up"]:not(.menupopup-scrollbutton), #scrollbutton-down[part="scrollbutton-down"]:not(.menupopup-scrollbutton) {
margin-top: 10px !important; margin-top: 10px !important;
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }

View file

@ -105,6 +105,7 @@
font-size: 12px !important; font-size: 12px !important;
background: 0 !important; background: 0 !important;
border: 0 !important; border: 0 !important;
padding: 0 !important;
} }
.tabbrowser-tab[visuallyselected] .tabbrowser-tab[visuallyselected]
@ -230,6 +231,7 @@
background-color 0s var(--tab-transition-duration) var(--ease-basic) !important; background-color 0s var(--tab-transition-duration) var(--ease-basic) !important;
opacity: var(--tab-opacity) !important; opacity: var(--tab-opacity) !important;
visibility: visible !important; visibility: visible !important;
margin: 0 !important;
} }
/* rounded bottom corners */ /* rounded bottom corners */

View file

@ -9,35 +9,6 @@
@import "findbar/findbar.css"; @import "findbar/findbar.css";
@import "tabbar/EdgeStyleTabShadow.css"; @import "tabbar/EdgeStyleTabShadow.css";
/* Small Tweaks to make it look more like Edge */
/* Swap Account icon and Overflow icon (Must be placed next to each other) */
/*
@media (min-width: 687px) {
#nav-bar-overflow-button {
transform: translateX(-44px);
}
#fxa-toolbar-menu-button {
transform: translateX(44px);
}
}
*/
/* Replace Firefox identity icon with Edge */
/*
#identity-icon-label
{
display: none !important;
}
#identity-box.chromeUI[pageproxystate="valid"]::after {
content: "Edge";
padding-inline-start: 8px;
}
#identity-icon {
list-style-image: url("icons/edge.svg") !important;
}
*/
#urlbarView-row-162, #urlbarView-row-19, #urlbar .urlbarView .search-one-offs, /* Hide search engine selector on the urlbar dropdown */ #urlbarView-row-162, #urlbarView-row-19, #urlbar .urlbarView .search-one-offs, /* Hide search engine selector on the urlbar dropdown */
#context-sendpagetodevice, #context-sep-sendpagetodevice, /* Hide send page to device menu */ #context-sendpagetodevice, #context-sep-sendpagetodevice, /* Hide send page to device menu */
#permissions-granted-icon, #appMenu-fxa-status, toolbarseparator.sync-ui-item, #appMenu-protection-report-button, #appMenu-tp-separator, /* Hide Account and protection dashboard from menu */ #permissions-granted-icon, #appMenu-fxa-status, toolbarseparator.sync-ui-item, #appMenu-protection-report-button, #appMenu-tp-separator, /* Hide Account and protection dashboard from menu */
@ -45,3 +16,21 @@
{ {
display: none !important; display: none !important;
} }
/* Swap Account icon and Overflow icon (Must be placed next to each other) */
/*
@media (min-width: 687px) {
#nav-bar-overflow-button { transform: translateX(-44px); }
#fxa-toolbar-menu-button { transform: translateX(44px); }
}
*/
/* Replace Firefox identity icon with Edge */
/*
#identity-icon-label { display: none !important; }
#identity-box.chromeUI[pageproxystate="valid"]::after { content: "Edge"; padding-inline-start: 8px; }
#identity-icon { list-style-image: url("icons/edge.svg") !important; }
*/
/* Changelog (DD/MM) */
/* 14-03 / Titlebar buttons no longer squashed on windows */