UNPKG

chrome-devtools-frontend

Version:
102 lines (84 loc) 1.95 kB
/* * Copyright 2021 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 { --list-group-padding: 16px; } li { border: 2px solid transparent; list-style: none; text-overflow: ellipsis; min-height: 12px; } .compact { border: 0; } .tree-node-key { white-space: var(--override-key-whitespace-wrapping); /* Override the default |min-width: auto| to avoid overflows of flex items */ min-width: 0; flex-grow: 1; } .arrow-icon { display: block; user-select: none; -webkit-mask-image: var(--image-file-treeoutlineTriangles); -webkit-mask-size: 32px 24px; -webkit-mask-position: 0 0; background-color: var(--color-text-primary); content: ""; text-shadow: none; height: 12px; width: 13px; overflow: hidden; flex: none; } ul { margin: 0; padding: 0; } ul[role="group"] { padding-left: var(--list-group-padding); } li:not(.parent) > .arrow-and-key-wrapper > .arrow-icon { -webkit-mask-size: 0; } li.parent.expanded > .arrow-and-key-wrapper > .arrow-icon { -webkit-mask-position: -16px 0; } li.is-top-level { border-top: var(--override-top-node-border); } li.is-top-level:last-child { border-bottom: var(--override-top-node-border); } :host([animated]) li:not(.is-top-level) { animation-name: slideIn; animation-duration: 150ms; animation-timing-function: cubic-bezier(0, 0, 0.3, 1); animation-fill-mode: forwards; } @keyframes slideIn { from { transform: translateY(-5px); opacity: 0%; } to { transform: none; opacity: 100%; } } .arrow-and-key-wrapper { display: flex; align-content: center; align-items: center; } [role="treeitem"]:focus { outline: 0; } ul[role="tree"]:focus-within [role="treeitem"].selected > .arrow-and-key-wrapper { /* stylelint-disable-next-line color-named */ background-color: var(--legacy-item-selection-bg-color); }