Bug 1747423 - Remove the @buttonState* preprocessor vars from panel toolbarbuttons. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D137346
This commit is contained in:
Sam Foster 2022-02-08 22:35:10 +00:00
Родитель fe24b21452
Коммит bc105ec94a
1 изменённых файлов: 33 добавлений и 18 удалений

Просмотреть файл

@ -1234,36 +1234,51 @@ toolbarbutton.subviewbutton:focus-visible,
outline-offset: calc(var(--focus-outline-width) * -1);
}
panelview .toolbarbutton-1@buttonStateHover@,
toolbarbutton.subviewbutton@buttonStateHover@,
/* hover styles for not-disabled, not-active buttons */
:is(
panelview .toolbarbutton-1,
toolbarbutton.subviewbutton,
.widget-overflow-list .toolbarbutton-1,
.toolbaritem-combined-buttons@inAnyPanel@ > toolbarbutton
):not([disabled]):hover {
color: inherit;
background-color: var(--panel-item-hover-bgcolor);
}
/* hovered-and-active styles for not-disabled buttons */
:is(
panelview .toolbarbutton-1,
toolbarbutton.subviewbutton,
.widget-overflow-list .toolbarbutton-1,
.toolbaritem-combined-buttons@inAnyPanel@ > toolbarbutton
):not([disabled]):hover:active {
color: inherit;
background-color: var(--panel-item-active-bgcolor);
box-shadow: 0 1px 0 hsla(210,4%,10%,.03) inset;
}
menu.subviewbutton@menuStateHover@,
#PlacesToolbar menuitem@menuStateHover@,
#PlacesToolbar menu@menuStateHover@,
menuitem.subviewbutton@menuStateHover@,
.widget-overflow-list .toolbarbutton-1@buttonStateHover@,
.toolbaritem-combined-buttons@inAnyPanel@ > toolbarbutton@buttonStateHover@ {
menuitem.subviewbutton@menuStateHover@ {
color: inherit;
background-color: var(--panel-item-hover-bgcolor);
}
menu.subviewbutton@menuStateActive@,
#PlacesToolbar menuitem@menuStateActive@,
#PlacesToolbar menu@menuStateActive@,
menuitem.subviewbutton@menuStateActive@ {
color: inherit;
background-color: var(--panel-item-active-bgcolor);
box-shadow: 0 1px 0 hsla(210,4%,10%,.03) inset;
}
.subview-subheader {
font-size: 11px;
padding-block: 4px;
}
panelview .toolbarbutton-1@buttonStateActive@,
toolbarbutton.subviewbutton@buttonStateActive@,
menu.subviewbutton@menuStateActive@,
#PlacesToolbar menuitem@menuStateActive@,
#PlacesToolbar menu@menuStateActive@,
menuitem.subviewbutton@menuStateActive@,
.widget-overflow-list .toolbarbutton-1@buttonStateActive@,
.toolbaritem-combined-buttons@inAnyPanel@ > toolbarbutton@buttonStateActive@ {
color: inherit;
background-color: var(--panel-item-active-bgcolor);
box-shadow: 0 1px 0 hsla(210,4%,10%,.03) inset;
}
#PlacesToolbar menuitem,
#PlacesToolbar menu {
color: var(--arrowpanel-color);