Files
react-native-devtools-frontend/front_end/network/networkConfigView.css
T
Mathias Bynens ca9fa2d73f Consistently format CSS color and opacity values
- 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>
2020-05-19 16:50:26 +00:00

99 lines
1.6 KiB
CSS

/*
* Copyright (c) 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.
*/
.network-config {
padding: 12px;
display: block;
}
.network-config-group {
display: flex;
margin-bottom: 10px;
flex-wrap: wrap;
flex: 0 0 auto;
min-height: 30px;
}
.network-config-title {
margin-right: 16px;
width: 130px;
}
.network-config-fields {
flex: 2 0 200px;
}
.panel-section-separator {
height: 1px;
margin-bottom: 10px;
background: #f0f0f0;
}
/* Disable cache */
.network-config-disable-cache {
line-height: 28px;
border-top: none;
padding-top: 0;
}
.network-config-input-validation-error {
color: var(--input-validation-error);
margin: 5px 0;
}
/* Network throttling */
.network-config-throttling .chrome-select {
width: 100%;
max-width: 250px;
}
.network-config-throttling > .network-config-title {
line-height: 24px;
}
/* User agent */
.network-config-ua > .network-config-title {
line-height: 20px;
}
.network-config-ua span[is="dt-radio"].checked > * {
display: none;
}
.network-config-ua input {
display: block;
width: calc(100% - 20px);
}
.network-config-ua input[readonly] {
background-color: rgb(235 235 228);
}
.network-config-ua input[type=text],
.network-config-ua .chrome-select {
margin-top: 8px;
}
.network-config-ua .chrome-select {
width: calc(100% - 20px);
max-width: 250px;
}
.network-config-ua span[is="dt-radio"] {
display: block;
}
.network-config-ua-custom {
opacity: 50%;
}
.network-config-ua-custom.checked {
opacity: 100%;
}