@import "./functions/func.scss";

.ui-tooltip-color {
    background-color: #fff;
    color: #323130;
    border-color: rgba(204, 204, 204, .8);

    @include outline();
}

.ui-tooltip-wrapper {
    position: absolute;
    word-wrap: break-word;
    height: auto;
    text-align: left;
    z-index: 250;
    min-width: 45px;
    max-width: 480px;
    min-height: 32px;
    border-radius: 2px;
    box-shadow: 0 3.2px 7.2px 0 rgba(0, 0, 0, .13), 0 0.6px 1.8px 0 rgba(0, 0, 0, .11);
    transition: visibility 0s linear 120ms, opacity 120ms ease;

    >.ui-tooltip-pointer {
        box-sizing: border-box;
        box-shadow: 0 5px 15px 2px rgba(0, 0, 0, .3);
        border: 1px solid #fff;
        z-index: -1;
        width: 16px;
        height: 16px;
        position: absolute;
        left: var(--pointer-left, calc(50% - 8px));
        bottom: -8px;
        transform: rotate(-45deg);
        transform-origin: center;
    }

    >.ui-tooltip-curtain {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: -1;
    }

    >.ui-tooltip-content {
        font-size: var(--font-smaller-size);
        line-height: 1rem;
        white-space: normal;
        overflow: hidden;
        margin: 8px;
        height: calc(100% - 16px);
        user-select: none;
    }

    &.ui-tooltip-down>.ui-tooltip-pointer {
        bottom: unset;
        top: -8px;
    }

    &.ui-tooltip-no>.ui-tooltip-pointer {
        display: none;
    }
}