Patchwork [3,of,4] paper: add simple animation to the loading indicator

login
register
mail settings
Submitter Alexander Plavin
Date Sept. 19, 2013, 6:31 p.m.
Message ID <35b8522d22eabecbbf2d.1379615512@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/2541/
State Accepted
Commit b5c6010350058ee7d83f6e3753c9d9ca5245802a
Headers show

Comments

Alexander Plavin - Sept. 19, 2013, 6:31 p.m.
# HG changeset patch
# User Alexander Plavin <alexander@plav.in>
# Date 1378459858 -14400
#      Fri Sep 06 13:30:58 2013 +0400
# Node ID 35b8522d22eabecbbf2dce93f91442a67c6c3de8
# Parent  b8c8651efe951b7eeca002946352d2965e1b9b7d
paper: add simple animation to the loading indicator

Patch

diff -r b8c8651efe95 -r 35b8522d22ea mercurial/templates/static/style-paper.css
--- a/mercurial/templates/static/style-paper.css	Fri Sep 06 13:30:58 2013 +0400
+++ b/mercurial/templates/static/style-paper.css	Fri Sep 06 13:30:58 2013 +0400
@@ -383,6 +383,26 @@ 
     color: blue;
 }
 
+.scroll-loading {
+  -webkit-animation: change_color 1s linear 0s infinite alternate;
+  -moz-animation: change_color 1s linear 0s infinite alternate;
+  -o-animation: change_color 1s linear 0s infinite alternate;
+  animation: change_color 1s linear 0s infinite alternate;
+}
+
+@-webkit-keyframes change_color {
+  from { background-color: #A0CEFF; } to {  }
+}
+@-moz-keyframes change_color {
+  from { background-color: #A0CEFF; } to {  }
+}
+@-o-keyframes change_color {
+  from { background-color: #A0CEFF; } to {  }
+}
+@keyframes change_color {
+  from { background-color: #A0CEFF; } to {  }
+}
+
 .scroll-separator {
     border-bottom: 1px solid #444 !important;
 }