Skip to content

Commit

Permalink
added change color in latest
Browse files Browse the repository at this point in the history
  • Loading branch information
mvnnn committed Apr 3, 2016
1 parent c30392a commit 25eee71
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions latest/_static/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -417,3 +417,18 @@ popupmenu css
#popupmenu ul ul > li.open::after {
border-top-color: #666666;
}

@-webkit-keyframes changeColor {
0% { background-color: #95c46e; }
50% { background-color: #81b953; }
51% { background-color: #6ea343; }
100% { background-color: #567f34; }
}

.latestVersion {
position: absolute;
z-index: 1000000;
-webkit-animation-name: changeColor;
-webkit-animation-iteration-count: infinite;
-webkit-animation-duration: 2s;
}
2 changes: 1 addition & 1 deletion latest/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
if (elem != ""){
var res = elem.split(":");
if(n == (lines.length - 2)){
$("#version-list").prepend("<li><a style='font-size:100%;background-color: #7ab54a;' href="+"../latest/index.html"+"><span>Latest</span></a></li>");
$("#version-list").prepend("<li><a class='latestVersion' style='font-size:100%' href="+"../latest/index.html"+"><span>Latest</span></a></li>");
}
else if(res[0] == 'dev'){
$("#version-list").prepend("<li><a style='font-size: 100%;' href="+"../" + res[0] + "/index.html"+"><span>Dev</span></a></li>");
Expand Down

0 comments on commit 25eee71

Please sign in to comment.