mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 08:04:52 +01:00
improve main download bar
This commit is contained in:
@@ -34,6 +34,5 @@ body {
|
|||||||
#DownloadProgress {
|
#DownloadProgress {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 85%;
|
top: 85%;
|
||||||
left: 5%;
|
|
||||||
width: 60%;
|
width: 60%;
|
||||||
}
|
}
|
||||||
@@ -41,7 +41,7 @@ export default class ProgressBar extends React.Component<IProps, IState> {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className="ProgressBarWrapper">
|
<div className="MainProgressBarWrapper">
|
||||||
<div className="ProgressBar">
|
<div className="ProgressBar">
|
||||||
<div className="InnerProgress" style={{
|
<div className="InnerProgress" style={{
|
||||||
width: `${(() => {
|
width: `${(() => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
.ProgressBar, .InnerProgress {
|
.ProgressBar, .InnerProgress {
|
||||||
border-radius: 20px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ProgressBarWrapper {
|
.ProgressBarWrapper {
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
.ProgressBar {
|
.ProgressBar {
|
||||||
height: 20px;
|
height: 20px;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
background-color: #fff;
|
background-color: rgba(204, 204, 204, 0.5);
|
||||||
color: #c5c5c5;
|
color: #c5c5c5;
|
||||||
|
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
@@ -19,10 +19,25 @@
|
|||||||
|
|
||||||
.InnerProgress {
|
.InnerProgress {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: #00a8ff;
|
background-color: #ffc61e;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ProgressText {
|
.ProgressText {
|
||||||
color: #c5c5c5;
|
color: #c5c5c5;
|
||||||
padding: 0px 10px;
|
padding: 0px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.MainProgressBarWrapper {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.MainProgressBarWrapper .ProgressText {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user