mirror of https://github.com/mue/mue.git
137 lines
2.3 KiB
SCSS
137 lines
2.3 KiB
SCSS
@import 'scss/variables';
|
|
|
|
.tooltip {
|
|
position: relative;
|
|
display: grid;
|
|
}
|
|
|
|
@keyframes floating {
|
|
0% {
|
|
transform: translate(0, -5px);
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
transform: translate(0, -0px);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.tooltipTitle {
|
|
@extend %basic;
|
|
text-align: center;
|
|
font-size: 0.6rem;
|
|
padding: 5px 10px;
|
|
position: absolute;
|
|
z-index: 1;
|
|
/*top: 100%;
|
|
left: 50%;
|
|
margin-top: 15px;
|
|
margin-left: -30px;*/
|
|
cursor: initial;
|
|
user-select: none;
|
|
opacity: 1;
|
|
animation-name: floating;
|
|
animation-duration: 0.3s;
|
|
animation-timing-function: ease-in;
|
|
}
|
|
|
|
#modal {
|
|
.tooltipTitle {
|
|
@include themed() {
|
|
background: t($modal-sidebar);
|
|
box-shadow: 0 0 0 1px t($modal-sidebarActive);
|
|
color: t($color);
|
|
}
|
|
}
|
|
}
|
|
|
|
#root {
|
|
.tooltipTitle {
|
|
@extend %basic;
|
|
}
|
|
}
|
|
|
|
.tooltipTitle:before {
|
|
transform: scale3d(0.2, 0.2, 1);
|
|
transition: all 0.2s ease-in-out;
|
|
}
|
|
.tooltipTitle:after {
|
|
transform: translate3d(0, 6px, 0);
|
|
transition: all 0.1s ease-in-out;
|
|
}
|
|
.tooltipTitle:hover:before,
|
|
.tooltipTitle:hover:after {
|
|
opacity: 1;
|
|
transform: scale3d(1, 1, 1);
|
|
}
|
|
.tooltipTitle:hover:after {
|
|
transition: all 0.2s 0.1s ease-in-out;
|
|
}
|
|
|
|
#arrow {
|
|
position: absolute;
|
|
background: #333;
|
|
width: 8px;
|
|
height: 8px;
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
.infoTooltip {
|
|
position: relative;
|
|
display: grid;
|
|
svg {
|
|
cursor: pointer;
|
|
&:hover {
|
|
@include themed() {
|
|
color: t($color);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.infoTooltipTitle {
|
|
min-width: 200px;
|
|
text-align: center;
|
|
position: absolute;
|
|
z-index: 1;
|
|
cursor: initial;
|
|
user-select: none;
|
|
opacity: 1;
|
|
text-align: left;
|
|
padding: 25px;
|
|
display: flex;
|
|
justify-content: center;
|
|
flex-flow: column;
|
|
gap: 10px;
|
|
@include themed() {
|
|
background-color: t($modal-background);
|
|
border-radius: t($borderRadius);
|
|
box-shadow: 0 0 0 1px t($modal-sidebarActive);
|
|
}
|
|
.tooltipHeader {
|
|
display: flex;
|
|
flex-flow: row;
|
|
align-items: center;
|
|
gap: 25px;
|
|
}
|
|
.link {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
.close {
|
|
font-size: 20px;
|
|
padding: 15px;
|
|
place-items: center;
|
|
display: grid;
|
|
cursor: pointer;
|
|
&:hover {
|
|
@include themed() {
|
|
background: t($modal-sidebar);
|
|
border-radius: t($borderRadius);
|
|
}
|
|
}
|
|
}
|
|
}
|