Skip to content

Commit

Permalink
Merge pull request #20282 from edx/waheed/fix-social-auth-buttons
Browse files Browse the repository at this point in the history
Fix Facebook and Google social auth buttons.
  • Loading branch information
nedbat authored Apr 22, 2019
2 parents ac0d405 + fd396be commit 7faa527
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 23 deletions.
4 changes: 2 additions & 2 deletions common/static/sass/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@
.icon-image {
width: auto;
height: auto;
max-height: 1.4em;
max-width: 1.4em;
max-height: 2em;
max-width: 2em;
margin-top: -2px;
}
}
12 changes: 6 additions & 6 deletions lms/static/sass/multicourse/_account.scss
Original file line number Diff line number Diff line change
Expand Up @@ -593,22 +593,22 @@

&.button-oa2-google-oauth2:hover,
&.button-oa2-google-oauth2:focus {
background-color: $google-red;
border: 1px solid #a5382b;
background-color: $google-focus-blue;
border: 1px solid $google-focus-blue;
}

&.button-oa2-google-oauth2:hover {
box-shadow: 0 2px 1px 0 #8d3024;
box-shadow: 0 2px 1px 0 $google-focus-blue;
}

&.button-oa2-facebook:hover,
&.button-oa2-facebook:focus {
background-color: $facebook-blue;
border: 1px solid #263a62;
background-color: $facebook-focus-blue;
border: 1px solid $facebook-focus-blue;
}

&.button-oa2-facebook:hover {
box-shadow: 0 2px 1px 0 #30487c;
box-shadow: 0 2px 1px 0 $facebook-focus-blue;
}

&.button-oa2-linkedin-oauth2:hover,
Expand Down
9 changes: 6 additions & 3 deletions lms/static/sass/partials/lms/theme/_variables-v1.scss
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,13 @@ $ui-notification-height: ($baseline*10);

// social platforms
$twitter-blue: #55acee;
$facebook-blue: #3b5998;
$facebook-blue: #4267b2;
$facebook-focus-blue: #29487d;
$linkedin-blue: #0077b5;
$google-red: #d73924;
$microsoft-black: #000;
$google-blue: #4285f4;
$google-focus-blue: #287ae6;
$microsoft-black: #2f2f2f;
$microsoft-focus-black: #000;

// shadows
$shadow: rgba(0, 0, 0, 0.2) !default;
Expand Down
38 changes: 26 additions & 12 deletions lms/static/sass/views/_login-register.scss
Original file line number Diff line number Diff line change
Expand Up @@ -557,31 +557,43 @@
}

&.button-oa2-google-oauth2 {
color: $google-red;
color: white;
border-color: $google-blue;
background-color: $google-blue;

.icon {
background: $google-red;
background: transparent;

.icon-image {
margin-left: 2px;
}
}

&:hover,
&:focus {
background-color: $google-red;
border: 1px solid #a5382b;
background-color: $google-focus-blue;
border: 1px solid $google-focus-blue;
color: $white;
}
}

&.button-oa2-facebook {
color: $facebook-blue;
color: white;
border-color: $facebook-blue;
background-color: $facebook-blue;

.icon {
background: $facebook-blue;
background: transparent;

.icon-image {
margin-left: 2px;
}
}

&:hover,
&:focus {
background-color: $facebook-blue;
border: 1px solid #263a62;
background-color: $facebook-focus-blue;
border: 1px solid $facebook-focus-blue;
color: $white;
}
}
Expand All @@ -602,16 +614,18 @@
}

&.button-oa2-azuread-oauth2 {
color: $microsoft-black;
color: white;
border-color: $microsoft-black;
background-color: $microsoft-black;

.icon {
background: $microsoft-black;
background: transparent;
}

&:hover,
&:focus {
background-color: $microsoft-black;
border: 1px solid $microsoft-black;
background-color: $microsoft-focus-black;
border: 1px solid $microsoft-focus-black;
color: $white;
}
}
Expand Down

0 comments on commit 7faa527

Please sign in to comment.