Skip to content

Commit 8f92f57

Browse files
committed
added change color in latest
1 parent c30392a commit 8f92f57

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

latest/_static/default.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,3 +417,18 @@ popupmenu css
417417
#popupmenu ul ul > li.open::after {
418418
border-top-color: #666666;
419419
}
420+
421+
@-webkit-keyframes changeColor {
422+
0% { background-color: #95c46e; }
423+
50% { background-color: #81b953; }
424+
51% { background-color: #7ab54a; }
425+
100% { background-color: #6ea343; }
426+
}
427+
428+
.latestVersion {
429+
position: absolute;
430+
z-index: 1000000;
431+
-webkit-animation-name: changeColor;
432+
-webkit-animation-iteration-count: infinite;
433+
-webkit-animation-duration: 2s;
434+
}

latest/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
if (elem != ""){
4343
var res = elem.split(":");
4444
if(n == (lines.length - 2)){
45-
$("#version-list").prepend("<li><a style='font-size:100%;background-color: #7ab54a;' href="+"../latest/index.html"+"><span>Latest</span></a></li>");
45+
$("#version-list").prepend("<li><a class='latestVersion' style='font-size:100%' href="+"../latest/index.html"+"><span>Latest</span></a></li>");
4646
}
4747
else if(res[0] == 'dev'){
4848
$("#version-list").prepend("<li><a style='font-size: 100%;' href="+"../" + res[0] + "/index.html"+"><span>Dev</span></a></li>");

0 commit comments

Comments
 (0)