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

master
Lorenzo Cogotti 3 years ago
parent 3ecbe66791
commit 25f45dfb07

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

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

Loading…
Cancel
Save