mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-30 17:27:22 +08:00
- Prefer the modern comma-free CSS color function syntax over the legacy syntax. [1] - Explicitly use the `deg` suffix for angle values in colors, to clarify the range. - Explicitly use the `%` suffix for percentages instead of formatting the value as a number, again to clarify the range. [1]: https://twitter.com/mathias/status/1253242715304857601 [2]: https://goo.gle/devtools-css-color Bug: chromium:1083142 Fixed: chromium:1073885 Change-Id: I8e1582a2dee3553a61df88564051ea84c2011d76 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2209091 Reviewed-by: Alex Rudenko <alexrudenko@chromium.org> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org> Auto-Submit: Mathias Bynens <mathias@chromium.org>
50 lines
1.3 KiB
CSS
50 lines
1.3 KiB
CSS
li .icon {
|
|
margin: -3px -5px -3px -5px;
|
|
background: linear-gradient(45deg, hsl(0deg 0% 50%), hsl(0deg 0% 70%));
|
|
}
|
|
|
|
.tree-outline li {
|
|
min-height: 20px;
|
|
}
|
|
|
|
.tree-outline li:hover:not(.selected) .selection {
|
|
display: block;
|
|
background-color: var(--item-hover-color);
|
|
}
|
|
|
|
.navigator-fs-tree-item .icon {
|
|
background: linear-gradient(45deg, hsl(28deg 75% 50%), hsl(28deg 75% 70%));
|
|
}
|
|
|
|
.navigator-sm-script-tree-item .icon,
|
|
.navigator-script-tree-item .icon,
|
|
.navigator-snippet-tree-item .icon {
|
|
background: linear-gradient(45deg, hsl(48deg 70% 50%), hsl(48deg 70% 70%));
|
|
}
|
|
|
|
.navigator-sm-stylesheet-tree-item .icon,
|
|
.navigator-stylesheet-tree-item .icon {
|
|
background: linear-gradient(45deg, hsl(256deg 50% 50%), hsl(256deg 50% 70%));
|
|
}
|
|
|
|
.navigator-image-tree-item .icon,
|
|
.navigator-font-tree-item .icon {
|
|
background: linear-gradient(45deg, hsl(109deg 33% 50%), hsl(109deg 33% 70%));
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
li .icon,
|
|
.navigator-fs-tree-item .icon,
|
|
.navigator-sm-script-tree-item .icon,
|
|
.navigator-script-tree-item .icon,
|
|
.navigator-snippet-tree-item .icon,
|
|
.navigator-sm-stylesheet-tree-item .icon,
|
|
.navigator-stylesheet-tree-item .icon,
|
|
.navigator-image-tree-item .icon,
|
|
.navigator-font-tree-item .icon {
|
|
background-color: ButtonText;
|
|
background-image: none;
|
|
forced-color-adjust: none;
|
|
}
|
|
}
|