diff options
author | Chip Senkbeil <chip.senkbeil@gmail.com> | 2015-08-24 07:32:48 +0300 |
---|---|---|
committer | Chip Senkbeil <chip.senkbeil@gmail.com> | 2015-08-24 07:32:48 +0300 |
commit | ac2fc434fe0bda6d1fe733b4630217c502d57828 (patch) | |
tree | b0077f8b934a4a47300a523c0ce7bbc844f2feae | |
parent | 5180936eb39459c4c5377bdfd9d01aa988c3bd09 (diff) |
Added ability to add grayscale to cells
-rw-r--r-- | layouts/partials/cell.html | 1 | ||||
-rw-r--r-- | static/css/main.css | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/layouts/partials/cell.html b/layouts/partials/cell.html index 951c385..5d7c7fb 100644 --- a/layouts/partials/cell.html +++ b/layouts/partials/cell.html @@ -2,6 +2,7 @@ <div class="cell fill-container no-padding + {{ if .grayscale }}grayscale{{ end }} {{ if .image }}fullsize-background-image{{ end }} " style=" {{ with .image }} diff --git a/static/css/main.css b/static/css/main.css index a829d5f..f0907a1 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -132,6 +132,21 @@ ul.menu li { border: 1px solid #FFF; } +.grayscale { + -webkit-filter: grayscale(100%); + filter: grayscale(100%); + + -webkit-transition: all 0.3s ease-in-out; + -moz-transition: all 0.3s ease-in-out; + -o-transition: all 0.3s ease-in-out; + transition: all 0.3s ease-in-out; +} + +.grayscale:hover { + -webkit-filter: grayscale(0%); + filter: grayscale(0%); +} + .clearfix:before, .clearfix:after { content: "."; |