// ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
// ┃ ██████ ██████ ██████       █      █      █      █      █ █▄  ▀███ █       ┃
// ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█  ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄  ▀█ █ ▀▀▀▀▀ ┃
// ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄   █ ▄▄▄▄▄ ┃
// ┃ █      ██████ █  ▀█▄       █ ██████      █      ███▌▐███ ███████▄ █       ┃
// ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
// ┃ Copyright (c) 2017, the Perspective Authors.                              ┃
// ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃
// ┃ This file is part of the Perspective library, distributed under the terms ┃
// ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

@import "dom/scrollbar.less";

:host {
    .tab-gutter {
        border-color: var(--inactive--color, #6e6e6e);
        display: flex;

        .tab.tab-padding {
            flex: 1;
            cursor: unset;
            .tab-title {
                border-right: none;
            }
            .tab-border {
                border-right: none;
            }
        }

        .tab {
            //TODO: This needs to be a variable color. Which one?
            background: rgba(0, 0, 0, 0.125);
            border-right: 1px solid var(--inactive--color, #6e6e6e);
            user-select: none;
            cursor: pointer;

            .tab-title {
                font-size: 10px;
                padding: 10px;
                border-bottom: 1px solid var(--inactive--color, #6e6e6e);
            }
            .tab-border {
                height: 2px;
                width: 100%;
                background-color: var(--inactive--color, #6e6e6e);
                margin-top: 1px;
            }

            &.selected {
                background: unset;
                border-bottom: 1px transparent;

                .tab-title {
                    border-bottom: 1px transparent;
                    border-right: none;
                }
                .tab-border {
                    background-color: transparent;
                    border-right: none;
                }
            }
        }
    }

    #format-tab {
        overflow: scroll;
    }

    .tab-content {
        @include scrollbar;
        flex: 1 1 auto;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        .tab-section:last-child {
            padding: 12px 8px 12px 8px;
        }

        .tab-section {
            padding: 12px 8px 0px 8px;
            flex: 0 0 auto;
            overflow: hidden;
        }

        .text {
            margin-left: 1em;
        }
    }
}
