From 4efae94a63f813979c643b8ec21a05e0bfbc70cd Mon Sep 17 00:00:00 2001 From: Holger Just Date: Sat, 5 Dec 2015 23:49:20 +0100 Subject: [PATCH] Remove pointless animations from default style --- source/stylesheets/_casper_override.css.scss | 25 ++++++++++++++++++++ source/stylesheets/application.css.scss | 1 + 2 files changed, 26 insertions(+) create mode 100644 source/stylesheets/_casper_override.css.scss diff --git a/source/stylesheets/_casper_override.css.scss b/source/stylesheets/_casper_override.css.scss new file mode 100644 index 0000000..a6e7ad8 --- /dev/null +++ b/source/stylesheets/_casper_override.css.scss @@ -0,0 +1,25 @@ +// Override default caspar styles for our own blog + +// Declutter navigation +.nav li:before, +.nav li a:after, +.nav li.nav-current a:after { + content: none; +} + +// Disable pointless animations +.home-template .page-title, +.home-template .page-description { + -webkit-animation: none 0s; + animation: none 0s; +} + +// Golden ratio for post header images +.post-head.main-header { + height: 61vh; + min-height: 180px; +} + +.author-bio { + text-align: left; +} diff --git a/source/stylesheets/application.css.scss b/source/stylesheets/application.css.scss index 1cff7c6..3518076 100644 --- a/source/stylesheets/application.css.scss +++ b/source/stylesheets/application.css.scss @@ -1,4 +1,5 @@ @import 'vendor/casper'; +@import 'casper_override'; @import 'syntax'; @import 'icons';