2019-05-01 17:05:11 +00:00
|
|
|
/*
|
|
|
|
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;
|
2019-06-07 14:57:30 +00:00
|
|
|
color: $primary-fg-color;
|
2021-05-13 09:56:51 +00:00
|
|
|
|
|
|
|
.mx_ReactionsRow_addReactionButton {
|
|
|
|
position: relative;
|
2021-05-13 12:59:10 +00:00
|
|
|
display: none; // show on hover of the .mx_EventTile
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
2021-05-13 12:32:38 +00:00
|
|
|
vertical-align: middle;
|
2021-05-13 12:59:10 +00:00
|
|
|
margin-left: 4px;
|
2021-05-13 09:56:51 +00:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2021-05-13 12:59:10 +00:00
|
|
|
mask-size: 16px;
|
2021-05-13 09:56:51 +00:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
background-color: $tertiary-fg-color;
|
|
|
|
mask-image: url('$(res)/img/element-icons/room/message-bar/emoji.svg');
|
|
|
|
}
|
2021-05-13 12:59:10 +00:00
|
|
|
|
|
|
|
&.mx_ReactionsRow_addReactionButton_active {
|
|
|
|
display: inline-block; // keep showing whilst the context menu is shown
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover, &.mx_ReactionsRow_addReactionButton_active {
|
|
|
|
&::before {
|
|
|
|
background-color: $primary-fg-color;
|
|
|
|
}
|
|
|
|
}
|
2021-05-13 09:56:51 +00:00
|
|
|
}
|
2019-05-01 17:05:11 +00:00
|
|
|
}
|
2019-06-27 12:05:04 +00:00
|
|
|
|
2021-05-13 12:32:38 +00:00
|
|
|
.mx_EventTile:hover .mx_ReactionsRow_addReactionButton {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2019-06-27 12:05:04 +00:00
|
|
|
.mx_ReactionsRow_showAll {
|
|
|
|
text-decoration: none;
|
2021-05-13 12:59:10 +00:00
|
|
|
font-size: $font-12px;
|
|
|
|
line-height: $font-20px;
|
|
|
|
margin-left: 4px;
|
2021-05-13 12:32:38 +00:00
|
|
|
vertical-align: middle;
|
2019-06-27 12:05:04 +00:00
|
|
|
|
2021-05-13 12:59:10 +00:00
|
|
|
&:link, &:visited {
|
2021-05-13 13:13:00 +00:00
|
|
|
color: $tertiary-fg-color;
|
2021-05-13 12:59:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $primary-fg-color;
|
2019-06-27 12:05:04 +00:00
|
|
|
}
|
|
|
|
}
|