mirror of https://github.com/vector-im/riot-web
Make cascading of `mx_RoomHeader_closeButton` easy to understand (#10756)
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>pull/28217/head
parent
4bca5143ee
commit
b724cb5fd2
|
@ -179,7 +179,7 @@ limitations under the License.
|
||||||
mask-size: contain;
|
mask-size: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not(.mx_RoomHeader_closeButton):hover {
|
&:hover {
|
||||||
background: rgba($accent, 0.1);
|
background: rgba($accent, 0.1);
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
|
@ -232,10 +232,20 @@ limitations under the License.
|
||||||
mask-image: url("$(res)/img/element-icons/call/spotlight.svg");
|
mask-image: url("$(res)/img/element-icons/call/spotlight.svg");
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_RoomHeader_closeButton::before {
|
.mx_RoomHeader_closeButton {
|
||||||
mask-image: url("$(res)/img/cancel.svg");
|
&::before {
|
||||||
mask-size: 20px;
|
mask-image: url("$(res)/img/cancel.svg");
|
||||||
mask-position: center;
|
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 {
|
.mx_RoomHeader_minimiseButton::before {
|
||||||
|
|
Loading…
Reference in New Issue