1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/frontend/src/Components/ProgressBar.css

102 lines
1.7 KiB
CSS
Raw Normal View History

2018-01-13 04:01:27 +02:00
.container {
position: relative;
overflow: hidden;
width: 100%;
border-radius: 4px;
background-color: var(--progressBarBackgroundColor);
2018-01-13 04:01:27 +02:00
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.progressBar {
position: relative;
z-index: 1;
float: left;
width: 0;
height: 100%;
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
color: var(--white);
2018-01-13 04:01:27 +02:00
transition: width 0.6s ease;
}
.frontTextContainer {
z-index: 1;
color: var(--white);
2018-01-13 04:01:27 +02:00
}
.backTextContainer,
.frontTextContainer {
position: absolute;
overflow: hidden;
width: 0;
height: 100%;
}
.backText,
.frontText {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
font-size: 12px;
cursor: default;
}
.primary {
background-color: var(--primaryColor);
2018-01-13 04:01:27 +02:00
}
.danger {
background-color: var(--dangerColor);
&:global(.colorImpaired) {
background: repeating-linear-gradient(90deg, color(#f05050 shade(5%)), color(#f05050 shade(5%)) 5px, color(#f05050 shade(15%)) 5px, color(#f05050 shade(15%)) 10px);
}
2018-01-13 04:01:27 +02:00
}
.success {
background-color: var(--successColor);
2018-01-13 04:01:27 +02:00
}
.purple {
background-color: var(--purple);
2018-01-13 04:01:27 +02:00
}
.warning {
background-color: var(--warningColor);
&:global(.colorImpaired) {
background: repeating-linear-gradient(45deg, #ffa500, #ffa500 5px, color(#ffa500 tint(15%)) 5px, color(#ffa500 tint(15%)) 10px);
}
2018-01-13 04:01:27 +02:00
}
.info {
background-color: var(--infoColor);
2018-01-13 04:01:27 +02:00
}
.small {
height: $progressBarSmallHeight;
.backText,
.frontText {
height: $progressBarSmallHeight;
}
}
.medium {
height: $progressBarMediumHeight;
.backText,
.frontText {
height: $progressBarMediumHeight;
}
}
.large {
height: $progressBarLargeHeight;
.backText,
.frontText {
height: $progressBarLargeHeight;
}
}