mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-08 04:44:04 +08:00
- 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>
56 lines
1.2 KiB
CSS
56 lines
1.2 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.
|
|
*/
|
|
|
|
.segmented-button {
|
|
align-items: center;
|
|
align-content: center;
|
|
display: flex;
|
|
}
|
|
|
|
.segmented-button-segment {
|
|
background-color: white;
|
|
border: var(--divider-border);
|
|
border-right-style: none;
|
|
color: #5a5a5a;
|
|
flex: 1 1 0;
|
|
font-weight: 700;
|
|
margin-left: -1px;
|
|
padding: 4px 16px;
|
|
}
|
|
|
|
.segmented-button-segment:hover {
|
|
background-color: #f4f4f4;
|
|
color: #333;
|
|
}
|
|
|
|
.segmented-button-segment:first-child {
|
|
border-bottom-left-radius: 4px;
|
|
border-top-left-radius: 4px;
|
|
}
|
|
|
|
.segmented-button-segment:last-child {
|
|
border-bottom-right-radius: 4px;
|
|
border-right-style: solid;
|
|
border-top-right-radius: 4px;
|
|
}
|
|
|
|
.segmented-button-segment.segmented-button-segment-selected {
|
|
background-color: hsl(218deg 81% 59%);
|
|
border-color: transparent;
|
|
color: #fafafa;
|
|
}
|
|
|
|
.segmented-button-segment.segmented-button-segment-selected:hover {
|
|
background-color: hsl(218deg 81% 62%);
|
|
color: #fff;
|
|
}
|
|
|
|
/* Remove a border between the selected button and its siblin */
|
|
|
|
.segmented-button-segment-selected + .segmented-button-segment {
|
|
border-left-color: transparent;
|
|
}
|