Optimize scss

This commit is contained in:
Dennis Eichhorn 2017-07-13 15:27:19 +02:00 committed by GitHub
parent f5f1ec03fe
commit 2140cbd16e

View File

@ -4,9 +4,8 @@
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;
@ -23,7 +22,7 @@
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;
@ -33,13 +32,14 @@
margin-left: -10px; margin-left: -10px;
} }
.tooltip > i:after{ > i:after{
border-top: 10px solid #000000; border-top: 10px solid #000000;
margin-top: 0; margin-top: 0;
z-index: 1; z-index: 1;
} }
.tooltip:hover > i { &:hover > i {
visibility: visible; visibility: visible;
opacity: 1; opacity: 1;
} }
}