Skip to content

Commit d1b2a89

Browse files
Eric LeeseDevtools-frontend LUCI CQ
authored andcommitted
Fix formatting of css functions
This change makes two improvements to the formatting of CSS functions: - Nested conditions are colored as they are in nested css selectors - Removed extra padding on nested tree levels so that heavily nested functions are consistently indented Bug: 392034817 Change-Id: I5327dc0b80e97fa265c688b9d6b1e4277dd68b3d Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6448599 Commit-Queue: Eric Leese <[email protected]> Reviewed-by: Changhao Han <[email protected]>
1 parent 441088b commit d1b2a89

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

front_end/panels/elements/stylePropertiesTreeOutline.css

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,17 @@
105105
ol:not(.tree-outline) {
106106
display: none;
107107
margin: 0;
108-
padding-inline-start: 12px;
109108
list-style: none;
110109
}
111110

111+
.tree-outline > ol {
112+
padding-inline-start: 16px;
113+
114+
ol {
115+
padding-left: 0;
116+
}
117+
}
118+
112119
ol.expanded {
113120
display: block;
114121
}
@@ -277,6 +284,5 @@ devtools-icon.open-in-animations-panel {
277284
display: inline-block;
278285
padding-left: 18px; /* should match enabled-button width */
279286
margin-left: -38px; /* should match .webkit-css-property margin-left */
280-
281-
--webkit-css-property-color: var(--app-color-element-sidebar-subtitle);
287+
color: var(--app-color-element-sidebar-subtitle);
282288
}

0 commit comments

Comments
 (0)