diff options
| author | Teddy Wing | 2013-11-10 07:13:39 -0500 |
|---|---|---|
| committer | Teddy Wing | 2013-11-10 07:13:39 -0500 |
| commit | 8e3e493991cc73c42750ab4a506b535b9ac1709b (patch) | |
| tree | d1d5f783958bea00c2e8b9c738331c10fbc22dae /assets | |
| parent | 71c66c5120c9357890f967bd0aa5e266740ad78e (diff) | |
| download | clip-play-8e3e493991cc73c42750ab4a506b535b9ac1709b.tar.bz2 | |
Pulse keyboard key input on hover
To give you a better idea that it's able to be interacted with/edited.
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/css/application.css | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/assets/css/application.css b/assets/css/application.css index 0de3a55..23b863b 100644 --- a/assets/css/application.css +++ b/assets/css/application.css @@ -31,6 +31,7 @@ header { } +/* Keyboard keys */ .key { /* http://cssdeck.com/labs/apple-keyboard-via-css3 */ display: block; color: #aaa; @@ -66,8 +67,48 @@ header { border: none; } +@-webkit-keyframes keyboard-key-pulse-color { + 0% { + background: #eff0f2; + } + 100% { + background: #d6d7d9; + } +} + +@-moz-keyframes keyboard-key-pulse-color { + 0% { + background: #eff0f2; + } + 100% { + background: #d6d7d9; + } +} + +@-o-keyframes keyboard-key-pulse-color { + 0% { + background: #eff0f2; + } + 100% { + background: #d6d7d9; + } +} + +@keyframes keyboard-key-pulse-color { + 0% { + background: #eff0f2; + } + 100% { + background: #d6d7d9; + } +} + .key-input:hover { background: #dddee0; + -webkit-animation: keyboard-key-pulse-color 0.8s linear alternate infinite; + -moz-animation: keyboard-key-pulse-color 0.8s linear alternate infinite; + -o-animation: keyboard-key-pulse-color 0.8s linear alternate infinite; + animation: keyboard-key-pulse-color 0.8s linear alternate infinite; } |
