mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-05 05:38:41 +03:00
72 lines
1.9 KiB
SCSS
72 lines
1.9 KiB
SCSS
/*
|
|
Copyright 2019 New Vector Ltd
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
.mx_ReactionsRow {
|
|
margin: 6px 0;
|
|
color: $primary-fg-color;
|
|
|
|
.mx_ReactionsRow_addReactionButton {
|
|
position: relative;
|
|
display: inline-block;
|
|
visibility: hidden; // show on hover of the .mx_EventTile
|
|
width: 24px;
|
|
height: 24px;
|
|
vertical-align: middle;
|
|
margin-left: 4px;
|
|
|
|
&::before {
|
|
content: '';
|
|
position: absolute;
|
|
height: 100%;
|
|
width: 100%;
|
|
mask-size: 16px;
|
|
mask-repeat: no-repeat;
|
|
mask-position: center;
|
|
background-color: $tertiary-fg-color;
|
|
mask-image: url('$(res)/img/element-icons/room/message-bar/emoji.svg');
|
|
}
|
|
|
|
&.mx_ReactionsRow_addReactionButton_active {
|
|
visibility: visible; // keep showing whilst the context menu is shown
|
|
}
|
|
|
|
&:hover, &.mx_ReactionsRow_addReactionButton_active {
|
|
&::before {
|
|
background-color: $primary-fg-color;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.mx_EventTile:hover .mx_ReactionsRow_addReactionButton {
|
|
visibility: visible;
|
|
}
|
|
|
|
.mx_ReactionsRow_showAll {
|
|
text-decoration: none;
|
|
font-size: $font-12px;
|
|
line-height: $font-20px;
|
|
margin-left: 4px;
|
|
vertical-align: middle;
|
|
|
|
&:link, &:visited {
|
|
color: $tertiary-fg-color;
|
|
}
|
|
|
|
&:hover {
|
|
color: $primary-fg-color;
|
|
}
|
|
}
|