From: Anton Khorev Date: Thu, 10 Aug 2023 16:27:48 +0000 (+0300) Subject: Remove custom css for OpenID logo X-Git-Tag: live~1161^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/113c32f65e2018fa93e41c1599f2bb1f19ee3826 Remove custom css for OpenID logo --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 779fbbe35..8cd9e2b40 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -1262,13 +1262,6 @@ dl.dl-inline { } } -/* Rules for OpenID logo */ - -.openid_logo { - vertical-align: text-bottom; - border: 0; -} - /* Rules for rich text */ .richtext, diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index 1064e95c7..c8a80588c 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -53,7 +53,7 @@ module UserHelper # External authentication support def openid_logo - image_tag "openid_small.png", :alt => t("sessions.new.openid_logo_alt"), :class => "openid_logo" + image_tag "openid_small.png", :alt => t("sessions.new.openid_logo_alt"), :class => "align-text-bottom" end def auth_button(name, provider, options = {}) diff --git a/test/helpers/user_helper_test.rb b/test/helpers/user_helper_test.rb index cb7125cca..044f71681 100644 --- a/test/helpers/user_helper_test.rb +++ b/test/helpers/user_helper_test.rb @@ -111,7 +111,7 @@ class UserHelperTest < ActionView::TestCase def test_openid_logo logo = openid_logo - assert_match %r{^$}, logo + assert_match %r{^$}, logo end def test_auth_button