Abstract spotlight to allow non-room results too (#7804)
This commit is contained in:
parent
201e552b0c
commit
0a084601c4
2 changed files with 147 additions and 32 deletions
|
@ -146,6 +146,7 @@ limitations under the License.
|
|||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
|
||||
.mx_SpotlightDialog_metaspaceResult,
|
||||
.mx_DecoratedRoomAvatar {
|
||||
margin-right: 8px;
|
||||
width: 20px;
|
||||
|
@ -249,6 +250,29 @@ limitations under the License.
|
|||
margin: 0 4px 0 auto;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mx_SpotlightDialog_metaspaceResult {
|
||||
background-color: $secondary-content;
|
||||
mask-position: center;
|
||||
mask-repeat: no-repeat;
|
||||
mask-size: contain;
|
||||
|
||||
&.mx_SpotlightDialog_metaspaceResult_home-space {
|
||||
mask-image: url('$(res)/img/element-icons/home.svg');
|
||||
}
|
||||
|
||||
&.mx_SpotlightDialog_metaspaceResult_favourites-space {
|
||||
mask-image: url('$(res)/img/element-icons/roomlist/favorite.svg');
|
||||
}
|
||||
|
||||
&.mx_SpotlightDialog_metaspaceResult_people-space {
|
||||
mask-image: url('$(res)/img/element-icons/room/members.svg');
|
||||
}
|
||||
|
||||
&.mx_SpotlightDialog_metaspaceResult_orphans-space {
|
||||
mask-image: url('$(res)/img/element-icons/roomlist/hash-circle.svg');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mx_SpotlightDialog_footer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue