mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-09 13:18:29 +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>
135 lines
2.6 KiB
CSS
135 lines
2.6 KiB
CSS
/*
|
|
* Copyright 2018 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.
|
|
*/
|
|
/* <3 */
|
|
|
|
.lighthouse-start-view {
|
|
font-family: Roboto, sans-serif;
|
|
font-size: var(--font-size);
|
|
line-height: 18px;
|
|
/* for buttons */
|
|
--accent-color: #0535c1;
|
|
--accent-color-hover: #17b;
|
|
--font-size: 14px;
|
|
--report-font-family: roboto, helvetica, arial, sans-serif;
|
|
}
|
|
|
|
.lighthouse-start-view header {
|
|
flex: 2 1;
|
|
padding: 16px;
|
|
display: grid;
|
|
justify-items: center;
|
|
}
|
|
|
|
.lighthouse-logo {
|
|
width: 75px;
|
|
height: 75px;
|
|
flex-shrink: 0;
|
|
background-repeat: no-repeat;
|
|
background-size: contain;
|
|
background-image: url(Images/lighthouse_logo.svg);
|
|
}
|
|
|
|
.lighthouse-start-view-text {
|
|
margin: 0 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
.lighthouse-start-view form {
|
|
display: contents;
|
|
}
|
|
|
|
.lighthouse-form-section {
|
|
padding: 8px;
|
|
flex: 1 1;
|
|
}
|
|
|
|
.lighthouse-start-view.vbox .lighthouse-form-categories {
|
|
border-top: 1px solid var(--color-background-elevation-2);
|
|
border-bottom: 1px solid var(--color-background-elevation-2);
|
|
}
|
|
|
|
.lighthouse-form-section-label {
|
|
margin: 7px 0 7px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.lighthouse-form-section-label i span {
|
|
position: relative;
|
|
top: -2px;
|
|
}
|
|
|
|
.lighthouse-form-section-label span.largeicon-checkmark {
|
|
top: -4px;
|
|
}
|
|
|
|
.lighthouse-radio {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
input[type="radio"]:focus {
|
|
outline-width: 2px;
|
|
}
|
|
|
|
.lighthouse-radio-text {
|
|
margin-left: 3px;
|
|
}
|
|
|
|
.lighthouse-start-button-container {
|
|
align-items: center;
|
|
}
|
|
|
|
.lighthouse-start-button-container button {
|
|
margin: 8px auto;
|
|
font-family: var(--report-font-family);
|
|
font-weight: 500;
|
|
font-size: var(--font-size);
|
|
}
|
|
|
|
.lighthouse-start-button-container button:disabled {
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.lighthouse-start-view .toolbar-dropdown-arrow {
|
|
display: none;
|
|
}
|
|
|
|
.lighthouse-launcher-row,
|
|
.lighthouse-radio {
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.lighthouse-launcher-row:last-of-type,
|
|
.lighthouse-radio:last-of-type {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.lighthouse-launcher-row .dimmed {
|
|
padding-left: 22px;
|
|
}
|
|
|
|
.lighthouse-help-text {
|
|
text-align: center;
|
|
color: #f00; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
font-weight: bold;
|
|
padding-left: 10px;
|
|
}
|
|
|
|
.lighthouse-warning-text {
|
|
text-align: left;
|
|
color: #ff8c00; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
font-weight: bold;
|
|
padding-left: 10px;
|
|
padding-top: 10px;
|
|
}
|
|
|
|
.lighthouse-warning-text::before {
|
|
content: '⚠';
|
|
margin-right: 10px;
|
|
}
|