Ver Fonte

fix(web): 对齐验证码输入框错误状态样式

sy há 2 dias atrás
pai
commit
24ecb09ac2
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      web-scaffold/src/styles/login-illustrated.css

+ 1 - 2
web-scaffold/src/styles/login-illustrated.css

@@ -63,8 +63,7 @@
 .illustrated-login__captcha-row { position: relative; display: flex; align-items: center; height: 48px; overflow: hidden; border: 1px solid var(--input); border-radius: 12px; background: var(--card); transition: border-color 160ms, box-shadow 160ms; }
 .illustrated-login__captcha-row:hover { border-color: var(--border-hover); }
 .illustrated-login__captcha-row:focus-within { border-color: var(--ring); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ring) 15%, transparent); }
-.illustrated-login__captcha-row.is-invalid { border-color: var(--destructive); }
-.illustrated-login__captcha-row.is-invalid:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, var(--destructive) 15%, transparent); }
+.illustrated-login__captcha-row.is-invalid { border-color: var(--destructive); box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 15%, transparent); }
 .illustrated-login__captcha-icon { position: absolute; z-index: 1; top: 50%; left: 14px; transform: translateY(-50%); color: var(--icon); pointer-events: none; }
 .illustrated-login__captcha-row .illustrated-login__captcha-input { flex: 1 1 0; min-width: 0; width: 0; height: 100%; padding: 0 8px 0 43px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 14px; }
 .illustrated-login__captcha-row .illustrated-login__captcha-input:hover,