/********************************************************************************
 * Copyright (C) 2018 TypeFox and others.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 *
 * This Source Code may also be made available under the following Secondary
 * Licenses when the conditions for such availability set forth in the Eclipse
 * Public License v. 2.0 are satisfied: GNU General Public License, version 2
 * with the GNU Classpath Exception which is available at
 * https://www.gnu.org/software/classpath/license.html.
 *
 * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
 ********************************************************************************/

:root {
    --g-view-container-title-height: var(--g-content-line-height);
    --g-view-container-content-height: calc(100% - var(--g-view-container-title-height));
}


.theia-view-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.theia-view-container > .p-SplitPanel {
    height: 100%;
    width: 100%;
}

.theia-view-container > .p-SplitPanel > .p-SplitPanel-child {
    min-width: 50px;
    min-height: var(--g-content-line-height);
}

.theia-view-container > .p-SplitPanel > .p-SplitPanel-handle:after {
    background-color: var(--g-sideBarSectionHeader-border);
    min-height: 2px;
    min-width: 2px
}

.theia-view-container > .p-SplitPanel > .p-SplitPanel-handle {
    background-color: var(--g-sideBarSectionHeader-border);
}

.theia-view-container .part {
    height: 100%;
}

.theia-view-container .part > .header {
    cursor: pointer;
    display: flex;
    align-items: center;
    background: var(--g-sideBarSectionHeader-background);
    line-height: var(--g-view-container-title-height);
    z-index: 10;
    color: var(--g-sideBarSectionHeader-foreground);
}

.theia-view-container .part > .header .theia-ExpansionToggle {
    padding-left: 4px;
}

.theia-view-container > .p-SplitPanel[data-orientation='horizontal'] .part > .header .theia-ExpansionToggle::before {
    display: none;
    padding-left: 0px;
}

.theia-view-container > .p-SplitPanel[data-orientation='horizontal'] .part > .header .theia-ExpansionToggle {
    padding-left: 0px;
}

.theia-view-container .part > .header .label {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.theia-view-container .part > .body {
    height: var(--g-view-container-content-height);
    min-width: 50px;
    min-height: 50px;
}

.theia-view-container .part > .body .theia-tree-source-node-placeholder {
    padding-top: 4px;
    height: 100%;
}

.theia-view-container .part:hover > .body {
    display: block;
}

.theia-view-container .part.drop-target {
    background: var(--g-sideBar-dropBackground);
    border: var(--g-border-width) dashed var(--g-contrastActiveBorder);
    transition-property: top, left, right, bottom;
    transition-duration: 150ms;
    transition-timing-function: ease;
}

.theia-view-container-drag-image {
    background: var(--g-sideBarSectionHeader-background);
    color: var(--g-sideBarSectionHeader-foreground);
    line-height: var(--g-content-line-height);
    position: absolute;
    z-index: 999;
    text-transform: uppercase;
    font-size: var(--g-ui-font-size0);
    font-weight: 500;
    padding: 0 var(--g-ui-padding) 0 var(--g-ui-padding);
}

.p-TabBar-toolbar.theia-view-container-part-title {
    padding: 0px;
    padding-right: calc(var(--g-ui-padding) * 2 / 3);
}

.theia-view-container-part-title .item > div {
    height: var(--g-icon-size);
    width: var(--g-icon-size);
    background-size: var(--g-icon-size);
    line-height: var(--g-icon-size);
}
