From 2ab497fd54e4de49e06f8529b73cd83651b227a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Fri, 7 Feb 2025 20:20:33 +0100 Subject: [PATCH] Also theme password fields --- common/input.css | 2 +- games/static/base.css | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/common/input.css b/common/input.css index 4cd0b94..9499c59 100644 --- a/common/input.css +++ b/common/input.css @@ -174,7 +174,7 @@ label { @apply dark:text-slate-500; } -[type="text"], [type="datetime-local"], [type="datetime"], [type="date"], [type="number"], select, textarea { +[type="text"], [type="password"], [type="datetime-local"], [type="datetime"], [type="date"], [type="number"], select, textarea { @apply dark:bg-slate-600 dark:text-slate-300; } diff --git a/games/static/base.css b/games/static/base.css index c8f7cbd..ad444bc 100644 --- a/games/static/base.css +++ b/games/static/base.css @@ -1596,18 +1596,14 @@ input:checked + .toggle-bg { max-width: 24rem; } -.max-w-xs { - max-width: 20rem; -} - -.max-w-full { - max-width: 100%; -} - .max-w-xl { max-width: 36rem; } +.max-w-xs { + max-width: 20rem; +} + .flex-1 { flex: 1 1 0%; } @@ -2614,7 +2610,7 @@ label:is(.dark *) { color: rgb(100 116 139 / var(--tw-text-opacity)); } -[type="text"]:is(.dark *), [type="datetime-local"]:is(.dark *), [type="datetime"]:is(.dark *), [type="date"]:is(.dark *), [type="number"]:is(.dark *), select:is(.dark *), textarea:is(.dark *) { +[type="text"]:is(.dark *), [type="password"]:is(.dark *), [type="datetime-local"]:is(.dark *), [type="datetime"]:is(.dark *), [type="date"]:is(.dark *), [type="number"]:is(.dark *), select:is(.dark *), textarea:is(.dark *) { --tw-bg-opacity: 1; background-color: rgb(71 85 105 / var(--tw-bg-opacity)); --tw-text-opacity: 1;