2019-05-02 01:05:11 +08: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;
|
2021-08-12 17:27:12 +08:00
|
|
|
color: $primary-content;
|
2021-05-13 17:56:51 +08:00
|
|
|
|
|
|
|
.mx_ReactionsRow_addReactionButton {
|
|
|
|
position: relative;
|
2021-05-17 17:01:24 +08:00
|
|
|
display: inline-block;
|
2022-07-27 21:39:29 +08:00
|
|
|
visibility: hidden; /* show on hover of the .mx_EventTile */
|
2021-05-13 20:59:10 +08:00
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
2021-05-13 20:32:38 +08:00
|
|
|
vertical-align: middle;
|
2021-05-13 20:59:10 +08:00
|
|
|
margin-left: 4px;
|
2021-06-19 01:59:22 +08:00
|
|
|
margin-right: 4px;
|
2021-05-13 17:56:51 +08:00
|
|
|
|
|
|
|
&::before {
|
2022-12-12 19:24:14 +08:00
|
|
|
content: "";
|
2021-05-13 17:56:51 +08:00
|
|
|
position: absolute;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2021-05-13 20:59:10 +08:00
|
|
|
mask-size: 16px;
|
2021-05-13 17:56:51 +08:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
2021-08-12 17:53:54 +08:00
|
|
|
background-color: $tertiary-content;
|
2022-12-12 19:24:14 +08:00
|
|
|
mask-image: url("$(res)/img/element-icons/room/message-bar/emoji.svg");
|
2021-05-13 17:56:51 +08:00
|
|
|
}
|
2021-05-13 20:59:10 +08:00
|
|
|
|
|
|
|
&.mx_ReactionsRow_addReactionButton_active {
|
2022-07-27 21:39:29 +08:00
|
|
|
visibility: visible; /* keep showing whilst the context menu is shown */
|
2021-05-13 20:59:10 +08:00
|
|
|
}
|
|
|
|
|
2022-12-12 19:24:14 +08:00
|
|
|
&:hover,
|
|
|
|
&.mx_ReactionsRow_addReactionButton_active {
|
2021-05-13 20:59:10 +08:00
|
|
|
&::before {
|
2021-08-12 17:27:12 +08:00
|
|
|
background-color: $primary-content;
|
2021-05-13 20:59:10 +08:00
|
|
|
}
|
|
|
|
}
|
2021-05-13 17:56:51 +08:00
|
|
|
}
|
2019-05-02 01:05:11 +08:00
|
|
|
}
|
2019-06-27 20:05:04 +08:00
|
|
|
|
2021-05-13 20:32:38 +08:00
|
|
|
.mx_EventTile:hover .mx_ReactionsRow_addReactionButton {
|
2021-05-17 17:01:24 +08:00
|
|
|
visibility: visible;
|
2021-05-13 20:32:38 +08:00
|
|
|
}
|
|
|
|
|
2019-06-27 20:05:04 +08:00
|
|
|
.mx_ReactionsRow_showAll {
|
2022-01-07 17:40:53 +08:00
|
|
|
color: $tertiary-content;
|
2021-05-13 20:59:10 +08:00
|
|
|
|
2022-05-21 17:38:50 +08:00
|
|
|
&.mx_AccessibleButton_kind_link_inline {
|
|
|
|
font-size: $font-12px;
|
|
|
|
line-height: $font-20px;
|
|
|
|
margin-inline-start: $spacing-4;
|
|
|
|
vertical-align: middle;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $primary-content;
|
|
|
|
}
|
2019-06-27 20:05:04 +08:00
|
|
|
}
|
|
|
|
}
|