Merge pull request #340 from danharibo/master

Flashing
This commit is contained in:
reality 2013-04-09 08:51:46 -07:00
commit 46028d6019
2 changed files with 27 additions and 1 deletions

23
public/flash.css Normal file
View File

@ -0,0 +1,23 @@
body { background: #000; font-family: sans-serif }
.stamp {
text-align: center;
color: #FFF;
font-size: 12em;
}
.flash {
text-decoration: blink;
}
@-webkit-keyframes blink {
from { opacity: 1.0; }
to { opacity: 0.0; }
}
.flash {
-webkit-animation-name: blink;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: cubic-bezier(1.0,0,0,1.0);
-webkit-animation-duration: 1s;
}

View File

@ -2,7 +2,10 @@
html(lang='en')
head
meta(charset='utf-8')
link(rel='stylesheet', type='text/css', href='/styles.css')
link(rel='stylesheet', type='text/css', href='/flash.css')
title #{name} web interface
body
div.container
div.stamp [
span.flash(style='color: #'+colour+';') #{text}
]