summaryrefslogtreecommitdiff
path: root/lib/flat-ttrss/dijit/ProgressBar.styl
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-04 22:24:31 +0300
committerAndrew Dolgov <[email protected]>2018-12-04 22:24:31 +0300
commit2ab097b2e5d0470f39021e2c27252d1ee8f20d94 (patch)
tree0f149e6fc7a8a112c71e7cb0f48816ec5e09f891 /lib/flat-ttrss/dijit/ProgressBar.styl
parent88b8830a6bec4bb2278f410fd1e645d8289a99e9 (diff)
initial work for flat modern theme
Diffstat (limited to 'lib/flat-ttrss/dijit/ProgressBar.styl')
-rwxr-xr-xlib/flat-ttrss/dijit/ProgressBar.styl70
1 files changed, 70 insertions, 0 deletions
diff --git a/lib/flat-ttrss/dijit/ProgressBar.styl b/lib/flat-ttrss/dijit/ProgressBar.styl
new file mode 100755
index 000000000..c7af6b499
--- /dev/null
+++ b/lib/flat-ttrss/dijit/ProgressBar.styl
@@ -0,0 +1,70 @@
+/* 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
+ */
+
+@import 'dijit_variables';
+
+.{$theme-name} {
+
+ .dijitProgressBar {
+ background-color: $progress-bar-empty-color;
+ border: 0 none;
+ border-radius: $progress-bar-border-radius;
+ }
+
+ .dijitProgressBarTile {
+ background: url($progress-bar-strips-image-url) repeat-x top;
+ animation: progress-bar-stripes 2s linear infinite;
+ }
+
+ .dijitProgressBarFull {
+ _progress-bar-color-properties($progress-bar-color);
+ transition-property: width;
+ transition-duration: .25s;
+ height: 100%;
+ }
+
+ // alternative colors
+ for class in $progress-bar-alternative-colors {
+ .dijitProgressBar.{class} .dijitProgressBarFull {
+ _progress-bar-color-properties($progress-bar-alternative-colors[class]);
+ }
+ }
+
+ .dijitProgressBarLabel {
+ margin-top: 0.2em;
+ margin-bottom: 0.2em;
+ color: $progress-bar-text-color;
+ font-size: $progress-bar-font-size;
+ text-shadow: $progress-bar-text-shadow;
+ }
+}
+
+// animation
+@keyframes progress-bar-stripes {
+ from { background-position: 75px 0; }
+ to { background-position: 0 0; }
+} \ No newline at end of file