zpfz/RVerify.js

Darkmode

beshoo opened this issue · 1 comments

Hello.
I can see that we have 2 CSS to change color to match dark mode.


.rv-wrap {
    position: relative;
    width: 18.5rem;
    background-color: #fff;
    border-radius: 10px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
}


.rv-wrap .rv-content .rv-control .rv-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: #f1f1f1;
    border-radius: 100px;
}

But how can I change that when I call RVerify?

zpfz commented

1.You can use JavaScript to change it.
e.g.

document.querySelector(".rv-wrap").style['background-color'] = '#ddd'

2.You can fork the source code to local, then change it directly.