$transition-property: visibility, opacity; $transition-duration: 0.3s; $transition-timing: ease-out; $color_bg: rgba(20, 20, 20, 0.9); $color_txt: #eeeeee; /* start dzs tooltip */ .dzstooltip-con { position: relative; cursor: pointer; &.for-hover:hover { .dzstooltip { opacity: 1; visibility: visible; } } } .dzstooltip { position: absolute; white-space: nowrap; line-height: 1; width: auto; display: block; max-width: 80vw; opacity: 0; visibility: hidden; $transition-property: opacity, visibility, z-index, transform; $transition-duration: 0.3s; $transition-timing: ease-out; @include apply_transition($transition-property, $transition-duration, $transition-timing); .tooltip-close { $size: 23px; width: $size; height: $size; position: absolute; top: -($size/2.5); right: -($size/2.5); box-shadow: 1px 1px 4px 0 rgba(50, 50, 50, 0.3); border-radius: 50%; > svg { width: $size; height: $size; .bg-circle { fill: #fff; } .x-path { fill: #444; } } } &.dims-set { white-space: normal; line-height: inherit; } .dzstooltip--inner { position: relative; display: block; &:before { content: ""; display: block; position: absolute; } } &.talign-start { left: 0; .dzstooltip--inner { left: 0; &:after { left: 15px; } } } &.talign-center { left: 50%; transform: translate3d(-50%, 0, 0); .dzstooltip--inner { .dzstooltip--inner { } &:after { left: 50%; margin-left: -4px; } } } &.talign-end { left: auto; right: 0px; .dzstooltip--inner { .dzstooltip--inner { } &:after { right: 15px; } } } &.arrow-bottom { bottom: 100%; margin-bottom: 15px; .dzstooltip--inner { &:after { top: 100%; } &:before { top: 100%; } &:before { left: 0; width: 100%; height: 15px; } } } &.arrow-top { top: 100%; margin-top: 15px; .dzstooltip--inner { &:after, &:before { bottom: 100%; } &:before { left: 0; width: 100%; height: 15px; } } } &.arrow-left { left: 100%; margin-left: 15px; .dzstooltip--inner { &:after { content: ''; left: auto; right: 100%; top: 0; border-right-width: 7px; } } } &.arrow-right { left: auto; right: 100%; margin-right: 15px; .dzstooltip--inner { &:after { right: auto; left: 100%; border-left-width: 7px; } } } .dzstooltip--inner { &:after { position: absolute;; width: 0; height: 0; border-style: solid; border-color: transparent; border-width: 7px; } } } .text-align-center { text-align: center; } .tooltip-indicator:hover ~ .dzstooltip, .dzstooltip.active { opacity: 1; visibility: visible; z-index: 5; } .dzstooltip.style-default { .dzstooltip--inner { padding: 10px; &:after { content: ""; } } } .dzstooltip.style-rounded { .dzstooltip--inner { padding: 15px; border-radius: 5px; box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.35); .negative-margin-top { margin-top: -15px; margin-left: -15px; margin-right: -15px; border-radius: 5px 5px 0 0; margin-bottom: 10px; } &:after { content: ""; } } } $color_bg: #222; $color_txt: #fff; .dzstooltip.color-dark-light { .dzstooltip--inner { background-color: $color_bg; color: $color_txt; } &.arrow-bottom { .dzstooltip--inner { &:after { border-top-color: $color_bg; } } } &.arrow-top { .dzstooltip--inner { &:after { border-bottom-color: $color_bg; } } } &.arrow-left { .dzstooltip--inner { &:after { border-right-color: $color_bg; } } } &.arrow-right { .dzstooltip--inner { &:after { border-left-color: $color_bg; } } } } .dzstooltip[class*="transition-"] { .dzstooltip--inner { $transition-property: transform; $transition-duration: 0.25s; $transition-timing: ease-out; @include apply_transition($transition-property, $transition-duration, $transition-timing); } } .dzstooltip[class*="transition-"].active, .tooltip-indicator:hover + .dzstooltip[class*="transition-"], .dzstooltip-con:not(.for-click):hover > .dzstooltip { .dzstooltip--inner { transform: scale(1) translate3d(0, 0, 0); } } .dzstooltip-con:not(.for-click):hover { .dzstooltip { opacity: 1; visibility: visible; } } span.dzstooltip-con { display: inline-block; } /* end dzs tooltip */ .playlist-tooltip { width: 320px; max-width: 90vw; display: block; margin-right: -10px; .dzstooltip--inner { position: relative; box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.4); transform-origin: bottom right; &:not(.a):not(.b):after { border-top-color: #d4d3d3; } } } .comments-holder { .dzstooltip { line-height: 1.7; margin-left: -15px; } } @media all and (max-width: 450px) { .audioplayer-inner { .dzstooltip--inner { margin-right: -10px; word-break: break-all; max-width: 100vw; display: block; overflow-wrap: unset; white-space: normal; width: 50vw; } } } @import "tooltip-close/tooltip-close"; @media all and (max-width: 500px) { .dzstooltip:not(.ceva){ max-width: 70vw; } }