@use 'ngx-tethys/styles/variables.scss';
@use '../../styles/variables.scss' as theVariables;
@use '../../styles/mixins.scss' as mixins;

.the-toolbar-dropdown-container {
    position: relative;
    display: inline-flex;
    cursor: pointer;

    @include mixins.the-toolbar-disabled();

    &.heading-list {
        .show-text {
            width: 38px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    }
    &.font-size {
        .show-text {
            width: 16px;
        }
    }
    .text-caret-down-icon {
        position: absolute;
        top: 16px;
        right: 0.438rem;
        transform: translateY(-65%);
    }
}

.the-toolbar-dropdown-popover {
    .thy-popover-container {
        min-width: 200px;
    }

    .thy-dropdown-menu {
        z-index: 100;
        display: flex;
        flex-direction: column;
        width: 200px;
        max-height: 300px;
        overflow-y: auto;
        background-color: variables.$white;
    }

    &.heading-list {
        .dropdown-menu-item:not(:first-child) {
            padding-top: 0;
            padding-bottom: 0;

            .name {
                display: block;
                margin: auto 0;
                color: variables.$gray-800;
                font-weight: bold;
                line-height: inherit;
            }
        }
    }
}
