Skip to content

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

Improve responsiveness

dominik-zeglen1b69b80e6908
diff --git a/saleor/static/scss/layouts/_checkout.scss b/saleor/static/scss/layouts/_checkout.scss
index e7c935c62a..d780ef8f76 100644
--- a/saleor/static/scss/layouts/_checkout.scss
+++ b/saleor/static/scss/layouts/_checkout.scss
@@ -159,14 +159,23 @@
}
&__new-address {
grid-column-end: span 2;
+ @include media-breakpoint-down(md) {
+ grid-column-end: span 1;
+ }
&-container {
grid-column-end: span 2;
+ @include media-breakpoint-down(md) {
+ grid-column-end: span 1;
+ }
}
}
&__shipping {
.btn {
grid-column-start: 2;
width: 100%;
+ @include media-breakpoint-down(md) {
+ grid-column-start: 1;
+ }
}
}
&__shipping-methods {
@@ -179,17 +188,28 @@
.btn {
grid-column-start: 2;
width: 100%;
+ @include media-breakpoint-down(md) {
+ grid-column-start: 1;
+ }
}
&-form {
display: grid;
grid-template-columns: 1fr 1fr;
grid-column-gap: $global-margin * 2;
grid-row-gap: $global-margin;
+ @include media-breakpoint-down(md) {
+ grid-template-columns: 1fr;
+ }
label {
cursor: pointer;
display: block;
margin: 0;
}
+ .btn {
+ @include media-breakpoint-down(md) {
+ width: 100%;
+ }
+ }
}
}
&__payment {
@@ -202,6 +222,11 @@
display: block;
margin: 0;
}
+ .btn {
+ @include media-breakpoint-down(md) {
+ width: 100%;
+ }
+ }
&__choice {
margin-bottom: $global-margin;
}
@@ -221,6 +246,9 @@
display: grid;
grid-template-columns: 1fr 1fr;
grid-column-gap: $global-margin * 2;
+ @include media-breakpoint-down(md) {
+ grid-template-columns: 1fr;
+ }
&-panel {
label {
cursor: pointer;