update bootstrap to 3.0.0-rc2
[bootswatch] / bower_components / bootstrap / less / progress-bars.less
1 //
2 // Progress bars
3 // --------------------------------------------------
4
5
6 // Bar animations
7 // -------------------------
8
9 // Webkit
10 @-webkit-keyframes progress-bar-stripes {
11   from  { background-position: 40px 0; }
12   to    { background-position: 0 0; }
13 }
14
15 // Firefox
16 @-moz-keyframes progress-bar-stripes {
17   from  { background-position: 40px 0; }
18   to    { background-position: 0 0; }
19 }
20
21 // Opera
22 @-o-keyframes progress-bar-stripes {
23   from  { background-position: 0 0; }
24   to    { background-position: 40px 0; }
25 }
26
27 // Spec and IE10+
28 @keyframes progress-bar-stripes {
29   from  { background-position: 40px 0; }
30   to    { background-position: 0 0; }
31 }
32
33
34
35 // Bar itself
36 // -------------------------
37
38 // Outer container
39 .progress {
40   overflow: hidden;
41   height: @line-height-computed;
42   margin-bottom: @line-height-computed;
43   background-color: @progress-bg;
44   border-radius: @border-radius-base;
45   .box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
46 }
47
48 // Bar of progress
49 .progress-bar {
50   float: left;
51   width: 0%;
52   height: 100%;
53   font-size: @font-size-small;
54   color: @progress-bar-color;
55   text-align: center;
56   background-color: @progress-bar-bg;
57   .box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
58   .transition(width .6s ease);
59 }
60
61 // Striped bars
62 .progress-striped .progress-bar {
63   #gradient > .striped(@progress-bar-bg);
64   background-size: 40px 40px;
65 }
66
67 // Call animation for the active one
68 .progress.active .progress-bar {
69   -webkit-animation: progress-bar-stripes 2s linear infinite;
70      -moz-animation: progress-bar-stripes 2s linear infinite;
71       -ms-animation: progress-bar-stripes 2s linear infinite;
72        -o-animation: progress-bar-stripes 2s linear infinite;
73           animation: progress-bar-stripes 2s linear infinite;
74 }
75
76
77
78 // Variations
79 // -------------------------
80
81 .progress-bar-success {
82   .progress-bar-variant(@progress-bar-success-bg);
83 }
84
85 .progress-bar-info {
86   .progress-bar-variant(@progress-bar-info-bg);
87 }
88
89 .progress-bar-warning {
90   .progress-bar-variant(@progress-bar-warning-bg);
91 }
92
93 .progress-bar-danger {
94   .progress-bar-variant(@progress-bar-danger-bg);
95 }