Skip to content

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

Fix userprofile menu

Krzysztof Białogłowicz6538357b1443
diff --git a/saleor/static/scss/storefront/components/_userprofile.scss b/saleor/static/scss/storefront/components/_userprofile.scss
index 043541f387..03a9e1d546 100644
--- a/saleor/static/scss/storefront/components/_userprofile.scss
+++ b/saleor/static/scss/storefront/components/_userprofile.scss
@@ -1,4 +1,9 @@
.userprofile {
+ h2 {
+ text-align: center;
+ text-transform: uppercase;
+ font-size: 1.4rem;
+ }
&__user {
h2 {
margin-right: $global-margin;
@@ -10,10 +15,11 @@
}
&__nav {
- margin: $global-margin * 2 0 $global-margin * 2;
+ margin: $global-margin * 2 0 $global-margin;
.nav {
- border-bottom: 0;
- background-color: $light-gray;
+ display: block;
+ text-align: center;
+ border: 0;
@include media-breakpoint-down(xs) {
text-align: center;
padding-right: 0;
@@ -21,6 +27,7 @@
}
}
.nav-item {
+ display: inline;
@include media-breakpoint-down(xs) {
display: inline-block;
float: none;
@@ -30,27 +37,23 @@
}
.nav-link {
padding: $global-padding $global-padding * 2;
- border-bottom: 1px solid $light-gray;
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;
+ display: inline-block;
transition: 0.3s;
- &:hover, &.active {
- background-color: $white;
- border-color: $light-gray;
- border-bottom: 1px solid $white;
- }
+ border: 0;
+ text-transform: uppercase;
h3 {
- color: $body-color;
+ color: $skull-gray;
@include media-breakpoint-down(sm) {
font-size: 1rem;
}
}
+ &:hover, &.active {
+ h3 {
+ border: 0;
+ color: $body-color;
+ }
+ }
}
}
}
diff --git a/templates/userprofile/details.html b/templates/userprofile/details.html
index e5fe20d38c..32df6d7b3c 100644
--- a/templates/userprofile/details.html
+++ b/templates/userprofile/details.html
@@ -18,6 +18,7 @@
{% block content %}
<div class="userprofile">
<div class="userprofile__nav container">
+ <h2>{% trans "My account" %}</h2>
<ul class="nav nav-tabs col-lg-10 offset-lg-1" role="tablist">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#orders" role="tab"><h3>{% trans "Orders" %}</h3></a>
@@ -26,7 +27,7 @@
<a class="nav-link " data-toggle="tab" href="#password" role="tab"><h3>{% trans "Change password" %}</h3></a>
</li>
<li class="nav-item">
- <a class="nav-link" data-toggle="tab" href="#addresses" role="tab"><h3>{% trans "Addresses" %}</h3></a>
+ <a class="nav-link" data-toggle="tab" href="#addresses" role="tab"><h3>{% trans "Addresses book" %}</h3></a>
</li>
</ul>
</div>