Skip to content

Commit

Permalink
fix(styles): avoid override custom list style
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Mar 11, 2016
1 parent 66ca21c commit 01c3b24
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions _app/_includes/themes/curtana/includes/css-variables.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
<!-- Post specified styles -->
<style data-assets-inline>
/*
TODO: You have to speicify background color for `html` in order to make `-webkit-filter` work
Link: https://bugs.chromium.org/p/chromium/issues/detail?id=591015
Date: Mar 1, 2016, 5:41 PM
*/
TODO: You have to speicify background color for `html` in order to make `-webkit-filter` work
Link: https://bugs.chromium.org/p/chromium/issues/detail?id=591015
Date: Mar 1, 2016, 5:41 PM
*/
html {
{% if page.scheme-bg %}
background-color: {{ page.scheme-bg }};
Expand Down Expand Up @@ -87,25 +87,22 @@
}
{% endif %}

{% if page.scheme-link and page.scheme-bg %}
.content ul li:before,
.content ol li:before {
box-shadow: inset 0 0 0 3px {{ page.scheme-link }}, inset 0 0 0 5px {{ page.scheme-bg }}, inset 0 0 0 7px {{ page.scheme-link }};
}
{% endif %}

{% if page.scheme-code %}
.content code,
.content pre {
color: {{ page.scheme-code }};
}
{% endif %}

/*
TODO: Need a better solution. I have to redefine the whole box-shadow here because no invidual box-shadow-color exists
Date: Mar 12, 2016, 12:09 AM
*/
{% if page.scheme-text %}
.content hr::before,
.footnotes::before {
background: {{ page.scheme-text }};
box-shadow: 20px 0 0 0 {{ page.scheme-text }}, -20px 0 0 0 {{ page.scheme-text }};
box-shadow: 24px 0 0 0 {{ page.scheme-text }}, -24px 0 0 0 {{ page.scheme-text }};
}
{% endif %}

Expand Down

0 comments on commit 01c3b24

Please sign in to comment.