forgejo/web_src/css/markup/dark.css
Minecon724 593cf3f05b
feat(ui): Captcha Improvements
- Captcha is now 4-5 chars instead of 6
- Captcha now supports dark theme
- Captcha is now bigger
2025-09-13 09:48:56 +00:00

22 lines
620 B
CSS

.markup [src$="#gh-light-mode-only"],
.markup [src$="#light-mode-only"],
.markup [href$="#gh-light-mode-only"],
.markup [href$="#light-mode-only"] {
display: none;
}
.markup [src$="#gh-dark-mode-only"],
.markup [src$="#dark-mode-only"],
.markup [href$="#gh-dark-mode-only"],
.markup [href$="#dark-mode-only"] {
display: unset;
}
/*
The reason we're doing this here, is because dark templates always use this file, and there's no other way to detect dark theme.
Third party templates may not, but that doesn't really matter, since you can't change the theme logged out.
*/
.captcha-img {
filter: invert();
}