From 442d46f345d14c0a9ba57125cde9517b56322cd8 Mon Sep 17 00:00:00 2001 From: Tunghsiao Liu Date: Wed, 30 Mar 2016 17:01:11 +0800 Subject: [PATCH] feat(styles): brand-new headings BREAKING CHANGE: I've redesigned the site headings this time, and also introduces some new variables for you to customize them, you can use your favorite color site-wide or specific post in post front-matter field: ```yaml scheme-hero-text: "#00ebff" scheme-hero-link: "#00ebff" scheme-hero-bg: "#0029ff" ``` --- .../curtana/includes/css-variables.html | 30 +++++++---- .../themes/curtana/includes/header.html | 13 ++--- .../note/2014-05-01-custom-color-scheme.md | 6 +++ _app/assets/themes/curtana/_less/common.less | 54 +++++++++++-------- _app/assets/themes/curtana/_less/mixins.less | 2 +- _app/assets/themes/curtana/_less/print.less | 5 ++ _app/assets/themes/curtana/_less/reset.less | 13 ----- 7 files changed, 68 insertions(+), 55 deletions(-) diff --git a/_app/_includes/themes/curtana/includes/css-variables.html b/_app/_includes/themes/curtana/includes/css-variables.html index 3700a45cf..0fda136b0 100644 --- a/_app/_includes/themes/curtana/includes/css-variables.html +++ b/_app/_includes/themes/curtana/includes/css-variables.html @@ -59,17 +59,6 @@ } {% endif %} - {% if page.scheme-text %} - body:before, .logo { - background: {{ page.scheme-text }}; - } - {% endif %} - {% if page.scheme-link %} - .logo:hover { - background: {{ page.scheme-link }}; - } - {% endif %} - {% if page.scheme-hover %} .navigation li a:hover, .navigation li a:focus { @@ -77,6 +66,25 @@ } {% endif %} + {% if page.scheme-hero-bg %} + .content header { + background: {{ page.scheme-hero-bg }}; + } + {% endif %} + {% if page.scheme-hero-text %} + .content header { + color: {{ page.scheme-hero-text }}; + } + {% endif %} + {% if page.scheme-hero-link %} + .content header a { + color: {{ page.scheme-hero-link }}; + } + .content header .external .dot { + background: {{ page.scheme-hero-link }}; + } + {% endif %} + {% if page.scheme-link %} .current a { color: {{ page.scheme-link }}; diff --git a/_app/_includes/themes/curtana/includes/header.html b/_app/_includes/themes/curtana/includes/header.html index 8381feebf..45f78352d 100644 --- a/_app/_includes/themes/curtana/includes/header.html +++ b/_app/_includes/themes/curtana/includes/header.html @@ -1,10 +1,3 @@ - -
- -
-