mirror of https://github.com/zulip/zulip.git
bootstrap: Move progress bar styling out of bootstrap CSS.
In this commit, we move the progress bar styling out of the legacy bootstrap.css and move it to a dedicated CSS file. This is a step forward towards the ongoing effort to remove the use of Bootstrap from the Zulip codebase. The new CSS file, progress_bar.css, is added to common.ts, since it is used in both the webapp and portico pages. Fixes #23628.
This commit is contained in:
parent
b533cd979e
commit
fc03c19ba2
|
@ -14,6 +14,7 @@ import "source-sans/source-sans-3.css";
|
||||||
import "source-code-pro/source-code-pro.css";
|
import "source-code-pro/source-code-pro.css";
|
||||||
import "../../styles/alerts.css";
|
import "../../styles/alerts.css";
|
||||||
import "../../styles/modal.css";
|
import "../../styles/modal.css";
|
||||||
|
import "../../styles/progress_bar.css";
|
||||||
import "../../styles/pygments.css";
|
import "../../styles/pygments.css";
|
||||||
import "@uppy/core/dist/style.css";
|
import "@uppy/core/dist/style.css";
|
||||||
import "@uppy/progress-bar/dist/style.css";
|
import "@uppy/progress-bar/dist/style.css";
|
||||||
|
|
|
@ -0,0 +1,141 @@
|
||||||
|
@-webkit-keyframes progress-bar-stripes {
|
||||||
|
from {
|
||||||
|
background-position: 40px 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
background-position: 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@-moz-keyframes progress-bar-stripes {
|
||||||
|
from {
|
||||||
|
background-position: 40px 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
background-position: 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@-ms-keyframes progress-bar-stripes {
|
||||||
|
from {
|
||||||
|
background-position: 40px 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
background-position: 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@-o-keyframes progress-bar-stripes {
|
||||||
|
from {
|
||||||
|
background-position: 0 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
background-position: 40px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@keyframes progress-bar-stripes {
|
||||||
|
from {
|
||||||
|
background-position: 40px 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
background-position: 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.progress {
|
||||||
|
overflow: hidden;
|
||||||
|
height: 20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
background-color: #f7f7f7;
|
||||||
|
background-image: -moz-linear-gradient(top, #f5f5f5, #f9f9f9);
|
||||||
|
background-image: -webkit-gradient(
|
||||||
|
linear,
|
||||||
|
0 0,
|
||||||
|
0 100%,
|
||||||
|
from(#f5f5f5),
|
||||||
|
to(#f9f9f9)
|
||||||
|
);
|
||||||
|
background-image: -webkit-linear-gradient(top, #f5f5f5, #f9f9f9);
|
||||||
|
background-image: -o-linear-gradient(top, #f5f5f5, #f9f9f9);
|
||||||
|
background-image: linear-gradient(to bottom, #f5f5f5, #f9f9f9);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||||
|
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||||
|
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||||
|
-webkit-border-radius: 4px;
|
||||||
|
-moz-border-radius: 4px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.progress .bar {
|
||||||
|
width: 0%;
|
||||||
|
height: 100%;
|
||||||
|
color: #ffffff;
|
||||||
|
float: left;
|
||||||
|
font-size: 12px;
|
||||||
|
text-align: center;
|
||||||
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
||||||
|
background-color: #0e90d2;
|
||||||
|
background-image: -moz-linear-gradient(top, #149bdf, #0480be);
|
||||||
|
background-image: -webkit-gradient(
|
||||||
|
linear,
|
||||||
|
0 0,
|
||||||
|
0 100%,
|
||||||
|
from(#149bdf),
|
||||||
|
to(#0480be)
|
||||||
|
);
|
||||||
|
background-image: -webkit-linear-gradient(top, #149bdf, #0480be);
|
||||||
|
background-image: -o-linear-gradient(top, #149bdf, #0480be);
|
||||||
|
background-image: linear-gradient(to bottom, #149bdf, #0480be);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
||||||
|
-moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
||||||
|
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
-webkit-transition: width 0.6s ease;
|
||||||
|
-moz-transition: width 0.6s ease;
|
||||||
|
-o-transition: width 0.6s ease;
|
||||||
|
transition: width 0.6s ease;
|
||||||
|
}
|
||||||
|
.progress .bar + .bar {
|
||||||
|
-webkit-box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15),
|
||||||
|
inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
||||||
|
-moz-box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15),
|
||||||
|
inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
||||||
|
box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15),
|
||||||
|
inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
||||||
|
}
|
||||||
|
.progress.active .bar {
|
||||||
|
-webkit-animation: progress-bar-stripes 2s linear infinite;
|
||||||
|
-moz-animation: progress-bar-stripes 2s linear infinite;
|
||||||
|
-ms-animation: progress-bar-stripes 2s linear infinite;
|
||||||
|
-o-animation: progress-bar-stripes 2s linear infinite;
|
||||||
|
animation: progress-bar-stripes 2s linear infinite;
|
||||||
|
}
|
||||||
|
.progress .bar-danger {
|
||||||
|
background-color: #dd514c;
|
||||||
|
background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35);
|
||||||
|
background-image: -webkit-gradient(
|
||||||
|
linear,
|
||||||
|
0 0,
|
||||||
|
0 100%,
|
||||||
|
from(#ee5f5b),
|
||||||
|
to(#c43c35)
|
||||||
|
);
|
||||||
|
background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35);
|
||||||
|
background-image: -o-linear-gradient(top, #ee5f5b, #c43c35);
|
||||||
|
background-image: linear-gradient(to bottom, #ee5f5b, #c43c35);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.progress .bar-success {
|
||||||
|
background-color: #5eb95e;
|
||||||
|
background-image: -moz-linear-gradient(top, #62c462, #57a957);
|
||||||
|
background-image: -webkit-gradient(
|
||||||
|
linear,
|
||||||
|
0 0,
|
||||||
|
0 100%,
|
||||||
|
from(#62c462),
|
||||||
|
to(#57a957)
|
||||||
|
);
|
||||||
|
background-image: -webkit-linear-gradient(top, #62c462, #57a957);
|
||||||
|
background-image: -o-linear-gradient(top, #62c462, #57a957);
|
||||||
|
background-image: linear-gradient(to bottom, #62c462, #57a957);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
|
@ -888,120 +888,6 @@ input.search-query {
|
||||||
.alert-info h4 {
|
.alert-info h4 {
|
||||||
color: #3a87ad;
|
color: #3a87ad;
|
||||||
}
|
}
|
||||||
@-webkit-keyframes progress-bar-stripes {
|
|
||||||
from {
|
|
||||||
background-position: 40px 0;
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
background-position: 0 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@-moz-keyframes progress-bar-stripes {
|
|
||||||
from {
|
|
||||||
background-position: 40px 0;
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
background-position: 0 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@-ms-keyframes progress-bar-stripes {
|
|
||||||
from {
|
|
||||||
background-position: 40px 0;
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
background-position: 0 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@-o-keyframes progress-bar-stripes {
|
|
||||||
from {
|
|
||||||
background-position: 0 0;
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
background-position: 40px 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@keyframes progress-bar-stripes {
|
|
||||||
from {
|
|
||||||
background-position: 40px 0;
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
background-position: 0 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.progress {
|
|
||||||
overflow: hidden;
|
|
||||||
height: 20px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
background-color: #f7f7f7;
|
|
||||||
background-image: -moz-linear-gradient(top, #f5f5f5, #f9f9f9);
|
|
||||||
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#f9f9f9));
|
|
||||||
background-image: -webkit-linear-gradient(top, #f5f5f5, #f9f9f9);
|
|
||||||
background-image: -o-linear-gradient(top, #f5f5f5, #f9f9f9);
|
|
||||||
background-image: linear-gradient(to bottom, #f5f5f5, #f9f9f9);
|
|
||||||
background-repeat: repeat-x;
|
|
||||||
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
||||||
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
||||||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
||||||
-webkit-border-radius: 4px;
|
|
||||||
-moz-border-radius: 4px;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
.progress .bar {
|
|
||||||
width: 0%;
|
|
||||||
height: 100%;
|
|
||||||
color: #ffffff;
|
|
||||||
float: left;
|
|
||||||
font-size: 12px;
|
|
||||||
text-align: center;
|
|
||||||
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
|
||||||
background-color: #0e90d2;
|
|
||||||
background-image: -moz-linear-gradient(top, #149bdf, #0480be);
|
|
||||||
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#149bdf), to(#0480be));
|
|
||||||
background-image: -webkit-linear-gradient(top, #149bdf, #0480be);
|
|
||||||
background-image: -o-linear-gradient(top, #149bdf, #0480be);
|
|
||||||
background-image: linear-gradient(to bottom, #149bdf, #0480be);
|
|
||||||
background-repeat: repeat-x;
|
|
||||||
-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
|
||||||
-moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
|
||||||
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
|
||||||
-webkit-box-sizing: border-box;
|
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
box-sizing: border-box;
|
|
||||||
-webkit-transition: width 0.6s ease;
|
|
||||||
-moz-transition: width 0.6s ease;
|
|
||||||
-o-transition: width 0.6s ease;
|
|
||||||
transition: width 0.6s ease;
|
|
||||||
}
|
|
||||||
.progress .bar + .bar {
|
|
||||||
-webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15);
|
|
||||||
-moz-box-shadow: inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15);
|
|
||||||
box-shadow: inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15);
|
|
||||||
}
|
|
||||||
.progress.active .bar {
|
|
||||||
-webkit-animation: progress-bar-stripes 2s linear infinite;
|
|
||||||
-moz-animation: progress-bar-stripes 2s linear infinite;
|
|
||||||
-ms-animation: progress-bar-stripes 2s linear infinite;
|
|
||||||
-o-animation: progress-bar-stripes 2s linear infinite;
|
|
||||||
animation: progress-bar-stripes 2s linear infinite;
|
|
||||||
}
|
|
||||||
.progress .bar-danger {
|
|
||||||
background-color: #dd514c;
|
|
||||||
background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35);
|
|
||||||
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#c43c35));
|
|
||||||
background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35);
|
|
||||||
background-image: -o-linear-gradient(top, #ee5f5b, #c43c35);
|
|
||||||
background-image: linear-gradient(to bottom, #ee5f5b, #c43c35);
|
|
||||||
background-repeat: repeat-x;
|
|
||||||
}
|
|
||||||
.progress .bar-success {
|
|
||||||
background-color: #5eb95e;
|
|
||||||
background-image: -moz-linear-gradient(top, #62c462, #57a957);
|
|
||||||
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#57a957));
|
|
||||||
background-image: -webkit-linear-gradient(top, #62c462, #57a957);
|
|
||||||
background-image: -o-linear-gradient(top, #62c462, #57a957);
|
|
||||||
background-image: linear-gradient(to bottom, #62c462, #57a957);
|
|
||||||
background-repeat: repeat-x;
|
|
||||||
}
|
|
||||||
.tooltip {
|
.tooltip {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 1030;
|
z-index: 1030;
|
||||||
|
|
Loading…
Reference in New Issue