2018-04-11 23:23:35 +00:00
|
|
|
/*
|
2024-09-09 13:57:16 +00:00
|
|
|
Copyright 2019-2024 New Vector Ltd.
|
2018-04-11 23:23:35 +00:00
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
|
|
|
|
2024-09-09 13:57:16 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2018-04-11 23:23:35 +00:00
|
|
|
*/
|
|
|
|
|
2019-01-31 23:36:19 +00:00
|
|
|
@keyframes mx_fadein {
|
2022-04-05 16:15:31 +00:00
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2019-01-31 23:36:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes mx_fadeout {
|
2022-04-05 16:15:31 +00:00
|
|
|
from {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
to {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2019-01-31 23:36:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Tooltip_chevron {
|
2018-04-11 23:23:35 +00:00
|
|
|
position: absolute;
|
2019-01-31 23:36:19 +00:00
|
|
|
left: -7px;
|
2022-11-21 14:48:41 +00:00
|
|
|
top: calc(50% - 6px);
|
2018-04-11 23:23:35 +00:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
2019-01-31 23:36:19 +00:00
|
|
|
border-top: 7px solid transparent;
|
|
|
|
border-right: 7px solid $menu-border-color;
|
|
|
|
border-bottom: 7px solid transparent;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2019-07-09 17:15:10 +00:00
|
|
|
.mx_Tooltip_chevron::after {
|
2022-12-12 11:24:14 +00:00
|
|
|
content: "";
|
2018-04-11 23:23:35 +00:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
2019-01-31 23:36:19 +00:00
|
|
|
border-top: 6px solid transparent;
|
|
|
|
border-right: 6px solid $menu-bg-color;
|
|
|
|
border-bottom: 6px solid transparent;
|
|
|
|
position: absolute;
|
|
|
|
top: -6px;
|
2018-04-11 23:23:35 +00:00
|
|
|
left: 1px;
|
|
|
|
}
|
|
|
|
|
2019-01-31 23:36:19 +00:00
|
|
|
.mx_Tooltip {
|
2018-04-11 23:23:35 +00:00
|
|
|
display: none;
|
|
|
|
position: fixed;
|
2020-07-16 14:15:00 +00:00
|
|
|
border-radius: 8px;
|
2022-07-27 13:39:29 +00:00
|
|
|
z-index: 6000; /* Higher than context menu so tooltips can be used everywhere */
|
2019-01-31 23:36:19 +00:00
|
|
|
padding: 10px;
|
2018-04-11 23:23:35 +00:00
|
|
|
pointer-events: none;
|
2020-03-31 14:26:23 +00:00
|
|
|
line-height: $font-14px;
|
|
|
|
font-size: $font-12px;
|
2020-07-16 14:15:00 +00:00
|
|
|
font-weight: 500;
|
2022-03-09 10:10:21 +00:00
|
|
|
max-width: 300px;
|
2019-01-31 23:36:19 +00:00
|
|
|
word-break: break-word;
|
2019-04-25 10:10:35 +00:00
|
|
|
|
2024-03-18 15:47:55 +00:00
|
|
|
background-color: var(--cpd-color-alpha-gray-1400);
|
|
|
|
color: var(--cpd-color-text-on-solid-primary);
|
2020-07-17 15:19:10 +00:00
|
|
|
border: 0;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
.mx_Tooltip_chevron {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2019-04-25 10:10:35 +00:00
|
|
|
&.mx_Tooltip_visible {
|
|
|
|
animation: mx_fadein 0.2s forwards;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_Tooltip_invisible {
|
|
|
|
animation: mx_fadeout 0.1s forwards;
|
|
|
|
}
|
2023-06-06 07:29:22 +00:00
|
|
|
|
|
|
|
ul,
|
|
|
|
ol {
|
|
|
|
text-align: start; /* for list items */
|
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
2019-05-17 11:09:47 +00:00
|
|
|
|
2022-07-27 13:39:29 +00:00
|
|
|
/* These tooltips use an older style with a chevron */
|
2020-07-18 10:36:23 +00:00
|
|
|
.mx_Field_tooltip {
|
|
|
|
background-color: $menu-bg-color;
|
2021-08-12 09:27:12 +00:00
|
|
|
color: $primary-content;
|
2020-07-18 10:36:23 +00:00
|
|
|
border: 1px solid $menu-border-color;
|
|
|
|
text-align: unset;
|
|
|
|
|
|
|
|
.mx_Tooltip_chevron {
|
|
|
|
display: unset;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-16 14:15:00 +00:00
|
|
|
.mx_Tooltip_title {
|
2023-06-29 10:30:25 +00:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2020-07-16 14:15:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Tooltip_sub {
|
|
|
|
opacity: 0.7;
|
|
|
|
margin-top: 4px;
|
|
|
|
}
|