Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Make cascading of mx_RoomHeader_closeButton easy to understand (#10756
Browse files Browse the repository at this point in the history
)

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
  • Loading branch information
luixxiul committed May 5, 2023
1 parent 4bca514 commit b724cb5
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions res/css/views/rooms/_RoomHeader.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ limitations under the License.
mask-size: contain;
}

&:not(.mx_RoomHeader_closeButton):hover {
&:hover {
background: rgba($accent, 0.1);

&::before {
Expand Down Expand Up @@ -232,10 +232,20 @@ limitations under the License.
mask-image: url("$(res)/img/element-icons/call/spotlight.svg");
}

.mx_RoomHeader_closeButton::before {
mask-image: url("$(res)/img/cancel.svg");
mask-size: 20px;
mask-position: center;
.mx_RoomHeader_closeButton {
&::before {
mask-image: url("$(res)/img/cancel.svg");
mask-size: 20px;
mask-position: center;
}

&:hover {
background: unset; /* remove background color on hover */

&::before {
background-color: $icon-button-color; /* set the default background color */
}
}
}

.mx_RoomHeader_minimiseButton::before {
Expand Down

0 comments on commit b724cb5

Please sign in to comment.