Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix social button

Krzysztof Białogłowiczae133b7fcf93
diff --git a/saleor/static/scss/storefront/components/_buttons.scss b/saleor/static/scss/storefront/components/_buttons.scss
index 4f7d72e39b..9645550794 100644
--- a/saleor/static/scss/storefront/components/_buttons.scss
+++ b/saleor/static/scss/storefront/components/_buttons.scss
@@ -29,7 +29,7 @@ a.btn {
border: none;
&:hover {
background-color: $darken-blue;
- }
+ }
}
&.secondary {
border: 1px solid $blue;
@@ -74,3 +74,39 @@ a.btn {
button:focus {
outline: none;
}
+
+a.social-btn {
+ border-radius: $button-border-radius;
+ text-align: left;
+ padding: $global-padding / 2 0;
+ color: $white;
+ text-decoration: none;
+ text-transform: uppercase;
+ @include transition(background, 0.2s)
+ &:hover {
+ text-decoration: none;
+ }
+ img {
+ padding: 0 $global-padding / 2;
+ margin-right: $global-margin;
+ display: inline-block;
+ height: 20px;
+ border-right: solid 1px $light-gray;
+ }
+ &.facebook {
+ color: $white;
+ text-decoration: none;
+ background: #3b5998;
+ &:hover {
+ background: darken(#3b5998, 10%)
+ }
+ }
+ &.google {
+ color: $white;
+ text-decoration: none;
+ background: #dd4b39;
+ &:hover {
+ background: darken(#dd4b39, 10%)
+ }
+ }
+ }
diff --git a/saleor/static/scss/storefront/layouts/_login.scss b/saleor/static/scss/storefront/layouts/_login.scss
index fc6892d761..7a40fa686c 100644
--- a/saleor/static/scss/storefront/layouts/_login.scss
+++ b/saleor/static/scss/storefront/layouts/_login.scss
@@ -17,6 +17,10 @@
}
&__btn-group {
text-align: center;
+ img {
+ display: block;
+ margin: 0 auto;
+ }
}
&__register {
padding: $global-padding * 2;
@@ -33,35 +37,8 @@
}
}
a.social-btn {
- border-radius: $button-border-radius;
- text-align: left;
- padding: $global-padding / 2 0;
color: $white;
text-decoration: none;
- text-transform: uppercase;
- @include transition(background, 0.2s)
- &:hover {
- text-decoration: none;
- }
- img {
- padding: 0 $global-padding / 2;
- margin-right: $global-margin;
- display: inline-block;
- height: 20px;
- border-right: solid 1px $light-gray;
- }
- &.facebook {
- background: #3b5998;
- &:hover {
- background: darken(#3b5998, 10%)
- }
- }
- &.google {
- background: #dd4b39;
- &:hover {
- background: darken(#dd4b39, 10%)
- }
- }
}
&__form {
background: $light-gray;