2018-04-12 01:23:35 +02:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2019-02-01 00:36:19 +01:00
|
|
|
Copyright 2019 New Vector Ltd
|
2018-04-12 01:23:35 +02: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 00:36:19 +01:00
|
|
|
@keyframes mx_fadein {
|
|
|
|
from { opacity: 0; }
|
|
|
|
to { opacity: 1; }
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes mx_fadeout {
|
|
|
|
from { opacity: 1; }
|
|
|
|
to { opacity: 0; }
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Tooltip_chevron {
|
2018-04-12 01:23:35 +02:00
|
|
|
position: absolute;
|
2019-02-01 00:36:19 +01:00
|
|
|
left: -7px;
|
|
|
|
top: 10px;
|
2018-04-12 01:23:35 +02:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
2019-02-01 00:36:19 +01:00
|
|
|
border-top: 7px solid transparent;
|
|
|
|
border-right: 7px solid $menu-border-color;
|
|
|
|
border-bottom: 7px solid transparent;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
2019-07-09 19:15:10 +02:00
|
|
|
.mx_Tooltip_chevron::after {
|
|
|
|
content: '';
|
2018-04-12 01:23:35 +02:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
2019-02-01 00:36:19 +01: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 01:23:35 +02:00
|
|
|
left: 1px;
|
|
|
|
}
|
|
|
|
|
2019-02-01 00:36:19 +01:00
|
|
|
.mx_Tooltip {
|
2018-04-12 01:23:35 +02:00
|
|
|
display: none;
|
|
|
|
position: fixed;
|
2019-02-01 00:36:19 +01:00
|
|
|
border: 1px solid $menu-border-color;
|
|
|
|
border-radius: 4px;
|
2019-03-22 19:50:13 +01:00
|
|
|
box-shadow: 4px 4px 12px 0 $menu-box-shadow-color;
|
2019-02-01 00:36:19 +01:00
|
|
|
background-color: $menu-bg-color;
|
2019-08-09 19:07:58 +02:00
|
|
|
z-index: 4000; // Higher than dialogs so tooltips can be used in dialogs
|
2019-02-01 00:36:19 +01:00
|
|
|
padding: 10px;
|
2018-04-12 01:23:35 +02:00
|
|
|
pointer-events: none;
|
|
|
|
line-height: 14px;
|
2019-02-01 00:36:19 +01:00
|
|
|
font-size: 12px;
|
|
|
|
font-weight: 600;
|
2018-04-12 01:23:35 +02:00
|
|
|
color: $primary-fg-color;
|
2019-02-01 00:36:19 +01:00
|
|
|
max-width: 200px;
|
|
|
|
word-break: break-word;
|
2018-04-12 01:23:35 +02:00
|
|
|
margin-right: 50px;
|
2019-04-25 12:10:35 +02:00
|
|
|
|
|
|
|
&.mx_Tooltip_visible {
|
|
|
|
animation: mx_fadein 0.2s forwards;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_Tooltip_invisible {
|
|
|
|
animation: mx_fadeout 0.1s forwards;
|
|
|
|
}
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
2019-05-17 13:09:47 +02:00
|
|
|
|
|
|
|
.mx_Tooltip_timeline {
|
|
|
|
box-shadow: none;
|
|
|
|
background-color: $tooltip-timeline-bg-color;
|
|
|
|
color: $tooltip-timeline-fg-color;
|
|
|
|
text-align: center;
|
|
|
|
border: none;
|
|
|
|
border-radius: 3px;
|
2019-05-17 16:04:27 +02:00
|
|
|
font-size: 14px;
|
|
|
|
line-height: 1.2;
|
|
|
|
padding: 6px 8px;
|
2019-05-17 13:09:47 +02:00
|
|
|
|
|
|
|
.mx_Tooltip_chevron::after {
|
|
|
|
border-right-color: $tooltip-timeline-bg-color;
|
|
|
|
}
|
|
|
|
}
|