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>
130 lines
3.0 KiB
CSS
130 lines
3.0 KiB
CSS
/*
|
|
* Copyright 2017 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.
|
|
*/
|
|
|
|
.hbox {
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.release-note-top-section {
|
|
height: 27px;
|
|
line-height: 27px;
|
|
padding: 0 15px;
|
|
flex: none;
|
|
background-color: var(--toolbar-bg-color);
|
|
border-bottom: var(--divider-border);
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
:host-context(.-theme-with-dark-background) .release-note-top-section {
|
|
color: #fff;
|
|
}
|
|
|
|
.release-note-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.release-note-container ul {
|
|
display: flex;
|
|
padding: 10px 16px;
|
|
flex-direction: column;
|
|
flex: none;
|
|
margin: 4px 12px 0 2px;
|
|
max-width: 600px;
|
|
}
|
|
|
|
.release-note-container li {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: none;
|
|
line-height: 24px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.release-note-container li:hover {
|
|
color: #039be5; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.release-note-container .release-note-link {
|
|
border: 1px solid rgb(0 0 0 / 20%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
padding-left: 8px;
|
|
padding-right: 8px;
|
|
margin-bottom: 4px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.release-note-container .release-note-link:hover {
|
|
box-shadow: 0 0 0 1px rgb(0 0 0 / 50%) inset; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.release-note-title,
|
|
.release-note-subtitle {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.release-note-subtitle {
|
|
font-size: 13px;
|
|
line-height: 13px;
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
.release-note-container li:not(:hover) .release-note-subtitle {
|
|
color: #999; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.release-note-action-container > button {
|
|
margin: 10px 0 20px 20px;
|
|
color: #757575; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.release-note-action-container {
|
|
flex: none;
|
|
}
|
|
|
|
.release-note-image {
|
|
flex-shrink: 2;
|
|
}
|
|
|
|
img {
|
|
margin: 20px;
|
|
width: 260px;
|
|
height: 200px;
|
|
flex: none;
|
|
box-shadow: 0 2px 4px rgb(0 0 0 / 30%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
img:hover {
|
|
box-shadow: 0 2px 4px rgb(0 0 0 / 50%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.release-note-container .release-note-link {
|
|
border-color: ButtonText;
|
|
}
|
|
|
|
.release-note-container .release-note-link:hover {
|
|
forced-color-adjust: none;
|
|
border-color: Highlight;
|
|
}
|
|
|
|
.release-note-container li .release-note-title,
|
|
.release-note-container li:not(:hover) .release-note-subtitle {
|
|
forced-color-adjust: none;
|
|
color: linktext;
|
|
}
|
|
}
|