Commit 0ff2508329f722c438f583b8574c794022305c10

Authored by Antoine Goutenoir
1 parent 3d4f9a08
Exists in master

Animate some pixels, lovingly.

flaskr/static/css/common/main.css
... ... @@ -64,3 +64,51 @@ footer.page-footer a {
64 64 span.required-asterisk {
65 65 color: #901524;
66 66 }
  67 +
  68 +
  69 +
  70 +
  71 +
  72 +
  73 +/** SPINNER ******************************************************************/
  74 +
  75 +.lds-ripple {
  76 + display: inline-block;
  77 + position: relative;
  78 + width: 160px;
  79 + height: 160px;
  80 +}
  81 +
  82 +.lds-ripple div {
  83 + position: absolute;
  84 + border: 4px solid #4a59c1;
  85 + opacity: 1;
  86 + border-radius: 50%;
  87 + animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  88 +}
  89 +
  90 +.lds-ripple div:nth-child(2) {
  91 + animation-delay: -0.25s;
  92 +}
  93 +
  94 +.lds-ripple div:nth-child(3) {
  95 + animation-delay: -0.5s;
  96 +}
  97 +
  98 +@keyframes lds-ripple {
  99 + 0% {
  100 + top: 72px;
  101 + left: 72px;
  102 + width: 0;
  103 + height: 0;
  104 + opacity: 1;
  105 + }
  106 + 100% {
  107 + top: 0px;
  108 + left: 0px;
  109 + width: 144px;
  110 + height: 89px;
  111 +
  112 + opacity: 0;
  113 + }
  114 +}
67 115 \ No newline at end of file
... ...
flaskr/templates/estimation-queue-wait.html
... ... @@ -15,11 +15,21 @@ Estimation {{ estimation.public_id }} is computing… Please wait.
15 15  
16 16  
17 17 {% block extra_meta %}
  18 +{# push notifs are good but this complies w/ nojs #}
18 19 <meta http-equiv="refresh" content="4">
19 20 {% endblock %}
20 21  
21 22  
22 23 {% block body %}
  24 +
  25 +<div class="text-center">
  26 + <div class="lds-ripple">
  27 + <div></div>
  28 + <div></div>
  29 + <div></div>
  30 + </div>
  31 +</div>
  32 +
23 33 {#<a href="/compute" id="compute" class="nojs btn btn-danger btn-lg" target="_blank">WORK!</a>#}
24 34 <script type="text/javascript">
25 35 var compute_now = function() {
... ...