Skip to content

Commit

Permalink
Bug 1847944 - Use CSS nesting for .urlbarView-button rules. r=mak
Browse files Browse the repository at this point in the history
  • Loading branch information
daogottwald committed Aug 9, 2023
1 parent f052551 commit 08a5f4e
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions browser/themes/shared/urlbarView.css
Original file line number Diff line number Diff line change
Expand Up @@ -317,26 +317,26 @@
margin-inline: 4px;
-moz-context-properties: fill, fill-opacity;
border-radius: 100%;
}

.urlbarView-button[selected] {
outline: var(--focus-outline);
outline-color: var(--autocomplete-popup-highlight-color);
outline-offset: 1px;
}
&[selected] {
outline: var(--focus-outline);
outline-color: var(--autocomplete-popup-highlight-color);
outline-offset: 1px;
}

.urlbarView-row:is([row-selectable]:hover, [selected]) > .urlbarView-button:not(:hover, [open]) {
color: var(--urlbarView-result-button-selected-color);
background-color: var(--urlbarView-result-button-selected-background-color);
}
.urlbarView-row:is([row-selectable]:hover, [selected]) > &:not(:hover, [open]) {
color: var(--urlbarView-result-button-selected-color);
background-color: var(--urlbarView-result-button-selected-background-color);
}

.urlbarView-button:is(:hover, [open]) {
color: var(--urlbarView-result-button-hover-color);
background-color: var(--urlbarView-result-button-hover-background-color);
}
&:is(:hover, [open]) {
color: var(--urlbarView-result-button-hover-color);
background-color: var(--urlbarView-result-button-hover-background-color);
}

.urlbarView-button + .urlbarView-button {
margin-inline-start: 0;
& + & {
margin-inline-start: 0;
}
}

.urlbarView-button-block {
Expand Down

0 comments on commit 08a5f4e

Please sign in to comment.