Add files via upload

This commit is contained in:
bmFtZQ 2021-03-15 19:38:48 +08:00 committed by GitHub
parent b556ac127b
commit b3a061d818
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 76 additions and 40 deletions

View file

@ -0,0 +1,23 @@
/* (BUGGY: USE AT OWN RISK!) Hide toolbar buttons other than extensions */
.toolbarbutton-icon,
.toolbarbutton-badge-stack,
#nav-bar .toolbarbutton-1
{
transition-duration: 0.1s !important;
transition-property: width, padding, border !important;
}
:root:not([customizing]) #navigator-toolbox:not(:hover) > #nav-bar:not([urlbar-exceeds-toolbar-bounds="true"]) .toolbarbutton-1:not(.webextension-browser-action, [open], [checked]) :-moz-any(.toolbarbutton-icon, .toolbarbutton-badge-stack)
{
width: 0 !important; padding: 0 !important;
}
:root:not([customizing]) #navigator-toolbox:not(:hover) > #nav-bar:not([urlbar-exceeds-toolbar-bounds="true"]) .toolbarbutton-1:not(.webextension-browser-action, [open], [checked])
{
border-width: 0 !important;
}
/* Also Hide urlbar background */
/*
:root:not([customizing]) #navigator-toolbox:not(:hover) > #nav-bar
{ --toolbar-field-background-color: transparent !important; }
*/

View file

@ -0,0 +1,12 @@
/* (BUGGY: USE AT OWN RISK!) Swap Account icon and Overflow icon (must be placed next to each other) */
@media (min-width: 687px) {
:root:not([customizing]) #nav-bar-overflow-button
{
transform: translateX(-44px);
}
:root:not([customizing]) #fxa-toolbar-menu-button
{
transform: translateX(44px);
}
}

View file

@ -0,0 +1,26 @@
/* (MACOS ONLY!) Enable window vibrancy behind tabs */
#TabsToolbar:not(:-moz-window-inactive)
{
background-color: #0001 !important;
}
#main-window:-moz-any([lwthemetextcolor="bright"], [privatebrowsingmode=temporary]) #TabsToolbar:not(:-moz-window-inactive)
{
background-color: #1114 !important;
}
#main-window
{
-moz-appearance: -moz-mac-vibrant-titlebar-light !important;
}
#main-window:-moz-any([lwthemetextcolor="bright"], [privatebrowsingmode=temporary])
{
-moz-appearance: -moz-mac-vibrant-titlebar-dark !important;
}
:-moz-any(#main-window, #TabsToolbar):-moz-any([inFullscreen="true"], :-moz-window-inactive)
{
-moz-appearance: none !important;
background-color: var(--lwt-accent-color) !important;
}

View file

@ -9,28 +9,22 @@
@import "findbar/findbar.css"; @import "findbar/findbar.css";
@import "tabbar/EdgeStyleTabShadow.css"; @import "tabbar/EdgeStyleTabShadow.css";
/* Optional Extras (uncomment/comment to enable/disable) */
/* @import "extras/vibrancy.css"; */ /* (MACOS ONLY!) Enable window vibrancy behind tabs */
/* @import "extras/hidetoolbarbuttons.css"; */ /* (BUGGY: USE AT OWN RISK!) Hide toolbar buttons other than extensions */
/* @import "extras/swapaccount-overflow.css"; */ /* (BUGGY: USE AT OWN RISK!) Swap Account icon and Overflow icon (must be placed next to each other) */
/* (MACOS ONLY!) Adjust window controls position to make the spacing even */
.titlebar-buttonbox { margin-inline: 13px 5px !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 */
#appMenu-edit-controls, .panel-subview-body toolbarseparator:nth-child(12) /* Hide Edit Controls */ #appMenu-edit-controls, .panel-subview-body toolbarseparator:nth-child(12) /* Hide Edit Controls */
{ { 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) */ /* Changelog (DD/MM) */
/* 14-03 / Titlebar buttons no longer squashed on windows */ /* 86.0 / Titlebar buttons no longer squashed on windows */
/* 86.0 r1 / Fix spacing issues with <select> menupopups */
/* 86.0 r2 / Add Optional Extras: Vibrancy(macOS), hidetoolbarbuttons / Fixed blurry text for some users. */

View file

@ -1,25 +1,6 @@
@import "userContent/NewTab.css"; @import "userContent/NewTab.css";
@import "userContent/Preferences.css"; @import "userContent/Preferences.css";
@-moz-document url-prefix("about:") { img.transparent {
:root { background: transparent !important;
--body-background: #f5f5f5;
--body-title-text: #000;
--body-text: #333;
--newtab-tile-background: #fff;
--field-background: #fff;
}
@media (prefers-color-scheme: dark) {
:root {
--body-background: #1b1b1b;
--body-title-text: #fff;
--body-text: #e0e0e0;
--newtab-tile-background: #303030;
--field-background: #202020;
}
}
} }