mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-09 05:08:28 +08:00
The list of CSS properties we check for colors wasn't thorough and didn't include `border-left/right/top/bottom` or `background` on its own. This CL fixes that and disables the rule for any current violations. Bug: 1152736 Change-Id: Ic732d653fdfab0462a04dc891bcece1f44e5d471 No-Presubmit: true Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2676157 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Paul Lewis <aerotwist@chromium.org> Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
219 lines
4.5 KiB
CSS
219 lines
4.5 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.header {
|
|
background-color: var(--toolbar-bg-color, #f3f3f3); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
border-bottom: var(--divider-border, 1px solid #d0d0d0); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
line-height: 1.6;
|
|
overflow: hidden;
|
|
padding: 0 5px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.header::marker {
|
|
color: rgb(110 110 110); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
font-size: 11px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.header:focus {
|
|
background-color: var(--focus-bg-color);
|
|
}
|
|
|
|
.content-section {
|
|
padding: 16px;
|
|
border-bottom: var(--divider-border, 1px solid #d0d0d0); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.content-section-title {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
line-height: 1.1;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.checkbox-settings {
|
|
margin-top: 8px;
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 5px;
|
|
}
|
|
|
|
.checkbox-label {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
}
|
|
|
|
.checkbox-settings .checkbox-label {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.checkbox-settings .checkbox-label:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.checkbox-label input {
|
|
margin: 0 6px 0 0;
|
|
padding: 0;
|
|
flex: none;
|
|
}
|
|
|
|
.checkbox-label input:focus {
|
|
outline: auto 5px -webkit-focus-ring-color;
|
|
}
|
|
|
|
.checkbox-label > span {
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.select-settings {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.select-label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.select-label span {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.elements {
|
|
margin-top: 12px;
|
|
color: var(--dom-tag-name-color); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
.element {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
}
|
|
|
|
.show-element {
|
|
margin: 0 0 0 8px;
|
|
padding: 0;
|
|
background: none;
|
|
border: none;
|
|
-webkit-mask-image: url(Images/ic_show_node_16x16.svg);
|
|
background-color: #333; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
width: 16px;
|
|
height: 16px;
|
|
display: block;
|
|
cursor: pointer;
|
|
flex: none;
|
|
}
|
|
|
|
.show-element:focus,
|
|
.show-element:hover {
|
|
background-color: #6e6e6e; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.chrome-select {
|
|
min-width: 0;
|
|
max-width: 150px;
|
|
}
|
|
|
|
:host-context(.-theme-with-dark-background) .show-element {
|
|
background-color: rgb(204 204 204);
|
|
}
|
|
|
|
:host-context(.-theme-with-dark-background) .show-element:focus,
|
|
:host-context(.-theme-with-dark-background) .show-element:hover {
|
|
background-color: #6e6e6e;
|
|
}
|
|
|
|
.color-picker {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.color-picker-label {
|
|
border: 1px solid rgb(128 128 128 / 60%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
cursor: default;
|
|
display: inline-block;
|
|
flex: none;
|
|
height: 10px;
|
|
margin: 0 0 0 8px;
|
|
width: 10px;
|
|
position: relative;
|
|
}
|
|
/* We set dimensions for the invisible input to support quick highlight a11y feature
|
|
that uses the dimensions to draw an outline around the element. */
|
|
.color-picker-label input[type=color] {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
}
|
|
|
|
.color-picker-label:hover,
|
|
.color-picker-label:focus {
|
|
border: 1px solid var(--accent-color-hover);
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
.node-text-container {
|
|
line-height: 16px;
|
|
padding: 0 0.5ex;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.node-text-container:hover {
|
|
background-color: var(--item-hover-color);
|
|
}
|
|
|
|
.feedback {
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.feedback-container {
|
|
display: flex;
|
|
flex-direction: row;
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
gap: 5px;
|
|
}
|
|
|
|
.feedback-container div:nth-child(1) {
|
|
flex-grow: 1;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
}
|
|
|
|
.feedback-container div:nth-child(2) {
|
|
flex-grow: 0;
|
|
flex-shrink: 1;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
}
|
|
|
|
devtools-survey-link {
|
|
--icon-color: var(--color-primary);
|
|
--issue-link: var(--color-primary);
|
|
--issue-link-text-decoration: none;
|
|
--issue-link-font-size: 12px;
|
|
--issue-link-padding: 0;
|
|
--issue-link-icon-size: 14px;
|
|
}
|