mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-10 05:35:05 +08:00
This change adds a border to the right side of list elements for breakpoints that have been hit, making it easier to distinguish hit breakpoints. Initially recommended by aboxhall in https://chromium-review.googlesource.com/c/chromium/src/+/1629013/39#message-e4f3d258e8c2e46652d76de2c675361f23afe9ca Before: https://gyazo.com/f5df60f6de04c79cf3daea6b1947d9b3 After: https://gyazo.com/1e743392451a4eb0f2aba9d22d2b7253 https://gyazo.com/69ace940f429762e46cb70fca7c8774c Bug: 963183 Change-Id: I336d47902790e16cdff0c3f6c1317ba366f95321 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717269 Commit-Queue: Jack Lynch <jalyn@microsoft.com> Reviewed-by: Joel Einbinder <einbinder@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#687830} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 4c720ea1311597ef036326162ffcc6a39a5dbaf9
45 lines
957 B
CSS
45 lines
957 B
CSS
/*
|
|
* Copyright 2017 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.
|
|
*/
|
|
|
|
.breakpoint-entry {
|
|
padding: 3px 8px 3px 8px;
|
|
min-height: 18px;
|
|
line-height: 15px;
|
|
border-top: 1px solid #efefef;
|
|
}
|
|
|
|
.breakpoint-entry [is=dt-checkbox] {
|
|
max-width: 100%;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
:not(.breakpoints-list-deactivated) > .breakpoint-entry:hover {
|
|
background-color: #eee;
|
|
}
|
|
|
|
.breakpoint-entry > .source-text {
|
|
cursor: pointer;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
margin-left: 22px;
|
|
}
|
|
|
|
.breakpoints-list-deactivated {
|
|
background-color: #eee;
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.breakpoint-hit {
|
|
background-color: rgb(255, 255, 194);
|
|
border-right: 3px solid rgb(107, 97, 48);
|
|
}
|
|
|
|
:host-context(.-theme-with-dark-background) .breakpoint-hit {
|
|
background-color: hsl(46, 98%, 22%);
|
|
color: #ccc;
|
|
}
|