Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(468)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/elements/stylesSectionTree.css

Issue 2327983002: [DevTools] Migrate StylesSidebarPane to TreeOutlineInShadow. (Closed)
Patch Set: filtering, tests Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/elements/module.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 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 .tree-outline {
8 padding: 0;
9 }
10
11 .tree-outline li.not-parsed-ok {
12 margin-left: 0;
13 }
14
15 .tree-outline li.filter-match {
16 background-color: rgba(255, 255, 0, 0.5);
17 }
18
19 :host-context(.-theme-with-dark-background) .tree-outline li.filter-match {
20 background-color: hsla(133, 100%, 30%, 0.5);
21 }
22
23 .tree-outline li.overloaded.filter-match {
24 background-color: rgba(255, 255, 0, 0.25);
25 }
26
27 :host-context(.-theme-with-dark-background) .tree-outline li.overloaded.filter-m atch {
28 background-color: hsla(133, 100%, 30%, 0.25);
29 }
30
31 .tree-outline li.not-parsed-ok .exclamation-mark {
32 display: inline-block;
33 position: relative;
34 width: 11px;
35 height: 10px;
36 margin: 0 7px 0 0;
37 top: 1px;
38 left: -36px; /* outdent to compensate for the top-level property indent */
39 -webkit-user-select: none;
40 cursor: default;
41 z-index: 1;
42 }
43
44 .tree-outline li {
45 margin-left: 12px;
46 padding-left: 22px;
47 white-space: normal;
48 text-overflow: ellipsis;
49 cursor: auto;
50 display: block;
51 }
52
53 .tree-outline li::before {
54 display: none;
55 }
56
57 .tree-outline li .webkit-css-property {
58 margin-left: -22px; /* outdent the first line of longhand properties (in an expanded shorthand) to compensate for the "padding-left" shift in .tree-outline li */
59 }
60
61 .tree-outline > li {
62 padding-left: 38px;
63 clear: both;
64 min-height: 14px;
65 }
66
67 .tree-outline > li .webkit-css-property {
68 margin-left: -38px; /* outdent the first line of the top-level properties to compensate for the "padding-left" shift in .tree-outline > li */
69 }
70
71 .tree-outline > li.child-editing {
72 padding-left: 8px;
73 }
74
75 .tree-outline > li.child-editing .webkit-css-property {
76 margin-left: 0;
77 }
78
79 .tree-outline li.child-editing {
80 word-wrap: break-word !important;
81 white-space: normal !important;
82 padding-left: 0;
83 }
84
85 ol:not(.tree-outline) {
86 display: none;
87 margin: 0;
88 -webkit-padding-start: 12px;
89 list-style: none;
90 }
91
92 ol.expanded {
93 display: block;
94 }
95
96 .tree-outline li .info {
97 padding-top: 4px;
98 padding-bottom: 3px;
99 }
100
101 .enabled-button {
102 visibility: hidden;
103 float: left;
104 font-size: 10px;
105 margin: 0;
106 vertical-align: top;
107 position: relative;
108 z-index: 1;
109 width: 18px;
110 left: -40px; /* original -2px + (-38px) to compensate for the first line out dent */
111 top: 1px;
112 height: 13px;
113 }
114
115 .tree-outline li.editing .enabled-button {
116 display: none !important;
117 }
118
119 .overloaded:not(.has-ignorable-error),
120 .inactive,
121 .disabled,
122 .not-parsed-ok:not(.has-ignorable-error) {
123 text-decoration: line-through;
124 }
125
126 .has-ignorable-error .webkit-css-property {
127 color: inherit;
128 }
129
130 .implicit,
131 .inherited {
132 opacity: 0.5;
133 }
134
135 .has-ignorable-error {
136 color: gray;
137 }
138
139 .tree-outline li.editing {
140 margin-left: 10px;
141 text-overflow: clip;
142 }
143
144 .tree-outline li.editing-sub-part {
145 padding: 3px 6px 8px 18px;
146 margin: -1px -6px -8px -6px;
147 text-overflow: clip;
148 }
149
150 :host-context(.no-affect) .tree-outline li {
151 opacity: 0.5;
152 }
153
154 :host-context(.no-affect) .tree-outline li.editing {
155 opacity: 1.0;
156 }
157
158 :host-context(.styles-panel-hovered:not(.read-only)) .webkit-css-property:hover,
159 :host-context(.styles-panel-hovered:not(.read-only)) .value:hover {
160 text-decoration: underline;
161 cursor: default;
162 }
163
164 .styles-clipboard-only {
165 display: inline-block;
166 width: 0;
167 opacity: 0;
168 pointer-events: none;
169 white-space: pre;
170 }
171
172 .tree-outline li.child-editing .styles-clipboard-only {
173 display: none;
174 }
175
176 /* Matched styles */
177
178 :host-context(.matched-styles) .tree-outline li {
179 margin-left: 0 !important;
180 }
181
182 :host-context(.matched-styles) .tree-outline li.parent .expand-element {
183 -webkit-user-select: none;
184 -webkit-mask-image: url(Images/toolbarButtonGlyphs.png);
185 -webkit-mask-size: 352px 168px;
186 margin-right: 2px;
187 margin-left: -6px;
188 background-color: #777;
189 width: 8px;
190 height: 10px;
191 display: inline-block;
192 }
193
194 @media (-webkit-min-device-pixel-ratio: 1.1) {
195 :host-context(.matched-styles) .tree-outline li.parent .expand-element {
196 -webkit-mask-image: url(Images/toolbarButtonGlyphs_2x.png);
197 }
198 } /* media */
199
200 :host-context(.matched-styles) .tree-outline li.parent .expand-element {
201 -webkit-mask-position: -4px -96px;
202 }
203
204 :host-context(.matched-styles) .tree-outline li.parent.expanded .expand-element {
205 -webkit-mask-position: -20px -96px;
206 }
207
208 :host-context(.matched-styles:not(.read-only):hover) .enabled-button {
209 visibility: visible;
210 }
211
212 :host-context(.matched-styles:not(.read-only)) .tree-outline li.disabled .enable d-button {
213 visibility: visible;
214 }
215
216 :host-context(.matched-styles) ol.expanded {
217 margin-left: 16px;
218 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/elements/module.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698