2020-08-03 22:57:10 -04:00
|
|
|
$discourse-tooltip-background: var(--secondary);
|
|
|
|
$discourse-tooltip-border: var(--primary-medium);
|
2018-05-16 10:45:21 -04:00
|
|
|
|
|
|
|
#discourse-tooltip {
|
|
|
|
background-color: $discourse-tooltip-background;
|
|
|
|
position: absolute;
|
2018-11-26 16:47:12 -05:00
|
|
|
z-index: z("tooltip");
|
2018-05-16 10:45:21 -04:00
|
|
|
border: 1px solid $discourse-tooltip-border;
|
|
|
|
max-width: 400px;
|
|
|
|
margin-top: 25px;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
display: none;
|
2022-10-12 09:31:59 -04:00
|
|
|
font-size: var(--font-0);
|
2018-05-16 10:45:21 -04:00
|
|
|
font-weight: 500;
|
|
|
|
|
|
|
|
&.retina {
|
|
|
|
border: 0.5px solid $discourse-tooltip-border;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tooltip-pointer {
|
|
|
|
position: relative;
|
|
|
|
background: $discourse-tooltip-background;
|
|
|
|
}
|
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
.tooltip-pointer:before,
|
|
|
|
.tooltip-pointer:after {
|
2018-05-16 10:45:21 -04:00
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
border: solid transparent;
|
|
|
|
bottom: 100%;
|
|
|
|
content: "";
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
}
|
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
.tooltip-pointer:after {
|
2018-05-16 10:45:21 -04:00
|
|
|
border-bottom-color: $discourse-tooltip-background;
|
|
|
|
border-width: 8px;
|
|
|
|
left: 50%;
|
|
|
|
margin-left: -8px;
|
|
|
|
margin-bottom: -0.5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tooltip-pointer:before {
|
|
|
|
border-bottom-color: $discourse-tooltip-border;
|
|
|
|
border-width: 9px;
|
|
|
|
left: 50%;
|
|
|
|
margin-left: -9px;
|
|
|
|
margin-bottom: -0.5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tooltip-content {
|
2018-05-16 15:06:23 -04:00
|
|
|
padding: 1em;
|
|
|
|
max-width: 250px;
|
2022-10-12 09:31:59 -04:00
|
|
|
font-size: var(--font-down-1);
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary);
|
2018-05-16 15:06:23 -04:00
|
|
|
box-shadow: shadow("dropdown");
|
2018-05-16 10:45:21 -04:00
|
|
|
line-height: 1.4em;
|
|
|
|
}
|
|
|
|
}
|