mirror of
https://github.com/Karaka-Management/cssOMS.git
synced 2026-02-11 07:18:40 +00:00
Optimize scss
This commit is contained in:
parent
f5f1ec03fe
commit
2140cbd16e
70
tooltip.scss
70
tooltip.scss
|
|
@ -4,42 +4,42 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
|
||||||
|
|
||||||
.tooltip > i {
|
> i {
|
||||||
@include border-radius(3px);
|
@include border-radius(3px);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 0.7em;
|
font-size: 0.7em;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
line-height: 1.0em;
|
line-height: 1.0em;
|
||||||
background: #000000;
|
background: #000000;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
bottom: 100%;
|
bottom: 100%;
|
||||||
left: -50%;
|
left: -50%;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tooltip > i:before, .tooltip > i:after {
|
> i:before, > i:after {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
border-left: 10px solid transparent;
|
border-left: 10px solid transparent;
|
||||||
border-right: 10px solid transparent;
|
border-right: 10px solid transparent;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
margin-left: -10px;
|
margin-left: -10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
> i:after{
|
||||||
|
border-top: 10px solid #000000;
|
||||||
|
margin-top: 0;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
.tooltip > i:after{
|
&:hover > i {
|
||||||
border-top: 10px solid #000000;
|
visibility: visible;
|
||||||
margin-top: 0;
|
opacity: 1;
|
||||||
z-index: 1;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.tooltip:hover > i {
|
|
||||||
visibility: visible;
|
|
||||||
opacity: 1;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user