discourse/app/assets/stylesheets/common/base/tooltip.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.3 KiB
SCSS
Raw Normal View History

$discourse-tooltip-background: var(--secondary);
$discourse-tooltip-border: var(--primary-medium);
#discourse-tooltip {
background-color: $discourse-tooltip-background;
position: absolute;
z-index: z("tooltip");
border: 1px solid $discourse-tooltip-border;
max-width: 400px;
margin-top: 25px;
overflow-wrap: break-word;
display: none;
font-size: var(--font-0);
font-weight: 500;
&.retina {
border: 0.5px solid $discourse-tooltip-border;
}
.tooltip-pointer {
position: relative;
background: $discourse-tooltip-background;
}
.tooltip-pointer:before,
.tooltip-pointer:after {
position: absolute;
pointer-events: none;
border: solid transparent;
bottom: 100%;
content: "";
height: 0;
width: 0;
}
.tooltip-pointer:after {
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-17 03:06:23 +08:00
padding: 1em;
max-width: 250px;
font-size: var(--font-down-1);
color: var(--primary);
2018-05-17 03:06:23 +08:00
box-shadow: shadow("dropdown");
line-height: 1.4em;
}
}