/*
 * Copyright (c) 2015 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
 */

@import '../variables.scss';

.shared-tooltip {
    div.arrow:first-child {
        width: 12px;
        height: 12px;
        pointer-events: none;
    }

    &.bs-tooltip-top {
        div.arrow:first-child {
            bottom: -6px;

            &::before {
                border-top-color: $gray-900;
                border-width: 6px 6px 0 6px;
            }
        }
    }

    &.bs-tooltip-right {
        div.arrow:first-child {
            left: -6px;

            &::before {
                border-right-color: $gray-900;
                border-width: 6px 6px 6px 0;
            }
        }
    }

    &.bs-tooltip-bottom {
        div.arrow:first-child {
            top: -6px;

            &::before {
                border-bottom-color: $gray-900;
                border-width: 0 6px 6px 6px;
            }
        }
    }

    &.bs-tooltip-left {
        div.arrow:first-child {
            right: -6px;

            &::before {
                border-left-color: $gray-900;
                border-width: 6px 0 6px 6px;
            }
        }
    }

    .tooltip-inner {
        background: $gray-900;
        min-width: 240px;
    }
}

