@import './functions/checkbox.scss';
@import './variables/definition.scss';

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

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

    > .tooltip-pointer {
        box-sizing: border-box;
        @include 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: calc(50% - 8px);
        bottom: -8px;
        transform: rotate(-45deg);
        transform-origin: center;
    }

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

    > .tooltip-content {
        font-size: $smallSize;
        line-height: 1rem;
        white-space: normal;
        overflow: auto;
        margin: 8px;
        height: calc(100% - 16px);
        @include user-select(none);
    }
}