summaryrefslogtreecommitdiff
path: root/lib/flat-ttrss/dijit/ProgressBar.css
blob: da09eec357e948e3ffc9dcecf6d71cb89ac1b8b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/* ProgressBar
 * 
 * Styling of the ProgressBar consists of the following:
 * 
 * 1. the base progress bar
 *		.dijitProgressBar -	sets margins for the progress bar
 *
 * 2. the empty bar
 *		.dijitProgressBarEmpty  - sets background img and color for bar or parts of bar that are not finished yet
 *		Also sets border color for whole bar
 *
 * 3. tile mode
 * 		.dijitProgressBarTile
 *		inner container for finished portion when in 'tile' (image) mode 
 * 	
 * 4. full bar mode
 * 		.dijitProgressBarFull
 *		adds border to right side of the filled portion of bar
 *
 * 5. text for label of  bar
 *		.dijitProgressBarLabel - sets text color, which must contrast with both the "Empty" and "Full" parts. 
 * 	
 * 6. indeterminate mode
 *		.dijitProgressBarIndeterminate .dijitProgressBarTile 
 * 		sets animated gif for the progress bar in 'indeterminate' mode
 */
.flat .dijitProgressBar {
  background-color: #e0e0e0;
  border: 0 none;
  border-radius: 4px;
}
.flat .dijitProgressBarTile {
  background: url("images/progressBarStrips.png") repeat-x top;
  -webkit-animation: progress-bar-stripes 2s linear infinite;
  -moz-animation: progress-bar-stripes 2s linear infinite;
  -o-animation: progress-bar-stripes 2s linear infinite;
  -ms-animation: progress-bar-stripes 2s linear infinite;
  animation: progress-bar-stripes 2s linear infinite;
}
.flat .dijitProgressBarFull {
  background-color: #257aa7;
  -webkit-transition-property: width;
  -moz-transition-property: width;
  -o-transition-property: width;
  -ms-transition-property: width;
  transition-property: width;
  -webkit-transition-duration: 0.25s;
  -moz-transition-duration: 0.25s;
  -o-transition-duration: 0.25s;
  -ms-transition-duration: 0.25s;
  transition-duration: 0.25s;
  height: 100%;
}
.flat .dijitProgressBar.alt-primary .dijitProgressBarFull {
  background-color: #1e88e5;
}
.flat .dijitProgressBar.alt-success .dijitProgressBarFull {
  background-color: #43a047;
}
.flat .dijitProgressBar.alt-info .dijitProgressBarFull {
  background-color: #03a9f4;
}
.flat .dijitProgressBar.alt-warning .dijitProgressBarFull {
  background-color: #fb8c00;
}
.flat .dijitProgressBar.alt-danger .dijitProgressBarFull {
  background-color: #e53935;
}
.flat .dijitProgressBar.alt-inverse .dijitProgressBarFull {
  background-color: #616161;
}
.flat .dijitProgressBarLabel {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
  color: #fff;
  font-size: 1em;
  text-shadow: 0.1em 0.1em 1px #424242;
}
@-moz-keyframes progress-bar-stripes {
  from {
    background-position: 75px 0;
  }
  to {
    background-position: 0 0;
  }
}
@-webkit-keyframes progress-bar-stripes {
  from {
    background-position: 75px 0;
  }
  to {
    background-position: 0 0;
  }
}
@-o-keyframes progress-bar-stripes {
  from {
    background-position: 75px 0;
  }
  to {
    background-position: 0 0;
  }
}
@keyframes progress-bar-stripes {
  from {
    background-position: 75px 0;
  }
  to {
    background-position: 0 0;
  }
}