mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-10 05:35:05 +08:00
This CL turns on the use_theme_colors stylelint rule which enforces that any colors use variables defined in our codebase. There are many, many violations, unsurprisingly (about 1500), so for now I have disabled every single violation. The goal of the dark mode migration will be in part to remove all violations of this rule. Additionally, new code going forwards should adhere to the rule and not add the comment to disable the warning. Bug: 1152736 Change-Id: I51372724ea51485daef3d4f75b7d3f60a7c8016f No-Presubmit: true Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2671323 Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Reviewed-by: Paul Lewis <aerotwist@chromium.org>
128 lines
2.5 KiB
CSS
128 lines
2.5 KiB
CSS
/*
|
|
* Copyright 2015 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.
|
|
*/
|
|
|
|
.devices-settings-tab .settings-tab.settings-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
height: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
.devices-settings-tab .devices-button-row {
|
|
flex: none;
|
|
display: flex;
|
|
}
|
|
|
|
.devices-settings-tab .devices-button-row button {
|
|
margin-right: 10px;
|
|
min-width: 120px;
|
|
flex: none;
|
|
}
|
|
|
|
.devices-settings-tab .devices-list {
|
|
width: 350px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.devices-list-item {
|
|
padding: 3px 5px 3px 5px;
|
|
height: 30px;
|
|
display: flex;
|
|
align-items: center;
|
|
flex: auto 1 1;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
color: #222; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
user-select: none;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.devices-list-checkbox {
|
|
height: 12px;
|
|
width: 12px;
|
|
margin: 2px 5px 2px 2px;
|
|
flex: none;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.devices-list-checkbox:focus {
|
|
outline: auto 5px -webkit-focus-ring-color;
|
|
}
|
|
|
|
.device-name {
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.devices-edit-fields {
|
|
flex: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
padding-left: 4px;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.devices-edit-fields b {
|
|
margin-top: 8px;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.devices-edit-client-hints-heading {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
margin-bottom: 5px;
|
|
}
|
|
/* Don't want the bottom margin in the specific case of the folding one;
|
|
* it messes with alignment with the arrow (which is a ::before) and it's
|
|
* spaced reasonably without it anyway
|
|
*/
|
|
li .devices-edit-client-hints-heading {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.devices-edit-client-hints-heading b {
|
|
margin-inline-end: 2px;
|
|
}
|
|
|
|
.devices-edit-client-hints-heading .help-icon {
|
|
margin-left: 2px;
|
|
margin-right: 2px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.devices-edit-client-hints-heading a:focus {
|
|
box-shadow: var(--focus-ring-active-shadow);
|
|
}
|
|
|
|
.devices-edit-fields input {
|
|
flex: auto;
|
|
margin: 8px 5px 0 5px;
|
|
}
|
|
|
|
li.devices-edit-client-hints-field {
|
|
/* Cancel out padding from treeview's .tree-outline ol */
|
|
left: -12px;
|
|
}
|
|
|
|
.devices-edit-client-hints-field input {
|
|
flex: auto;
|
|
margin: 8px 5px 0 5px;
|
|
}
|
|
|
|
.devices-edit-fields .device-edit-fixed {
|
|
flex: 0 0 140px;
|
|
}
|
|
|
|
.devices-edit-fields select {
|
|
margin: 8px 5px 0 5px;
|
|
}
|