Make the captcha look
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				requirements / merge-conditions (pull_request) Has been cancelled
				
			
		
			
				
	
				testing / backend-checks (pull_request) Has been cancelled
				
			
		
			
				
	
				testing / frontend-checks (pull_request) Has been cancelled
				
			
		
			
				
	
				issue-labels / backporting (pull_request_target) Has been cancelled
				
			
		
			
				
	
				milestone / set (pull_request_target) Has been cancelled
				
			
		
			
				
	
				testing / test-unit (pull_request) Has been cancelled
				
			
		
			
				
	
				testing / test-e2e (pull_request) Has been cancelled
				
			
		
			
				
	
				testing / test-remote-cacher (redis) (pull_request) Has been cancelled
				
			
		
			
				
	
				testing / test-remote-cacher (valkey) (pull_request) Has been cancelled
				
			
		
			
				
	
				testing / test-remote-cacher (garnet) (pull_request) Has been cancelled
				
			
		
			
				
	
				testing / test-remote-cacher (redict) (pull_request) Has been cancelled
				
			
		
			
				
	
				testing / test-mysql (pull_request) Has been cancelled
				
			
		
			
				
	
				testing / test-pgsql (pull_request) Has been cancelled
				
			
		
			
				
	
				testing / test-sqlite (pull_request) Has been cancelled
				
			
		
			
				
	
				testing / security-check (pull_request) Has been cancelled
				
			
		
		
	
	
		
	
		
			Some checks failed
		
		
	
	requirements / merge-conditions (pull_request) Has been cancelled
				
			testing / backend-checks (pull_request) Has been cancelled
				
			testing / frontend-checks (pull_request) Has been cancelled
				
			issue-labels / backporting (pull_request_target) Has been cancelled
				
			milestone / set (pull_request_target) Has been cancelled
				
			testing / test-unit (pull_request) Has been cancelled
				
			testing / test-e2e (pull_request) Has been cancelled
				
			testing / test-remote-cacher (redis) (pull_request) Has been cancelled
				
			testing / test-remote-cacher (valkey) (pull_request) Has been cancelled
				
			testing / test-remote-cacher (garnet) (pull_request) Has been cancelled
				
			testing / test-remote-cacher (redict) (pull_request) Has been cancelled
				
			testing / test-mysql (pull_request) Has been cancelled
				
			testing / test-pgsql (pull_request) Has been cancelled
				
			testing / test-sqlite (pull_request) Has been cancelled
				
			testing / security-check (pull_request) Has been cancelled
				
			This commit is contained in:
		
					parent
					
						
							
								1c02394a0d
							
						
					
				
			
			
				commit
				
					
						8c51098959
					
				
			
		
					 2 changed files with 11 additions and 1 deletions
				
			
		| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
{{if .EnableCaptcha}}{{if eq .CaptchaType "image"}}
 | 
					{{if .EnableCaptcha}}{{if eq .CaptchaType "image"}}
 | 
				
			||||||
	<div class="inline field tw-text-center">
 | 
						<div class="inline field tw-text-center">
 | 
				
			||||||
		<input type="hidden" name="img-captcha-id" value="{{.Captcha}}">
 | 
							<input type="hidden" name="img-captcha-id" value="{{.Captcha}}">
 | 
				
			||||||
		<img style="transform: scaleX(-1);background-color: white" onclick="this.src=`{{AppSubUrl}}/captcha/{{.Captcha}}.png?reload=${Date.now()}`" class="captcha-img" src="{{AppSubUrl}}/captcha/{{.Captcha}}.png" alt="{{ctx.Locale.Tr "captcha"}}">
 | 
							<img style="transform: scaleX(-1);" onclick="this.src=`{{AppSubUrl}}/captcha/{{.Captcha}}.png?reload=${Date.now()}`" class="captcha-img" src="{{AppSubUrl}}/captcha/{{.Captcha}}.png" alt="{{ctx.Locale.Tr "captcha"}}">
 | 
				
			||||||
	</div>
 | 
						</div>
 | 
				
			||||||
	<div class="required field {{if .Err_Captcha}}error{{end}}">
 | 
						<div class="required field {{if .Err_Captcha}}error{{end}}">
 | 
				
			||||||
		<label for="captcha">{{ctx.Locale.Tr "captcha"}}</label>
 | 
							<label for="captcha">{{ctx.Locale.Tr "captcha"}}</label>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,3 +11,13 @@
 | 
				
			||||||
.markup [href$="#dark-mode-only"] {
 | 
					.markup [href$="#dark-mode-only"] {
 | 
				
			||||||
  display: unset;
 | 
					  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 this isn't that big, since you can't change the theme logged out.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.captcha-img {
 | 
				
			||||||
 | 
					  filter: invert();
 | 
				
			||||||
 | 
					  /* optionally contrast filter? */
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue