structure adjustment
This commit is contained in:
51
lib/ui/css/tooltip.scss
Normal file
51
lib/ui/css/tooltip.scss
Normal file
@ -0,0 +1,51 @@
|
||||
.tooltip-color {
|
||||
background-color: #fff;
|
||||
color: #323130;
|
||||
border-color: rgba(204, 204, 204, .8);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.tooltip-wrapper {
|
||||
position: absolute;
|
||||
word-wrap: break-word;
|
||||
height: auto;
|
||||
text-align: left;
|
||||
z-index: 250;
|
||||
min-width: 45px;
|
||||
max-width: 480px;
|
||||
min-height: 32px;
|
||||
border-radius: 2px;
|
||||
box-shadow: 0 3.2px 7.2px 0 rgba(0, 0, 0, .13), 0 0.6px 1.8px 0 rgba(0, 0, 0, .11);
|
||||
transition: visibility 0s linear 120ms, opacity 120ms ease;
|
||||
|
||||
>.tooltip-pointer {
|
||||
box-sizing: border-box;
|
||||
box-shadow: 0 5px 15px 2px rgba(0, 0, 0, .3);
|
||||
border: 1px solid #fff;
|
||||
z-index: -1;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
position: absolute;
|
||||
left: calc(50% - 8px);
|
||||
bottom: -8px;
|
||||
transform: rotate(-45deg);
|
||||
transform-origin: center;
|
||||
}
|
||||
|
||||
>.tooltip-curtain {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
>.tooltip-content {
|
||||
font-size: var(--font-smaller-size);
|
||||
line-height: 1rem;
|
||||
white-space: normal;
|
||||
overflow: hidden;
|
||||
margin: 8px;
|
||||
height: calc(100% - 16px);
|
||||
user-select: none;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user