mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-07 12:33:47 +08:00
Bug: chromium:1083142 Change-Id: I5ea4cc5d0f83e52856383ba37a47472e33eb19a2 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2204113 Commit-Queue: Mathias Bynens <mathias@chromium.org> Commit-Queue: Changhao Han <changhaohan@chromium.org> Auto-Submit: Mathias Bynens <mathias@chromium.org> Reviewed-by: Changhao Han <changhaohan@chromium.org> Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
119 lines
2.4 KiB
CSS
119 lines
2.4 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.
|
|
*/
|
|
|
|
.lighthouse-view {
|
|
--view-horizontal-margin: 20px;
|
|
|
|
margin: 7px var(--view-horizontal-margin);
|
|
flex: auto;
|
|
align-items: center;
|
|
width: 100%;
|
|
max-width: 500px;
|
|
}
|
|
|
|
.lighthouse-view h2 {
|
|
color: #666;
|
|
font-weight: bold;
|
|
font-size: 14px;
|
|
flex: none;
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
|
|
.lighthouse-view button {
|
|
z-index: 10;
|
|
margin-left: auto;
|
|
margin-right: 0;
|
|
}
|
|
|
|
.lighthouse-status {
|
|
width: 100%;
|
|
flex: auto;
|
|
align-items: center;
|
|
color: #666;
|
|
}
|
|
|
|
.lighthouse-status-text {
|
|
text-align: center;
|
|
min-height: 50px;
|
|
margin-bottom: 10px;
|
|
display: flex;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.lighthouse-status-text code {
|
|
user-select: text;
|
|
text-align: left;
|
|
white-space: pre-wrap;
|
|
overflow: auto;
|
|
}
|
|
|
|
.lighthouse-progress-wrapper {
|
|
width: calc(100% + 2 * var(--view-horizontal-margin));
|
|
height: 2px;
|
|
background-color: #e1f5fe;
|
|
position: relative;
|
|
margin: 10px;
|
|
}
|
|
|
|
.lighthouse-progress-bar {
|
|
width: 0%;
|
|
height: 100%;
|
|
background: #039be5;
|
|
position: absolute;
|
|
transform-origin: left;
|
|
animation-fill-mode: forwards;
|
|
animation-timing-function: ease-out;
|
|
|
|
--progress-bar-loading-duration: 45s;
|
|
--progress-bar-gathering-duration: 12s;
|
|
--progress-bar-gathering-percent: 70%;
|
|
--progress-bar-auditing-duration: 5s;
|
|
--progress-bar-auditing-percent: 95%;
|
|
}
|
|
|
|
.lighthouse-progress-bar.errored {
|
|
width: 100%;
|
|
background: #e50303;
|
|
}
|
|
|
|
.lighthouse-progress-bar.loading {
|
|
animation-duration: var(--progress-bar-loading-duration);
|
|
animation-name: progressBarLoading;
|
|
}
|
|
|
|
@keyframes progressBarLoading {
|
|
0% { width: 0%; }
|
|
100% { width: var(--progress-bar-gathering-percent); }
|
|
}
|
|
|
|
.lighthouse-progress-bar.gathering {
|
|
animation-duration: var(--progress-bar-gathering-duration);
|
|
animation-name: progressBarGathering;
|
|
}
|
|
|
|
@keyframes progressBarGathering {
|
|
0% { width: var(--progress-bar-gathering-percent); }
|
|
100% { width: var(--progress-bar-auditing-percent); }
|
|
}
|
|
|
|
.lighthouse-progress-bar.auditing {
|
|
animation-duration: var(--progress-bar-auditing-duration);
|
|
animation-name: progressBarAuditing;
|
|
}
|
|
|
|
@keyframes progressBarAuditing {
|
|
0% { width: var(--progress-bar-auditing-percent); }
|
|
100% { width: 99%; }
|
|
}
|
|
|
|
.lighthouse-report-error {
|
|
display: block;
|
|
margin-top: 5px;
|
|
}
|