Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix responsive styles
weronka113123d3097f
diff --git a/saleor/static/scss/storefront/components/_userprofile.scss b/saleor/static/scss/storefront/components/_userprofile.scssindex 4796ad7c11..a8ce40d004 100644--- a/saleor/static/scss/storefront/components/_userprofile.scss+++ b/saleor/static/scss/storefront/components/_userprofile.scss@@ -14,14 +14,30 @@.nav {border-bottom: 0;background-color: $light-gray;+ @include media-breakpoint-down(xs) {+ text-align: center;+ padding-right: 0;+ padding-bottom: $global-padding / 2;+ }}.nav-item {+ @include media-breakpoint-down(xs) {+ display: inline-block;+ float: none;+ }& + .nav-item {margin-left: 0;}.nav-link {padding: $global-padding $global-padding * 2;border: 0;+ margin-top: $global-margin / 2;+ @include media-breakpoint-up(sm) {+ border-left: 1px solid $light-gray;+ border-bottom: 1px solid $white;+ border-top: 1px solid $light-gray;+ margin-top: 0;+ }border-radius: 0;transition: 0.3s;&:hover, &.active {@@ -29,6 +45,9 @@}h3 {color: $body-color;+ @include media-breakpoint-down(sm) {+ font-size: 1rem;+ }}}}@@ -59,8 +78,15 @@.card-deck {display: table-row;.card {- width: 30%;+ width: 50%;border-radius: 0;+ @include media-breakpoint-down(sm) {+ width: 100%;+ display: inline-block;+ &:first-of-type {+ margin-bottom: $global-margin;+ }+ }img {position: absolute;top: 1rem;diff --git a/templates/userprofile/details.html b/templates/userprofile/details.htmlindex c5b72653c1..acfe22a8cc 100644--- a/templates/userprofile/details.html+++ b/templates/userprofile/details.html@@ -78,7 +78,7 @@<a data-toggle="modal" data-target=".modal-address-delete"><img src="{% static 'img/icon_delete.svg' %}"></a>{% include "userprofile/address-delete.html" with pk=address.pk %}</div>- {% if forloop.counter|divisibleby:3 %}+ {% if forloop.counter|divisibleby:2 %}</div><div class="card-deck">{% endif %}