Skip to content

Commit

Permalink
Fix doc theme if Browser in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
djibe committed Nov 2, 2020
1 parent 87e134a commit 778becd
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 3 deletions.
21 changes: 21 additions & 0 deletions docs-assets/scss/docs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,8 @@
letter-spacing: normal;
}

// Doc icons

[class*='lgi-icon'] {
background-size: 24px;
border-radius: 50%;
Expand All @@ -476,3 +478,22 @@
.lgi-icon-plugin {
background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTgsM0EyLDIgMCAwLDAgNiw1VjlBMiwyIDAgMCwxIDQsMTFIM1YxM0g0QTIsMiAwIDAsMSA2LDE1VjE5QTIsMiAwIDAsMCA4LDIxSDEwVjE5SDhWMTRBMiwyIDAgMCwwIDYsMTJBMiwyIDAgMCwwIDgsMTBWNUgxMFYzTTE2LDNBMiwyIDAgMCwxIDE4LDVWOUEyLDIgMCAwLDAgMjAsMTFIMjFWMTNIMjBBMiwyIDAgMCwwIDE4LDE1VjE5QTIsMiAwIDAsMSAxNiwyMUgxNFYxOUgxNlYxNEEyLDIgMCAwLDEgMTgsMTJBMiwyIDAgMCwxIDE2LDEwVjVIMTRWM0gxNloiIC8+PC9zdmc+');
}

// Dark theme

@media (prefers-color-scheme: dark) {
html {
filter: none;
}

body,
label {
font-weight: initial;
}

img,
video,
.prevent-dark-mode {
filter: none;
}
}
17 changes: 17 additions & 0 deletions docs/css/docs.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/css/docs.css.map

Large diffs are not rendered by default.

Loading

0 comments on commit 778becd

Please sign in to comment.