From acca89505be6ec062ba1acd9cc7df49aac1711fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien-Pierre=20Av=C3=A9rous?= Date: Mon, 20 Apr 2020 23:27:17 +0200 Subject: [PATCH] Enhance the way help elements are displayed (#2911) * - Always display help under the targeted element. - Use same help place for HTTP authentication in 'add' feed view than in 'update' feed view. - Move help under input field in register view, as all other places (homogeneity). * - Don't use "!important" as suggested by @Alkarex. --- app/install.php | 2 +- app/views/auth/register.phtml | 7 +++++-- app/views/configure/archiving.phtml | 4 ++-- app/views/configure/reading.phtml | 2 +- app/views/configure/system.phtml | 4 ++-- app/views/feed/add.phtml | 5 +---- app/views/helpers/category/update.phtml | 2 +- app/views/helpers/feed/update.phtml | 10 +++++----- app/views/user/details.phtml | 2 +- app/views/user/manage.phtml | 2 +- app/views/user/profile.phtml | 6 +++--- p/themes/base-theme/template.css | 4 ++++ p/themes/base-theme/template.rtl.css | 4 ++++ 13 files changed, 31 insertions(+), 23 deletions(-) diff --git a/app/install.php b/app/install.php index 957e7a1d6..ddb9d7eaa 100644 --- a/app/install.php +++ b/app/install.php @@ -621,7 +621,7 @@ function printStep3() { tabindex="5" /> - +

diff --git a/app/views/auth/register.phtml b/app/views/auth/register.phtml index 10cffa0d1..3ee53356f 100644 --- a/app/views/auth/register.phtml +++ b/app/views/auth/register.phtml @@ -5,8 +5,9 @@
- + +

show_email_field) { ?> @@ -19,12 +20,14 @@
- +
+

+
show_tos_checkbox) { ?> diff --git a/app/views/configure/archiving.phtml b/app/views/configure/archiving.phtml index 7d76e4dcc..9c183f81f 100644 --- a/app/views/configure/archiving.phtml +++ b/app/views/configure/archiving.phtml @@ -6,7 +6,7 @@
-

+

@@ -132,7 +132,7 @@
- +

diff --git a/app/views/configure/reading.phtml b/app/views/configure/reading.phtml index cb74440a5..3cd0a718e 100644 --- a/app/views/configure/reading.phtml +++ b/app/views/configure/reading.phtml @@ -11,7 +11,7 @@
- +

diff --git a/app/views/configure/system.phtml b/app/views/configure/system.phtml index 1a718e20f..75117ee1c 100644 --- a/app/views/configure/system.phtml +++ b/app/views/configure/system.phtml @@ -25,7 +25,7 @@
- +

@@ -74,7 +74,7 @@
- +

diff --git a/app/views/feed/add.phtml b/app/views/feed/add.phtml index 9cfe024fc..516ec9a8b 100644 --- a/app/views/feed/add.phtml +++ b/app/views/feed/add.phtml @@ -69,16 +69,13 @@
+

- -
- -
diff --git a/app/views/helpers/category/update.phtml b/app/views/helpers/category/update.phtml index 9e55e613d..350a57287 100644 --- a/app/views/helpers/category/update.phtml +++ b/app/views/helpers/category/update.phtml @@ -21,7 +21,7 @@
- +

diff --git a/app/views/helpers/feed/update.phtml b/app/views/helpers/feed/update.phtml index 0a3852e22..0cc98e2bc 100644 --- a/app/views/helpers/feed/update.phtml +++ b/app/views/helpers/feed/update.phtml @@ -254,7 +254,7 @@
- +

@@ -278,7 +278,7 @@ - +

@@ -347,7 +347,7 @@ echo htmlspecialchars($filterRead->getRawInput(), ENT_NOQUOTES, 'UTF-8'), PHP_EOL; } ?> - +

@@ -364,13 +364,13 @@ - +

- +

diff --git a/app/views/user/details.phtml b/app/views/user/details.phtml index e23e645ae..ee5e381fd 100644 --- a/app/views/user/details.phtml +++ b/app/views/user/details.phtml @@ -51,7 +51,7 @@ /> - +

diff --git a/app/views/user/manage.phtml b/app/views/user/manage.phtml index 6ab31e6c6..627d229d2 100644 --- a/app/views/user/manage.phtml +++ b/app/views/user/manage.phtml @@ -53,7 +53,7 @@ - +

diff --git a/app/views/user/profile.phtml b/app/views/user/profile.phtml index 5357c2bfd..9e272b20a 100644 --- a/app/views/user/profile.phtml +++ b/app/views/user/profile.phtml @@ -43,7 +43,7 @@ /> - +

@@ -55,7 +55,7 @@
data-leave-validation=""/> - +

'rss', 'params' => array('user' => Minz_Session::param('currentUser'), 'token' => $token, 'hours' => FreshRSS_Context::$user_conf->since_hours_posts_per_rss)), 'html', true) ?>
@@ -81,7 +81,7 @@ /> - +

diff --git a/p/themes/base-theme/template.css b/p/themes/base-theme/template.css index 07927b88d..151a00910 100644 --- a/p/themes/base-theme/template.css +++ b/p/themes/base-theme/template.css @@ -59,6 +59,10 @@ p { font-size: 1em; } +p.help, .prompt p.help { + margin: 5px 0 0.5em; +} + sup { line-height: 25px; position: relative; diff --git a/p/themes/base-theme/template.rtl.css b/p/themes/base-theme/template.rtl.css index d5eb11426..638aea6b9 100644 --- a/p/themes/base-theme/template.rtl.css +++ b/p/themes/base-theme/template.rtl.css @@ -59,6 +59,10 @@ p { font-size: 1em; } +p.help, .prompt p.help { + margin: 5px 0 0.5em; +} + sup { line-height: 25px; position: relative;