Initial coomit for AAI-UI(sparky-fe)
[aai/sparky-fe.git] / resources / scss / bootstrap / _progress-bars.scss
1 //
2 // Progress bars
3 // --------------------------------------------------
4
5 // Bar animations
6 // -------------------------
7
8 // WebKit
9 @-webkit-keyframes progress-bar-stripes {
10   from {
11         background-position: 40px 0;
12   }
13   to {
14         background-position: 0 0;
15   }
16 }
17
18 // Spec and IE10+
19 @keyframes progress-bar-stripes {
20   from {
21         background-position: 40px 0;
22   }
23   to {
24         background-position: 0 0;
25   }
26 }
27
28 // Bar itself
29 // -------------------------
30
31 // Outer container
32 .progress {
33   overflow: hidden;
34   height: $line-height-computed;
35   margin-bottom: $line-height-computed;
36   background-color: $progress-bg;
37   border-radius: $progress-border-radius;
38   @include box-shadow(inset 0 1px 2px rgba(0, 0, 0, .1));
39 }
40
41 // Bar of progress
42 .progress-bar {
43   float: left;
44   width: 0%;
45   height: 100%;
46   font-size: $font-size-small;
47   line-height: $line-height-computed;
48   color: $progress-bar-color;
49   text-align: center;
50   background-color: $progress-bar-bg;
51   @include box-shadow(inset 0 -1px 0 rgba(0, 0, 0, .15));
52   @include transition(width .6s ease);
53 }
54
55 // Striped bars
56 //
57 // `.progress-striped .progress-bar` is deprecated as of v3.2.0 in favor of the
58 // `.progress-bar-striped` class, which you just add to an existing
59 // `.progress-bar`.
60 .progress-striped .progress-bar,
61 .progress-bar-striped {
62   @include gradient-striped;
63   background-size: 40px 40px;
64 }
65
66 // Call animation for the active one
67 //
68 // `.progress.active .progress-bar` is deprecated as of v3.2.0 in favor of the
69 // `.progress-bar.active` approach.
70 .progress.active .progress-bar,
71 .progress-bar.active {
72   @include animation(progress-bar-stripes 2s linear infinite);
73 }
74
75 // Variations
76 // -------------------------
77
78 .progress-bar-success {
79   @include progress-bar-variant($progress-bar-success-bg);
80 }
81
82 .progress-bar-info {
83   @include progress-bar-variant($progress-bar-info-bg);
84 }
85
86 .progress-bar-warning {
87   @include progress-bar-variant($progress-bar-warning-bg);
88 }
89
90 .progress-bar-danger {
91   @include progress-bar-variant($progress-bar-danger-bg);
92 }