2018-04-12 02:23:35 +03:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2019-02-01 02:36:19 +03:00
|
|
|
Copyright 2019 New Vector Ltd
|
2018-04-12 02:23:35 +03:00
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
2019-02-01 02:36:19 +03:00
|
|
|
@keyframes mx_fadein {
|
2022-04-05 19:15:31 +03:00
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2019-02-01 02:36:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes mx_fadeout {
|
2022-04-05 19:15:31 +03:00
|
|
|
from {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
to {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2019-02-01 02:36:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Tooltip_chevron {
|
2018-04-12 02:23:35 +03:00
|
|
|
position: absolute;
|
2019-02-01 02:36:19 +03:00
|
|
|
left: -7px;
|
2022-11-21 17:48:41 +03:00
|
|
|
top: calc(50% - 6px);
|
2018-04-12 02:23:35 +03:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
2019-02-01 02:36:19 +03:00
|
|
|
border-top: 7px solid transparent;
|
|
|
|
border-right: 7px solid $menu-border-color;
|
|
|
|
border-bottom: 7px solid transparent;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2019-07-09 20:15:10 +03:00
|
|
|
.mx_Tooltip_chevron::after {
|
2022-12-12 14:24:14 +03:00
|
|
|
content: "";
|
2018-04-12 02:23:35 +03:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
2019-02-01 02:36:19 +03:00
|
|
|
border-top: 6px solid transparent;
|
|
|
|
border-right: 6px solid $menu-bg-color;
|
|
|
|
border-bottom: 6px solid transparent;
|
|
|
|
position: absolute;
|
|
|
|
top: -6px;
|
2018-04-12 02:23:35 +03:00
|
|
|
left: 1px;
|
|
|
|
}
|
|
|
|
|
2019-02-01 02:36:19 +03:00
|
|
|
.mx_Tooltip {
|
2018-04-12 02:23:35 +03:00
|
|
|
display: none;
|
|
|
|
position: fixed;
|
2020-07-16 17:15:00 +03:00
|
|
|
border-radius: 8px;
|
2022-07-27 16:39:29 +03:00
|
|
|
z-index: 6000; /* Higher than context menu so tooltips can be used everywhere */
|
2019-02-01 02:36:19 +03:00
|
|
|
padding: 10px;
|
2018-04-12 02:23:35 +03:00
|
|
|
pointer-events: none;
|
2020-03-31 17:26:23 +03:00
|
|
|
line-height: $font-14px;
|
|
|
|
font-size: $font-12px;
|
2020-07-16 17:15:00 +03:00
|
|
|
font-weight: 500;
|
2022-03-09 13:10:21 +03:00
|
|
|
max-width: 300px;
|
2019-02-01 02:36:19 +03:00
|
|
|
word-break: break-word;
|
2019-04-25 13:10:35 +03:00
|
|
|
|
2022-12-12 14:24:14 +03:00
|
|
|
background-color: #21262c; /* Same on both themes */
|
2020-07-17 18:19:10 +03:00
|
|
|
color: $accent-fg-color;
|
|
|
|
border: 0;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
.mx_Tooltip_chevron {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2019-04-25 13:10:35 +03:00
|
|
|
&.mx_Tooltip_visible {
|
|
|
|
animation: mx_fadein 0.2s forwards;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_Tooltip_invisible {
|
|
|
|
animation: mx_fadeout 0.1s forwards;
|
|
|
|
}
|
2023-06-06 10:29:22 +03:00
|
|
|
|
|
|
|
ul,
|
|
|
|
ol {
|
|
|
|
text-align: start; /* for list items */
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
2019-05-17 14:09:47 +03:00
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
/* These tooltips use an older style with a chevron */
|
2020-07-18 13:36:23 +03:00
|
|
|
.mx_Field_tooltip {
|
|
|
|
background-color: $menu-bg-color;
|
2021-08-12 12:27:12 +03:00
|
|
|
color: $primary-content;
|
2020-07-18 13:36:23 +03:00
|
|
|
border: 1px solid $menu-border-color;
|
|
|
|
text-align: unset;
|
|
|
|
|
|
|
|
.mx_Tooltip_chevron {
|
|
|
|
display: unset;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-16 17:15:00 +03:00
|
|
|
.mx_Tooltip_title {
|
2023-04-21 17:16:00 +03:00
|
|
|
font-weight: var(--font-semi-bold);
|
2020-07-16 17:15:00 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Tooltip_sub {
|
|
|
|
opacity: 0.7;
|
|
|
|
margin-top: 4px;
|
|
|
|
}
|