add temporary dummy variables to support for window frame color

In 96 the old --lwt-accent-color is renamed to --lwt-frame so add some
compatibility rules for now.
This commit is contained in:
MrOtherGuy
2021-11-21 08:03:05 +02:00
parent d35ebf1943
commit d64e9e129e
10 changed files with 39 additions and 17 deletions

View File

@@ -15,8 +15,8 @@ See the above repository for updates as well as full license text. */
@-moz-document url(chrome://browser/content/browser.xhtml){
/* Dummy variable to support both versions 89-90 */
:root{ --tab-block-margin: var(--proton-tab-block-margin) }
/* Dummy variable to support versions 94-96, can be removed when 96 lands */
:root{ --lwt-frame: var(--lwt-accent-color) }
:root{
--multirow-toolbar-height: 40px;
@@ -111,7 +111,7 @@ See the above repository for updates as well as full license text. */
#toolbar-menubar:hover{ z-index: 2 }
#toolbar-menubar:hover > #menubar-items{
visibility: visible;
background-image: linear-gradient( to left,transparent,var(--lwt-accent-color) 35px);
background-image: linear-gradient( to left,transparent,var(--lwt-frame) 35px);
}
#toolbar-menubar > .titlebar-buttonbox-container{ background: var(--toolbar-bgcolor); }
@@ -184,7 +184,7 @@ See the above repository for updates as well as full license text. */
.tabbrowser-tab > stack{ width: 100%; height: 100%; }
/* This should fix potential flash that could occur when bottom border is hovered to show tabs in fullscreen mode */
#tabbrowser-tabpanels{ background-color: var(--lwt-accent-color) !important; }
#tabbrowser-tabpanels{ background-color: var(--lwt-frame) !important; }
/* remove bottom margin so it doesn't throw off row height computation */
#tabs-newtab-button{ margin-bottom: 0 !important; }