Files
DocumentServer-v-9.2.0/web-apps/apps/common/main/resources/less/tooltip.less
Yajbir Singh f1b860b25c
Some checks failed
check / markdownlint (push) Has been cancelled
check / spellchecker (push) Has been cancelled
updated
2025-12-11 19:03:17 +05:30

102 lines
2.3 KiB
Plaintext

.tooltip {
&.in {
opacity: 1;
}
&.arrow-free {
&.top { margin-top: 0; }
// &.right { margin-left: 3px; padding: 0 @tooltip-arrow-width; }
&.bottom { margin-top: 0; }
// &.left { margin-left: -3px; padding: 0 @tooltip-arrow-width; }
}
&.top-left .tooltip-arrow,
&.top-right .tooltip-arrow {
bottom: 1px;
border-width: 5px 5px 0;
border-top-color: @background-normal-ie;
border-top-color: @background-normal;
}
&.top-left .tooltip-arrow,
&.bottom-left .tooltip-arrow {
left: 5px;
}
&.top-right .tooltip-arrow,
&.bottom-right .tooltip-arrow {
right: 5px;
}
&.bottom-left .tooltip-arrow,
&.bottom-right .tooltip-arrow {
top: 1px;
border-width: 0 5px 5px;
border-bottom-color: @background-normal-ie;
border-bottom-color: @background-normal;
}
}
.tooltip-inner {
.font-size-normal();
background-color: @background-normal-ie;
background-color: @background-normal;
color: @text-normal-ie;
color: @text-normal;
padding: 5px 12px;
border: @scaled-one-px-value-ie solid @border-regular-control-ie;
border: @scaled-one-px-value solid @border-regular-control;
.box-shadow(0 6px 12px rgba(0, 0, 0, 0.175));
background-clip: padding-box;
white-space: pre-wrap;
word-wrap: break-word;
max-width: 300px;
.text-align-left();
.tooltip[dir=auto] & {
text-align: unset;
}
span.contrast {
font-weight: bold;
color: #000;
.theme-type-dark & {
color: #fff;
}
}
}
.link-tooltip .tooltip-inner {
max-width: 500px;
.review-date {
.font-size-small();
opacity: 0.7;
}
}
.auto-tooltip .tooltip-inner {
max-width: none;
}
.eyedropper-color {
width: 30px;
height: 30px;
border: @scaled-one-px-value-ie solid @background-normal;
border: @scaled-one-px-value solid @background-normal;
outline: @scaled-one-px-value-ie solid @border-regular-control;
outline: @scaled-one-px-value solid @border-regular-control;
position: absolute;
top: -1000px;
left: -1000px;
z-index: 1001;
}
.eyedropper-tooltip {
.tooltip-inner {
padding: 2px;
line-height: 16px;
}
}