proton fixes

This commit is contained in:
bmFtZQ 2021-05-06 18:40:21 +08:00 committed by GitHub
parent 68f6f82267
commit 0cf7f9abe3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
/* Light Mode */
:root:not([style]),
:root:not([lwtheme]),
:root:not(:-moz-lwtheme),
: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) */
{
@ -153,11 +153,11 @@
:-moz-any(.sidebar-panel, body)[style*="--lwt-sidebar-background-color:rgb(56, 56, 61);"] {
/* sidebar */
--sidebar-background-color: #3b3b3b !important;
--lwt-sidebar-background-color: var(--sidebar-background-color) !important;
--lwt-sidebar-background-color: #3b3b3b !important;
/* sidebar_text */
--sidebar-text-color: #fff !important;
--lwt-sidebar-text-color: var(--sidebar-text-color) !important;
--lwt-sidebar-text-color: #fff !important;
}
#browser {
@ -185,12 +185,21 @@
--toolbar-non-lwt-textcolor: #000 !important;
--tab-separator-opacity: .5 !important;
--urlbar-min-height: 30px !important;
--arrowpanel-dimmed: color-mix(in srgb, currentColor 9%, transparent) !important;
--arrowpanel-dimmed-further: color-mix(in srgb, currentColor 14%, transparent) !important;
--arrowpanel-dimmed-even-further: color-mix(in srgb, currentColor 25%, transparent) !important;
--panelview-toolbarbutton-hover-bgcolor: var(--arrowpanel-dimmed) !important;
--panelview-toolbarbutton-active-bgcolor: var(--arrowpanel-dimmed-further) !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;
--space-above-tabbar: 0px;
}
}