mirror of
https://github.com/Karaka-Management/cssOMS.git
synced 2026-02-17 18:08:41 +00:00
Optimize scss
This commit is contained in:
parent
f5f1ec03fe
commit
2140cbd16e
16
tooltip.scss
16
tooltip.scss
|
|
@ -4,9 +4,8 @@
|
|||
position: relative;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.tooltip > i {
|
||||
> i {
|
||||
@include border-radius(3px);
|
||||
text-align: center;
|
||||
font-size: 0.7em;
|
||||
|
|
@ -21,9 +20,9 @@
|
|||
visibility: hidden;
|
||||
opacity: 0;
|
||||
white-space: pre;
|
||||
}
|
||||
}
|
||||
|
||||
.tooltip > i:before, .tooltip > i:after {
|
||||
> i:before, > i:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
border-left: 10px solid transparent;
|
||||
|
|
@ -31,15 +30,16 @@
|
|||
top: 100%;
|
||||
left: 50%;
|
||||
margin-left: -10px;
|
||||
}
|
||||
}
|
||||
|
||||
.tooltip > i:after{
|
||||
> i:after{
|
||||
border-top: 10px solid #000000;
|
||||
margin-top: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.tooltip:hover > i {
|
||||
&:hover > i {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user