From 52ac51462a88026bee72d07e3bb01aa185d7f23d Mon Sep 17 00:00:00 2001 From: Pellaeon Lin Date: Wed, 3 May 2017 22:56:33 +0800 Subject: [PATCH] - Fix input text box width on NC>12 - Avoid CSS use !important --- css/style.css | 9 +++------ templates/form.php | 2 ++ templates/register.php | 2 ++ 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/css/style.css b/css/style.css index 61e6079..72d857f 100644 --- a/css/style.css +++ b/css/style.css @@ -1,6 +1,6 @@ -#email, #username, #password { - width: 223px !important; - padding-left: 36px !important; +#body-login #email, #body-login #username, #body-login #password { + width: 223px; + padding-left: 36px; } #email-icon, #username-icon, #password-icon { position: absolute; @@ -10,9 +10,6 @@ filter: alpha(opacity=30); opacity: .3; } -#body-login input[type="email"] { - width: 249px; -} #username-icon { top: 17px; } diff --git a/templates/form.php b/templates/form.php index 2f0b76f..0fdf699 100644 --- a/templates/form.php +++ b/templates/form.php @@ -1,5 +1,7 @@ = 12 ) + \OCP\Util::addStyle('core', 'guest'); ?>
diff --git a/templates/register.php b/templates/register.php index 07af9a4..155ca8e 100644 --- a/templates/register.php +++ b/templates/register.php @@ -1,5 +1,7 @@ = 12 ) + \OCP\Util::addStyle('core', 'guest'); if ($_['entered']): ?>