]> nos-oignons.net Git - website.git/blobdiff - local.css
Nettoyage
[website.git] / local.css
index 6cd635a61cec76d979713085ef3b1883327ccdf8..bf876b1c3044b1d35401869a8085074e20fc78b6 100644 (file)
--- a/local.css
+++ b/local.css
@@ -382,7 +382,7 @@ thead td {
 
 /* Progress bar */
 .progress-bar-wrapper {
-  margin: 1em auto;
+  margin: 2em auto;
   height: 85px;
   width: 600px;
   background: lightGrey url(assets/progress_bar.png) top left repeat-x;
@@ -391,13 +391,38 @@ thead td {
   position: relative;
 }
   .progress-bar-wrapper .progress-bar {
+    position: absolute;
     height: 85px;
     background: grey url(assets/progress_bar.png) bottom left repeat-x;
+    /* animate progress bar */
+    -webkit-animation: progress-bar 1.5s;
+    -moz-animation: progress-bar 1.5s;
+    animation: progress-bar 1.5s;
   }
-  .progress-bar-wrapper:after {
+
+  /* progress bar animation*/
+  @-webkit-keyframes progress-bar { 0% { width: 0; } }
+  @-moz-keyframes progress-bar { 0% { width: 0; } }
+  keyframes progress-bar { 0% { width: 0; } }
+
+  /* Current amount */
+  .progress-bar-wrapper .progress-bar:after {
+    content: attr(data-current);
+    display: block;
+    position: absolute;
+    top: -22px;
+    right: 0;
+    background: #fff;
+    color: #ccc;
+    font-size: 0.9em;
+  }
+
+  /* Temperature bar */
+  .progress-bar-wrapper:before {
     content: " ";
     display: block;
     position: absolute;
+    z-index: 1;
     bottom: -5px;
     left: -1px;
     height: 5px;
@@ -413,6 +438,18 @@ thead td {
     filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff0000', endColorstr='#66ff00',GradientType=1 ); /* IE6-9 */
   }
 
+  /* Annual budget */
+  .progress-bar-wrapper:after {
+    content: attr(data-total);
+    display: block;
+    position: absolute;
+    top: -22px;
+    right: 0;
+    background: #fff;
+    color: #ccc;
+    font-size: 0.9em;
+  }
+
 
 
 /* FDN Form */