Skip to content

Commit

Permalink
fix(styles): error page not shown correct in Chrome (possibly browser…
Browse files Browse the repository at this point in the history
… bug)
  • Loading branch information
sparanoid committed Mar 1, 2016
1 parent 784112b commit aed0d4e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
11 changes: 11 additions & 0 deletions _app/_includes/themes/curtana/includes/css-variables.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@

<!-- 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
*/
html {
{% if page.scheme-bg %}
background-color: {{ page.scheme-bg }};
{% endif %}
}

body {
{% if page.scheme-text %}
color: {{ page.scheme-text }};
Expand Down
3 changes: 0 additions & 3 deletions _app/assets/themes/curtana/_less/mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// Mixins
// --------------------------------------------------

// Invert color switcher for images and videos
// :root { filter: invert(100%); }

// http://nicolasgallagher.com/micro-clearfix-hack/
.cf {

Expand Down
4 changes: 4 additions & 0 deletions _app/assets/themes/curtana/_less/reset.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ html {
text-size-adjust: none;
text-rendering: optimizelegibility;
image-rendering: optimizequality;
// 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
background: @background-color;
}

body {
Expand Down

0 comments on commit aed0d4e

Please sign in to comment.