From 28687612e9184ff3c5fb32b177897ddb199df6fb Mon Sep 17 00:00:00 2001 From: Tunghsiao Liu Date: Thu, 5 Jan 2017 18:35:22 +0800 Subject: [PATCH] feat(curtana): better list item link color --- .../themes/curtana/includes/page-item.html | 36 ++++++++++++++++--- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/_app/_includes/themes/curtana/includes/page-item.html b/_app/_includes/themes/curtana/includes/page-item.html index 29e5559c4..1b3278988 100644 --- a/_app/_includes/themes/curtana/includes/page-item.html +++ b/_app/_includes/themes/curtana/includes/page-item.html @@ -2,23 +2,51 @@ {% capture post_link_color %} - {% if post.scheme-bg %} - {% if post.scheme-bg-light %} + {% if post.scheme-list-color %} + {% if post.scheme-list-color == 'text' %} style="color: {{ post.scheme-text }};" + {% elsif post.scheme-list-color == 'hover' %} + style="color: {{ post.scheme-hover }};" + {% elsif post.scheme-list-color == 'code' %} + style="color: {{ post.scheme-code }};" + {% elsif post.scheme-list-color == 'bg' %} + style="color: {{ post.scheme-bg }};" + {% else %} + style="color: {{ post.scheme-link }};" + {% endif %} + {% elsif post.scheme-bg %} + {% if post.scheme-bg-light %} + style="color: {{ post.scheme-link }};" {% else %} style="color: {{ post.scheme-bg }};" {% endif %} + {% elsif post.scheme-link %} + style="color: {{ post.scheme-link }};" {% endif %} {% endcapture %} {% capture post_link_bg %} - {% if post.scheme-bg %} - {% if post.scheme-bg-light %} + {% if post.scheme-list-color %} + {% if post.scheme-list-color == 'text' %} style="background: {{ post.scheme-text }};" + {% elsif post.scheme-list-color == 'hover' %} + style="background: {{ post.scheme-hover }};" + {% elsif post.scheme-list-color == 'code' %} + style="background: {{ post.scheme-code }};" + {% elsif post.scheme-list-color == 'bg' %} + style="background: {{ post.scheme-bg }};" + {% else %} + style="background: {{ post.scheme-link }};" + {% endif %} + {% elsif post.scheme-bg %} + {% if post.scheme-bg-light %} + style="background: {{ post.scheme-link }};" {% else %} style="background: {{ post.scheme-bg }};" {% endif %} + {% elsif post.scheme-link %} + style="color: {{ post.scheme-link }};" {% endif %} {% endcapture %}