fix variables for Proton

This commit is contained in:
bmFtZQ 2021-04-13 02:54:21 +08:00 committed by GitHub
parent 68d3c9e235
commit bfc321350e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 11 deletions

View file

@ -80,22 +80,23 @@
background-clip: padding-box !important;
}
/*
#navigator-toolbox :-moz-any(.toolbarbutton-1, .scrollbutton-up, .scrollbutton-down),
/* no ::part workaround - may have side effects */
.#scrollbutton-up[part="scrollbutton-up"]:not(.menupopup-scrollbutton),
.#scrollbutton-down[part="scrollbutton-down"]:not(.menupopup-scrollbutton)
#scrollbutton-up[part="scrollbutton-up"]:not(.menupopup-scrollbutton),
#scrollbutton-down[part="scrollbutton-down"]:not(.menupopup-scrollbutton)
{
max-height: 34px !important;
height: 34px !important;
min-height: 34px !important;
max-height: 32px !important;
height: 32px !important;
min-height: 32px !important;
}
*/
#navigator-toolbox :-moz-any(.toolbarbutton-1, toolbarbutton.bookmark-item:not(.subviewbutton))[disabled],
/* no ::part workaround - may have side effects */
#scrollbutton-up[part="scrollbutton-up"]:not(.menupopup-scrollbutton)[disabled],
#scrollbutton-down[part="scrollbutton-down"]:not(.menupopup-scrollbutton)[disabled]
{
opacity: .42 !important;
opacity: 1 !important;
}
#navigator-toolbox :-moz-any(.toolbarbutton-1, toolbarbutton.bookmark-item:not(.subviewbutton)):hover:not([disabled]),

View file

@ -9,7 +9,8 @@
/* Light Mode */
:root:not([style]),
:root:not([lwtheme]),
:root[style*="--lwt-accent-color:rgb(227, 228, 230); --lwt-text-color:rgba(24, 25, 26);"]
:root[style*="--lwt-accent-color:rgb(227, 228, 230); --lwt-text-color:rgba(24, 25, 26);"],
:root[style*="--lwt-accent-color:rgb(240, 240, 244); --lwt-text-color:rgba(21, 20, 26);"] /* Used for Proton (May be changed in future) */
{
/* accentcolor */
--lwt-accent-color: #cecece !important;
@ -20,6 +21,9 @@
/* toolbar */
--toolbar-bgcolor: #f7f7f7 !important;
/* Force tabs to match --toolbar-bgcolor */
--lwt-selected-tab-background-color: var(--toolbar-bgcolor) !important;
/* toolbar_text */
--toolbar-color: #000 !important;
@ -58,7 +62,8 @@
--private-browsing-indicator: #0078d4 !important;
}
/* Dark Mode */
:root[style*="--lwt-accent-color:rgb(12, 12, 13); --lwt-text-color:rgba(249, 249, 250);"]
:root[style*="--lwt-accent-color:rgb(12, 12, 13); --lwt-text-color:rgba(249, 249, 250);"],
:root[style*="--lwt-accent-color:rgb(28, 27, 34); --lwt-text-color:rgba(251, 251, 254);"] /* Used for Proton (May be changed in future) */
{
/* accentcolor */
--lwt-accent-color: #1b1b1b !important;
@ -69,6 +74,9 @@
/* toolbar */
--toolbar-bgcolor: #3b3b3b !important;
/* Force tabs to match --toolbar-bgcolor */
--lwt-selected-tab-background-color: var(--toolbar-bgcolor) !important;
/* toolbar_text */
--toolbar-color: #fff !important;
@ -173,7 +181,14 @@
--toolbar-non-lwt-bgcolor: #f7f7f7 !important;
--toolbar-non-lwt-textcolor: #000 !important;
--tab-separator-opacity: .35 !important;
--tab-separator-opacity: .5 !important;
}
@media (-moz-proton) {
:root {
--arrowpanel-menuitem-margin: 0 !important; /* used to get rid of the left/right margins in Proton */
--space-above-tabbar: 0;
}
}
#titlebar,