/*
 * Copyright (C) 2013 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.
 */

.content-view.dom-tree {
    overflow: auto;
}

.content-view.dom-tree .tree-outline.dom {
    --gutter-padding-start: 7px;
}

.content-view.dom-tree.show-gutter .tree-outline.dom {
    --gutter-padding-start: 20px;
}

body[dir=ltr] .content-view.dom-tree .tree-outline.dom {
    padding-left: var(--gutter-padding-start);
}

body[dir=rtl] .content-view.dom-tree .tree-outline.dom {
    padding-right: var(--gutter-padding-start);
}

.content-view.dom-tree .tree-outline.dom li .status-image {
    position: absolute;
    height: 13px;

    --status-image-position-start: 0;
}

body[dir=ltr] .content-view.dom-tree .tree-outline.dom li .status-image {
    left: var(--status-image-position-start);
}

body[dir=rtl] .content-view.dom-tree .tree-outline.dom li .status-image {
    transform: scaleX(-1);
    right: var(--status-image-position-start);
}

.content-view.dom-tree .tree-outline.dom li .status-image.breakpoint {
    width: 15px;
    fill: var(--breakpoint-fill-color);
    stroke: var(--breakpoint-stroke-color);
    stroke-width: 1px;
}

body:not(.window-inactive) .content-view.dom-tree .tree-outline.dom:focus li.selected .status-image.breakpoint {
    stroke: white;
}

.content-view.dom-tree .tree-outline.dom li .status-image.breakpoint.disabled {
    fill: var(--breakpoint-disabled-fill-color);
    stroke: var(--breakpoint-disabled-stroke-color);
}

.content-view.dom-tree .tree-outline.dom.breakpoints-disabled li .status-image.breakpoint {
    fill: var(--breakpoint-unresolved-fill-color);
    stroke: var(--breakpoint-unresolved-stroke-color);
}

.content-view.dom-tree .tree-outline.dom.breakpoints-disabled li .status-image.breakpoint.disabled {
    fill: var(--breakpoint-unresolved-disabled-fill-color);
    stroke: var(--breakpoint-unresolved-disabled-stroke-color);
}

.content-view.dom-tree .tree-outline.dom li .status-image.breakpoint.subtree {
    fill: none;
    opacity: 0.6;
}

.content-view.dom-tree .tree-outline.dom li.expanded .status-image.breakpoint.subtree {
    display: none;
}
