0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
wagtail/client/scss/components/_tooltips.scss
Thibaud Colas 14280ad7ea
Convert all UI code to CSS logical properties (#8051)
- Rewrite all styles to use logical properties
- Update Stylelint configuration to include logical properties checks
2022-03-15 13:21:06 +00:00

133 lines
2.7 KiB
SCSS

// From Bootstrap v3.0.0
.tooltip {
position: absolute;
z-index: 1030;
display: block;
font-size: 12px;
line-height: 1.4;
opacity: 0;
visibility: visible;
}
.tooltip.in {
opacity: 0.9;
}
.tooltip.top {
padding: 5px 0;
}
.tooltip.right {
padding: 0 5px;
}
.tooltip.bottom {
padding: 5px 0;
}
.tooltip.left {
padding: 0 5px;
}
.tooltip-inner {
max-width: 200px;
padding: 3px 8px;
color: #fff;
text-align: center;
text-decoration: none;
background-color: #000;
border-radius: 4px;
}
.tooltip-arrow {
position: absolute;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}
.tooltip.top .tooltip-arrow {
bottom: 0;
// Remove once we drop support for Safari 13.
// stylelint-disable-next-line property-disallowed-list
left: 50%;
inset-inline-start: 50%;
margin-inline-start: -5px;
border-top-color: #000;
border-width: 5px 5px 0;
}
.tooltip.top-left .tooltip-arrow {
bottom: 0;
// Remove once we drop support for Safari 13.
// stylelint-disable-next-line property-disallowed-list
left: 5px;
inset-inline-start: 5px;
border-top-color: #000;
border-width: 5px 5px 0;
}
.tooltip.top-right .tooltip-arrow {
// Remove once we drop support for Safari 13.
// stylelint-disable-next-line property-disallowed-list
right: 5px;
inset-inline-end: 5px;
bottom: 0;
border-top-color: #000;
border-width: 5px 5px 0;
}
.tooltip.right .tooltip-arrow {
top: 50%;
// Remove once we drop support for Safari 13.
// stylelint-disable-next-line property-disallowed-list
left: 0;
inset-inline-start: 0;
margin-top: -5px;
border-inline-end-color: #000;
border-width: 5px 5px 5px 0;
}
.tooltip.left .tooltip-arrow {
top: 50%;
// Remove once we drop support for Safari 13.
// stylelint-disable-next-line property-disallowed-list
right: 0;
inset-inline-end: 0;
margin-top: -5px;
border-inline-start-color: #000;
border-width: 5px 0 5px 5px;
}
.tooltip.bottom .tooltip-arrow {
top: 0;
// Remove once we drop support for Safari 13.
// stylelint-disable-next-line property-disallowed-list
left: 50%;
inset-inline-start: 50%;
margin-inline-start: -5px;
border-bottom-color: #000;
border-width: 0 5px 5px;
}
.tooltip.bottom-left .tooltip-arrow {
top: 0;
// Remove once we drop support for Safari 13.
// stylelint-disable-next-line property-disallowed-list
left: 5px;
inset-inline-start: 5px;
border-bottom-color: #000;
border-width: 0 5px 5px;
}
.tooltip.bottom-right .tooltip-arrow {
top: 0;
// Remove once we drop support for Safari 13.
// stylelint-disable-next-line property-disallowed-list
right: 5px;
inset-inline-end: 5px;
border-bottom-color: #000;
border-width: 0 5px 5px;
}