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

Commit

Permalink
Make the EntityTile chevron a masked SVG for theming
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Mar 14, 2019
1 parent 5409db4 commit e4181c4
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions res/css/views/rooms/_EntityTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,20 @@ limitations under the License.
}

.mx_EntityTile:hover {
background-image: url('$(res)/img/member_chevron.png');
background-position: center right 10px;
background-repeat: no-repeat;
padding-right: 30px;
position: relative; // to keep the chevron aligned
}

.mx_EntityTile:hover::before {
content: "";
position: absolute;
top: calc(50% - 8px); // center
right: 10px;
mask: url('$(res)/img/member_chevron.png');
mask-repeat: no-repeat;
width: 16px;
height: 16px;
background-color: $rightpanel-button-color;
}

.mx_EntityTile .mx_PresenceLabel {
Expand Down

0 comments on commit e4181c4

Please sign in to comment.