blob: eedf8056ec6c1b06f0c01a2662a763cdf6c88616 [file] [log] [blame]
Blink Reformat4c46d092018-04-07 15:32:371/*
2 * Copyright 2015 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7:host {
Mathias Bynensb0c1f4b2020-05-15 14:34:418 flex: 1 1 auto;
9 padding: 2px 0 0 0;
Blink Reformat4c46d092018-04-07 15:32:3710}
11
12.tree-outline-disclosure:not(.tree-outline-disclosure-hide-overflow) {
Mathias Bynensb0c1f4b2020-05-15 14:34:4113 min-width: 100%;
14 display: inline-block;
Blink Reformat4c46d092018-04-07 15:32:3715}
16
17.tree-outline {
Mathias Bynensb0c1f4b2020-05-15 14:34:4118 padding: 0 0 4px 4px;
19 margin: 0;
20 z-index: 0;
21 position: relative;
Blink Reformat4c46d092018-04-07 15:32:3722}
23
Peter Marshall9a3d85f2020-08-12 14:38:0024.tree-outline:focus-visible {
Mathias Bynensb0c1f4b2020-05-15 14:34:4125 box-shadow: 0 0 0 2px var(--accent-color) inset;
Amanda Baker05d6a232019-10-24 01:23:3526}
27
Blink Reformat4c46d092018-04-07 15:32:3728.tree-outline li .selection {
Mathias Bynensb0c1f4b2020-05-15 14:34:4129 display: none;
30 z-index: -1;
31 margin-left: -10000px;
Blink Reformat4c46d092018-04-07 15:32:3732}
33
James Lissiak02a851d2019-03-27 16:03:2234.tree-outline:not(.hide-selection-when-blurred) li.selected {
Mathias Bynensb0c1f4b2020-05-15 14:34:4135 color: var(--selection-inactive-fg-color);
James Lissiak02a851d2019-03-27 16:03:2236}
37
Erik Luod6bf97b2018-08-25 02:06:5138.tree-outline:not(.hide-selection-when-blurred) li.selected .selection {
Mathias Bynensb0c1f4b2020-05-15 14:34:4139 display: block;
40 background-color: var(--selection-inactive-bg-color);
Blink Reformat4c46d092018-04-07 15:32:3741}
42
Erik Luod6bf97b2018-08-25 02:06:5143.tree-outline:not(.hide-selection-when-blurred) li.elements-drag-over .selection {
Mathias Bynensb0c1f4b2020-05-15 14:34:4144 display: block;
45 margin-top: -2px;
46 border-top: 2px solid;
47 border-top-color: var(--selection-bg-color);
Blink Reformat4c46d092018-04-07 15:32:3748}
49
Yang Guof5996c92020-07-06 07:50:5450.tree-outline:not(.hide-selection-when-blurred) li.hovered:not(.selected) .selection {
51 display: block;
52 left: 3px;
53 right: 3px;
54 background-color: var(--item-hover-color);
55 border-radius: 5px;
56}
57
58.tree-outline:not(.hide-selection-when-blurred) li.in-clipboard .highlight {
59 outline: 1px dotted darkgrey;
60}
61
Erik Luod6bf97b2018-08-25 02:06:5162ol.tree-outline:not(.hide-selection-when-blurred) li.selected:focus .selection {
Mathias Bynensb0c1f4b2020-05-15 14:34:4163 background-color: var(--selection-bg-color);
Blink Reformat4c46d092018-04-07 15:32:3764}
65
Erik Luod6bf97b2018-08-25 02:06:5166ol.tree-outline:not(.hide-selection-when-blurred) li.parent.selected:focus::before {
Mathias Bynensb0c1f4b2020-05-15 14:34:4167 background-color: var(--selection-fg-color);
Blink Reformat4c46d092018-04-07 15:32:3768}
69
70ol.tree-outline,
71.tree-outline ol {
Mathias Bynensb0c1f4b2020-05-15 14:34:4172 list-style-type: none;
Blink Reformat4c46d092018-04-07 15:32:3773}
74
Blink Reformat4c46d092018-04-07 15:32:3775.tree-outline ol {
Mathias Bynensb0c1f4b2020-05-15 14:34:4176 padding-left: 12px;
Blink Reformat4c46d092018-04-07 15:32:3777}
78
79.tree-outline li {
Mathias Bynensb0c1f4b2020-05-15 14:34:4180 text-overflow: ellipsis;
81 white-space: nowrap;
82 position: relative;
83 display: flex;
84 align-items: center;
85 min-height: 16px;
Blink Reformat4c46d092018-04-07 15:32:3786}
87
Erik Luod6bf97b2018-08-25 02:06:5188ol.tree-outline:not(.hide-selection-when-blurred) li.selected:focus {
Mathias Bynensb0c1f4b2020-05-15 14:34:4189 color: var(--selection-fg-color);
Blink Reformat4c46d092018-04-07 15:32:3790}
91
Erik Luod6bf97b2018-08-25 02:06:5192ol.tree-outline:not(.hide-selection-when-blurred) li.selected:focus * {
Mathias Bynensb0c1f4b2020-05-15 14:34:4193 color: inherit;
Blink Reformat4c46d092018-04-07 15:32:3794}
95
96.tree-outline li .icons-container {
Mathias Bynensb0c1f4b2020-05-15 14:34:4197 align-self: center;
98 display: flex;
99 align-items: center;
Blink Reformat4c46d092018-04-07 15:32:37100}
101
102.tree-outline li .leading-icons {
Mathias Bynensb0c1f4b2020-05-15 14:34:41103 margin-right: 4px;
Blink Reformat4c46d092018-04-07 15:32:37104}
105
106.tree-outline li .trailing-icons {
Mathias Bynensb0c1f4b2020-05-15 14:34:41107 margin-left: 4px;
Blink Reformat4c46d092018-04-07 15:32:37108}
109
110.tree-outline li::before {
Mathias Bynensb0c1f4b2020-05-15 14:34:41111 user-select: none;
Tim van der Lippe2efbb1b2020-07-14 14:24:20112 -webkit-mask-image: url(Images/treeoutlineTriangles.svg);
113 -webkit-mask-size: 32px 24px;
114 -webkit-mask-position: 0 0;
Yang Guof5996c92020-07-06 07:50:54115 background-color: #727272;
Mathias Bynense4de6b32020-07-14 14:46:31116 content: "\A0\A0";
Mathias Bynensb0c1f4b2020-05-15 14:34:41117 text-shadow: none;
118 margin-right: -2px;
119 height: 12px;
120 width: 13px;
Blink Reformat4c46d092018-04-07 15:32:37121}
122
123.tree-outline li:not(.parent)::before {
Mathias Bynensb0c1f4b2020-05-15 14:34:41124 background-color: transparent;
Blink Reformat4c46d092018-04-07 15:32:37125}
126
Blink Reformat4c46d092018-04-07 15:32:37127.tree-outline li.parent.expanded::before {
Tim van der Lippe2efbb1b2020-07-14 14:24:20128 -webkit-mask-position: -16px 0;
Blink Reformat4c46d092018-04-07 15:32:37129}
130
131.tree-outline ol.children {
Mathias Bynensb0c1f4b2020-05-15 14:34:41132 display: none;
Blink Reformat4c46d092018-04-07 15:32:37133}
134
135.tree-outline ol.children.expanded {
Mathias Bynensb0c1f4b2020-05-15 14:34:41136 display: block;
Blink Reformat4c46d092018-04-07 15:32:37137}
138
139.tree-outline.tree-outline-dense li {
Mathias Bynensb0c1f4b2020-05-15 14:34:41140 margin-top: 1px;
141 min-height: 12px;
Blink Reformat4c46d092018-04-07 15:32:37142}
143
144.tree-outline.tree-outline-dense li.parent {
Mathias Bynensb0c1f4b2020-05-15 14:34:41145 margin-top: 0;
Blink Reformat4c46d092018-04-07 15:32:37146}
147
148.tree-outline.tree-outline-dense li.parent::before {
Mathias Bynensb0c1f4b2020-05-15 14:34:41149 top: 0;
Blink Reformat4c46d092018-04-07 15:32:37150}
151
152.tree-outline.tree-outline-dense ol {
Mathias Bynensb0c1f4b2020-05-15 14:34:41153 padding-left: 10px;
Blink Reformat4c46d092018-04-07 15:32:37154}
Erik Luod6bf97b2018-08-25 02:06:51155
Peter Marshall9a3d85f2020-08-12 14:38:00156.tree-outline.hide-selection-when-blurred .selected:focus-visible {
Mathias Bynensb0c1f4b2020-05-15 14:34:41157 background: var(--focus-bg-color);
158 border-radius: 2px;
Erik Luod6bf97b2018-08-25 02:06:51159}
160
Peter Marshall9a3d85f2020-08-12 14:38:00161.tree-outline-disclosure:not(.tree-outline-disclosure-hide-overflow) .tree-outline.hide-selection-when-blurred .selected:focus-visible {
Mathias Bynensb0c1f4b2020-05-15 14:34:41162 width: fit-content;
163 padding-right: 3px;
Erik Luod6bf97b2018-08-25 02:06:51164}
Kham Udom047cb692020-02-03 22:30:11165
166@media (forced-colors: active) {
Mathias Bynensb0c1f4b2020-05-15 14:34:41167 .tree-outline-disclosure li.parent::before,
168 .tree-outline:not(.hide-selection-when-blurred) li.parent:not(.selected)::before,
169 .tree-outline li [is=ui-icon].icon-mask {
170 forced-color-adjust: none;
171 background-color: ButtonText;
172 }
173
174 .tree-outline-disclosure li.parent:hover:not(.selected)::before,
175 .tree-outline:not(.hide-selection-when-blurred) li.parent:hover:not(.selected)::before {
176 background-color: ButtonText;
177 }
178
Yang Guof5996c92020-07-06 07:50:54179 .tree-outline:not(.hide-selection-when-blurred) li.selected .selection {
180 forced-color-adjust: none;
181 background-color: ButtonText;
182 }
183
Mathias Bynensb0c1f4b2020-05-15 14:34:41184 ol.tree-outline:not(.hide-selection-when-blurred) li.selected:focus .selection,
Peter Marshall9a3d85f2020-08-12 14:38:00185 .tree-outline.hide-selection-when-blurred .selected:focus-visible {
Mathias Bynensb0c1f4b2020-05-15 14:34:41186 forced-color-adjust: none;
187 background-color: Highlight;
188 }
189
Mathias Bynensb0c1f4b2020-05-15 14:34:41190 ol.tree-outline:not(.hide-selection-when-blurred) li.parent.selected::before,
191 ol.tree-outline:not(.hide-selection-when-blurred) li.parent.selected:focus::before,
Peter Marshall9a3d85f2020-08-12 14:38:00192 .tree-outline.hide-selection-when-blurred .selected:focus-visible::before {
Mathias Bynensb0c1f4b2020-05-15 14:34:41193 background-color: HighlightText;
194 }
195
Yang Guof5996c92020-07-06 07:50:54196 .tree-outline li:not(.parent)::before,
197 .tree-outline li:not(.parent):hover::before,
Peter Marshall9a3d85f2020-08-12 14:38:00198 .tree-outline.hide-selection-when-blurred .selected:focus-visible:not(.parent)::before {
Yang Guof5996c92020-07-06 07:50:54199 forced-color-adjust: none;
200 background-color: transparent;
201 }
202
Mathias Bynensb0c1f4b2020-05-15 14:34:41203 .tree-outline li.selected [is=ui-icon].icon-mask,
204 .tree-outline li.selected:focus [is=ui-icon]:not(.icon-mask) {
205 background-color: HighlightText !important;
206 }
207
Yang Guof5996c92020-07-06 07:50:54208 ol.tree-outline:not(.hide-selection-when-blurred) li.selected,
209 .tree-outline:not(.hide-selection-when-blurred) li.selected .tree-element-title,
210 .tree-outline:not(.hide-selection-when-blurred) li.selected:focus,
Peter Marshall9a3d85f2020-08-12 14:38:00211 .tree-outline:not(.hide-selection-when-blurred) li:focus-visible .tree-element-title,
Mathias Bynensb0c1f4b2020-05-15 14:34:41212 .tree-outline:not(.hide-selection-when-blurred) li.selected:focus .tree-element-title,
Mathias Bynensb0c1f4b2020-05-15 14:34:41213 .tree-outline:not(.hide-selection-when-blurred) li.selected span,
Peter Marshall9a3d85f2020-08-12 14:38:00214 .tree-outline.hide-selection-when-blurred .selected:focus-visible span {
Mathias Bynensb0c1f4b2020-05-15 14:34:41215 forced-color-adjust: none;
216 color: HighlightText;
217 }
Kham Udom047cb692020-02-03 22:30:11218}