[rain.js,notfound.sass] F Fix rain color on light color scheme

This commit is contained in:
Lorenzo Cogotti 2021-07-19 16:41:33 +02:00
parent 3ecbe66791
commit 25f45dfb07
2 changed files with 10 additions and 2 deletions

View File

@ -24,7 +24,7 @@
* for the JavaScript code in this page. * for the JavaScript code in this page.
* ----------------------------------------------- */ * ----------------------------------------------- */
particlesJS('particles-bg', particlesJS("particles-bg",
{ {
"particles": { "particles": {
@ -36,7 +36,9 @@ particlesJS('particles-bg',
} }
}, },
"color": { "color": {
"value": "#ffffff" "value": window.getComputedStyle(
document.getElementById("particles-bg")
).getPropertyValue("--notfound-particles-color").trim()
}, },
"shape": { "shape": {
"type": "circle" "type": "circle"

View File

@ -27,6 +27,8 @@
size: 144px 256px size: 144px 256px
#particles-bg #particles-bg
--notfound-particles-color: #000
position: absolute position: absolute
width: 100% width: 100%
height: 100% height: 100%
@ -39,3 +41,7 @@
text-align: center text-align: center
.notfound-page .notfound-page
flex-direction: column flex-direction: column
@media (prefers-color-scheme:dark)
#particles-bg
--notfound-particles-color: #fff