/*
 * Copyright 2015 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

:host {
    flex: 1 1;
    padding: 2px 0 0 0;
}

.tree-outline-disclosure:not(.tree-outline-disclosure-hide-overflow) {
    min-width: 100%;
    display: inline-block;
}

.tree-outline {
    padding: 0 0 4px 4px;
    margin: 0;
    z-index: 0;
    position: relative;
}

.tree-outline li.hovered:not(.selected) .selection {
    display: block;
    left: 3px;
    right: 3px;
    background-color: rgba(56, 121, 217, 0.1);
    border-radius: 5px;
}

.tree-outline li .selection {
    display: none;
    z-index: -1;
    margin-left: -10000px;
}

.tree-outline li.selected .selection {
    display: block;
    background-color: #ddd;
}

.tree-outline li.in-clipboard .highlight {
    outline: 1px dotted darkgrey;
}

.tree-outline li.elements-drag-over .selection {
    display: block;
    margin-top: -2px;
    border-top: 2px solid rgb(56, 121, 217);
}

ol.tree-outline:focus li.selected .selection {
    background-color: rgb(56, 121, 217);
}

ol.tree-outline:focus li.parent.selected::before {
    background-color: white;
}

ol.tree-outline,
.tree-outline ol {
    list-style-type: none;
}

.tree-outline-no-padding {
    padding: 0;
}

.tree-outline ol {
    padding-left: 12px;
}

.tree-outline li {
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 16px;
}

ol.tree-outline:focus li.selected {
    color: white;
}

ol.tree-outline:focus li.selected * {
    color: inherit;
}

.tree-outline li::before {
    -webkit-user-select: none;
    -webkit-mask-image: url(Images/toolbarButtonGlyphs.png);
    -webkit-mask-size: 352px 168px;
    content: "aa";
    color: transparent;
    text-shadow: none;
    margin-right: -2px;
    height: 12px;
}

.tree-outline li:not(.parent)::before {
    background-color: transparent;
}

@media (-webkit-min-device-pixel-ratio: 1.5) {
.tree-outline li::before {
    -webkit-mask-image: url(Images/toolbarButtonGlyphs_2x.png);
}
} /* media */

.tree-outline li::before {
    -webkit-mask-position: -4px -96px;
    background-color: rgb(110, 110, 110);
}

.tree-outline li.parent.expanded::before {
    -webkit-mask-position: -20px -96px;
}

.tree-outline ol.children {
    display: none;
}

.tree-outline ol.children.expanded {
    display: block;
}
