/*
 * Copyright (C) 2015-2017 Apple Inc. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
 * THE POSSIBILITY OF SUCH DAMAGE.
 */

.type-tree {
    position: relative;
    display: block;

    color: black;
    font-family: -webkit-system-font, sans-serif;
    font-size: 12px;
}

.tree-outline.type {
    margin: 0;
    padding-bottom: 2px;
    min-height: 18px;

    list-style: none;
    outline: none;

    --type-tree-outline-padding-end: 6px;
}

body[dir=ltr] .tree-outline.type {
    padding-right: var(--type-tree-outline-padding-end);
}

body[dir=rtl] .tree-outline.type {
    padding-left: var(--type-tree-outline-padding-end);
}

.tree-outline.type li {
    padding: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-user-select: text;
    cursor: default;
}

.tree-outline.type ol {
    display: none;
    margin: 0;
    -webkit-padding-start: 16px;
    list-style: none;
}

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

.tree-outline.type li .empty-message {
    color: hsl(0, 0%, 60%);

    --type-tree-outline-empty-message-margin-start: 13px;
}

body[dir=ltr] .tree-outline.type li .empty-message {
    margin-left: var(--type-tree-outline-empty-message-margin-start);
}

body[dir=rtl] .tree-outline.type li .empty-message {
    margin-right: var(--type-tree-outline-empty-message-margin-start);
}
