Skip to content

Commit

Permalink
feat(curtana): better list item link color
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Jan 5, 2017
1 parent 13c3335 commit 2868761
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions _app/_includes/themes/curtana/includes/page-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,51 @@

<!-- Dynamic link color based on post color scheme -->
{% 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 %}

<!-- Dynamic background color based on post color scheme -->
{% 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 %}

Expand Down

0 comments on commit 2868761

Please sign in to comment.