From b57ebe0074a7bca8a221e8a5e23b02bf22ef068d Mon Sep 17 00:00:00 2001 From: Lisa Sy Date: Tue, 10 Nov 2020 10:22:20 -0800 Subject: [PATCH] Update styles (#11342) --- app/assets/stylesheets/admin.scss | 4 +- .../configs/_auth_provider_settings.html.erb | 100 ++++++++---------- app/views/admin/configs/show.html.erb | 14 ++- 3 files changed, 55 insertions(+), 63 deletions(-) diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index 175dea6ab..225699d0f 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -145,8 +145,8 @@ label { display: flex; flex-direction: column; gap: var(--su-4); - padding-top: var(--su-4); - padding-bottom: var(--su-4); + padding-top: var(--su-6); + padding-bottom: var(--su-2); } .admin-config-checkmark { diff --git a/app/views/admin/configs/_auth_provider_settings.html.erb b/app/views/admin/configs/_auth_provider_settings.html.erb index 06a307d31..47df3a65c 100644 --- a/app/views/admin/configs/_auth_provider_settings.html.erb +++ b/app/views/admin/configs/_auth_provider_settings.html.erb @@ -1,54 +1,48 @@ -
-
-
-
-
- <%= admin_config_label :"#{provider.provider_name}_key" %> -

- <%= Constants::SiteConfig::DETAILS[:"#{provider.provider_name}_key"][:description] %> -

- <%= f.text_field :"#{provider.provider_name}_key", - class: "crayons-textfield", - value: SiteConfig.public_send("#{provider.provider_name}_key"), - placeholder: Constants::SiteConfig::DETAILS[:"#{provider.provider_name}_key"][:placeholder] %> -
-
- <%= admin_config_label :"#{provider.provider_name}_secret" %> -

- <%= Constants::SiteConfig::DETAILS[:"#{provider.provider_name}_secret"][:description] %> -

- <%= f.text_field :"#{provider.provider_name}_secret", - class: "crayons-textfield", - value: SiteConfig.public_send("#{provider.provider_name}_secret"), - placeholder: Constants::SiteConfig::DETAILS[:"#{provider.provider_name}_secret"][:placeholder] %> -

-
- <% if authentication_enabled_providers.include?(provider) %> - - - <% else %> - - <% end %> -
-
-
-
+
+
+ <%= admin_config_label :"#{provider.provider_name}_key" %> +

+ <%= Constants::SiteConfig::DETAILS[:"#{provider.provider_name}_key"][:description] %> +

+ <%= f.text_field :"#{provider.provider_name}_key", + class: "crayons-textfield", + value: SiteConfig.public_send("#{provider.provider_name}_key"), + placeholder: Constants::SiteConfig::DETAILS[:"#{provider.provider_name}_key"][:placeholder] %>
+
+ <%= admin_config_label :"#{provider.provider_name}_secret" %> +

+ <%= Constants::SiteConfig::DETAILS[:"#{provider.provider_name}_secret"][:description] %> +

+ <%= f.text_field :"#{provider.provider_name}_secret", + class: "crayons-textfield", + value: SiteConfig.public_send("#{provider.provider_name}_secret"), + placeholder: Constants::SiteConfig::DETAILS[:"#{provider.provider_name}_secret"][:placeholder] %> +

+
+ <% if authentication_enabled_providers.include?(provider) %> + + + <% else %> + + <% end %> +
+
diff --git a/app/views/admin/configs/show.html.erb b/app/views/admin/configs/show.html.erb index 239d19119..dbbfb07b7 100644 --- a/app/views/admin/configs/show.html.erb +++ b/app/views/admin/configs/show.html.erb @@ -270,7 +270,7 @@

"> @@ -295,13 +295,11 @@