From c2cfc388bf69f6bb974a8756bcfbf250b28f10ea Mon Sep 17 00:00:00 2001 From: hyperreality Date: Sat, 3 Sep 2016 23:29:43 +0100 Subject: [PATCH] feat(ui): improved social login buttons UI (#1471) --- modules/users/client/css/users.css | 45 +++++----------- .../authentication.client.view.html | 18 +++---- .../authentication/signin.client.view.html | 3 ++ .../manage-social-accounts.client.view.html | 52 ++++++++++++------- 4 files changed, 56 insertions(+), 62 deletions(-) diff --git a/modules/users/client/css/users.css b/modules/users/client/css/users.css index cd0141635b..868b6f932b 100644 --- a/modules/users/client/css/users.css +++ b/modules/users/client/css/users.css @@ -7,46 +7,27 @@ display: inline-block; position: relative; } -.btn-remove-account { +.btn-add-remove-account { top: 10px; right: 10px; position: absolute; -} -.btn-file { - position: relative; - overflow: hidden; -} -.btn-file input[type=file] { - position: absolute; - top: 0; - right: 0; - min-width: 100%; - min-height: 100%; - font-size: 100px; - text-align: right; - filter: alpha(opacity=0); - opacity: 0; - background: white; - cursor: inherit; - display: block; + pointer-events: none; } .user-profile-picture { min-height: 150px; max-height: 150px; } .cropArea { - background: #E4E4E4; - width: 300px; - height: 300px; + background: #E4E4E4; + width: 300px; + height: 300px; +} +.social-button { + -webkit-transition-duration: 0.4s; + -moz-transition-duration: 0.4s; + -o-transition-duration: 0.4s; + transition-duration: 0.4s; } - -.social { - -webkit-transition-duration: 0.4s; - -moz-transition-duration: 0.4s; - -o-transition-duration: 0.4s; - transition-duration: 0.4s; +.social-button:hover { + opacity: 0.65; } - -.social:hover { - opacity: 0.65; -} \ No newline at end of file diff --git a/modules/users/client/views/authentication/authentication.client.view.html b/modules/users/client/views/authentication/authentication.client.view.html index f0e9488749..eb18e06cb6 100644 --- a/modules/users/client/views/authentication/authentication.client.view.html +++ b/modules/users/client/views/authentication/authentication.client.view.html @@ -1,14 +1,12 @@
-

Sign in using your social accounts

-
- - - -
-
- - - +

Sign in using your social accounts

+
+ + + + + +
diff --git a/modules/users/client/views/authentication/signin.client.view.html b/modules/users/client/views/authentication/signin.client.view.html index c30190c6ce..061677fc13 100644 --- a/modules/users/client/views/authentication/signin.client.view.html +++ b/modules/users/client/views/authentication/signin.client.view.html @@ -25,6 +25,9 @@

Or with your account

Forgot your password?
+

+   +

diff --git a/modules/users/client/views/settings/manage-social-accounts.client.view.html b/modules/users/client/views/settings/manage-social-accounts.client.view.html index 1aea1f156e..abf706b242 100644 --- a/modules/users/client/views/settings/manage-social-accounts.client.view.html +++ b/modules/users/client/views/settings/manage-social-accounts.client.view.html @@ -8,47 +8,59 @@

- -

Unconnected social accounts:

+

Unconnected social accounts: