3.0 source code
This commit is contained in:
52
OfficeWeb/apps/common/main/resources/less/tooltip.less
Normal file
52
OfficeWeb/apps/common/main/resources/less/tooltip.less
Normal file
@@ -0,0 +1,52 @@
|
||||
|
||||
.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: @body-bg;
|
||||
}
|
||||
|
||||
&.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: @body-bg;
|
||||
}
|
||||
}
|
||||
|
||||
.tooltip-inner {
|
||||
font-size: 11px;
|
||||
background-color: @body-bg;
|
||||
color: @gray-deep;
|
||||
padding: 5px 12px;
|
||||
border: 1px solid rgba(0, 0, 0, 0.15);
|
||||
.box-shadow(0 6px 12px rgba(0, 0, 0, 0.175));
|
||||
background-clip: padding-box;
|
||||
|
||||
white-space: pre-wrap;
|
||||
text-align: left;
|
||||
word-wrap: break-word;
|
||||
max-width: 300px;
|
||||
}
|
||||
Reference in New Issue
Block a user