diff --git a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/app.component.html b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/app.component.html index 6550a8276..bd50dc066 100644 --- a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/app.component.html +++ b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/app.component.html @@ -2,17 +2,20 @@
-
+
-
- +
+
+ +
+
diff --git a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/shared/components/identity/identity.html b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/shared/components/identity/identity.html index 17ab09824..f15dda395 100644 --- a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/shared/components/identity/identity.html +++ b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/shared/components/identity/identity.html @@ -1,8 +1,35 @@ - -
-
{{userName}}
-
-
MY ORDERS
-
LOG OUT
-
+
+
+
+ +
Login
+
+
+ +
+ +
{{userName}}
+ +
+ +
+ +
+ +
My orders
+ +
+ +
+ +
Log Out
+ +
+
diff --git a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/shared/components/identity/identity.scss b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/shared/components/identity/identity.scss index 4e8072812..edec0e452 100644 --- a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/shared/components/identity/identity.scss +++ b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/shared/components/identity/identity.scss @@ -1,63 +1,55 @@ -.identity { - &-user { - position: absolute !important; - top: 30px; - right: 120px; - cursor: pointer; +@import "../../../variables"; - &:hover .identity-userDropdown { - display: block; - } - } +.esh-identity { + line-height: 3rem; + position: relative; + text-align: right; - &-userDropdown { - display: none; - position: absolute; - background-color: #FFFFFF; - min-width: 160px; - box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); - right: -15px; - z-index: 3; + &-section { + display: inline-block; + width: 100%; + } - &:hover { - display: block; - } + &-name { + display: inline-block; - & div { - color: black; - padding: 12px 16px; - text-decoration: none; - display: block; - text-align: right; + &--upper { text-transform: uppercase; + } - &:hover { - color: #83d01b; - } + @media screen and (max-width: $media-screen-s) { + font-size: $font-size-s; } } - &-downArrow { - height: 7px; - width: 10px; + &-image { display: inline-block; - margin-left: 20px; + } - &:hover > identity.userDropdown { - display: block; - } + &-drop { + background: $color-background-brighter; + height: 0; + min-width: 14rem; + right: 0; + overflow: hidden; + padding: .5rem; + position: absolute; + top: 2rem; + transition: height $animation-speed-default; + } + + &:hover &-drop { + height: 6rem; + transition: height $animation-speed-default; } - &-login { - border: 1px solid #00a69c; - height: 36px !important; - margin-right: 10px; - margin-top: 10px; - background-color: #fff; - color: #00a69c; - text-transform: uppercase; - max-width: 140px; - width: 140px; - padding-top: 8px !important; + &-item { + cursor: pointer; + transition: color $animation-speed-default; + + &:hover { + color: $color-secondary-dark; + transition: color $animation-speed-default; + } } }