2019-05-01 19:05:11 +02:00
|
|
|
/*
|
2024-09-09 15:57:16 +02:00
|
|
|
Copyright 2019-2024 New Vector Ltd.
|
2019-05-01 19:05:11 +02:00
|
|
|
|
2024-09-09 15:57:16 +02:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2019-05-01 19:05:11 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_ReactionsRow {
|
2024-10-02 16:59:03 +02:00
|
|
|
color: var(--cpd-color-text-primary);
|
2021-05-13 11:56:51 +02:00
|
|
|
|
|
|
|
.mx_ReactionsRow_addReactionButton {
|
|
|
|
position: relative;
|
2021-05-17 11:01:24 +02:00
|
|
|
display: inline-block;
|
2022-07-27 15:39:29 +02:00
|
|
|
visibility: hidden; /* show on hover of the .mx_EventTile */
|
2021-05-13 14:59:10 +02:00
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
2021-05-13 14:32:38 +02:00
|
|
|
vertical-align: middle;
|
2021-05-13 14:59:10 +02:00
|
|
|
margin-left: 4px;
|
2021-06-18 19:59:22 +02:00
|
|
|
margin-right: 4px;
|
2021-05-13 11:56:51 +02:00
|
|
|
|
|
|
|
&::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
content: "";
|
2021-05-13 11:56:51 +02:00
|
|
|
position: absolute;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2021-05-13 14:59:10 +02:00
|
|
|
mask-size: 16px;
|
2021-05-13 11:56:51 +02:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
2021-08-12 11:53:54 +02:00
|
|
|
background-color: $tertiary-content;
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/element-icons/room/message-bar/emoji.svg");
|
2021-05-13 11:56:51 +02:00
|
|
|
}
|
2021-05-13 14:59:10 +02:00
|
|
|
|
|
|
|
&.mx_ReactionsRow_addReactionButton_active {
|
2022-07-27 15:39:29 +02:00
|
|
|
visibility: visible; /* keep showing whilst the context menu is shown */
|
2021-05-13 14:59:10 +02:00
|
|
|
}
|
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
&:hover,
|
|
|
|
&.mx_ReactionsRow_addReactionButton_active {
|
2021-05-13 14:59:10 +02:00
|
|
|
&::before {
|
2021-08-12 11:27:12 +02:00
|
|
|
background-color: $primary-content;
|
2021-05-13 14:59:10 +02:00
|
|
|
}
|
|
|
|
}
|
2021-05-13 11:56:51 +02:00
|
|
|
}
|
2019-05-01 19:05:11 +02:00
|
|
|
}
|
2019-06-27 14:05:04 +02:00
|
|
|
|
2021-05-13 14:32:38 +02:00
|
|
|
.mx_EventTile:hover .mx_ReactionsRow_addReactionButton {
|
2021-05-17 11:01:24 +02:00
|
|
|
visibility: visible;
|
2021-05-13 14:32:38 +02:00
|
|
|
}
|
|
|
|
|
2019-06-27 14:05:04 +02:00
|
|
|
.mx_ReactionsRow_showAll {
|
2022-01-07 10:40:53 +01:00
|
|
|
color: $tertiary-content;
|
2021-05-13 14:59:10 +02:00
|
|
|
|
2022-05-21 11:38:50 +02: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 14:05:04 +02:00
|
|
|
}
|
|
|
|
}
|