From edc018ea40771fe0d32194e82bedefbd5d88b9ee Mon Sep 17 00:00:00 2001 From: Quique Fernandez Date: Wed, 28 Dec 2016 14:11:10 +0100 Subject: [PATCH 1/3] update orders detail layout --- .../orders-detail.component.html | 52 +++++------ .../orders-detail.component.scss | 87 ++++++------------- 2 files changed, 52 insertions(+), 87 deletions(-) diff --git a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.html b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.html index 16f4f981c..3dc81dd63 100644 --- a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.html +++ b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.html @@ -1,12 +1,12 @@
-
+
Order number
Date
@@ -15,58 +15,58 @@
-
{{order.ordernumber}}
-
{{order.date | date:'short'}}
-
$ {{order.total}}
-
{{order.status}}
+
{{order.ordernumber}}
+
{{order.date | date:'short'}}
+
$ {{order.total}}
+
{{order.status}}
-
+ -
+
-
Shipig address
+
Shipig address
-
{{order.street}}
+
{{order.street}}
-
{{order.city}}
+
{{order.city}}
-
{{order.country}}
+
{{order.country}}
-
+ -
+
-
Order details
+
Order details
- +
-
{{item.productname}}
-
$ {{item.unitprice}}
-
{{item.units}}
+
{{item.productname}}
+
$ {{item.unitprice}}
+
{{item.units}}
$ {{item.units * item.unitprice}}
-
+ -
+
-
-
Total
+
+
Total
-
-
$ XX
+
+
$ XX
-
+
diff --git a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.scss b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.scss index 6ca4d6fbf..0c194b296 100644 --- a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.scss +++ b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.scss @@ -1,86 +1,51 @@ @import '../../_variables.scss'; -.esh-orders-detail { +.esh-orders_detail { min-height: 80vh; + $header-height: 4rem; &-header { background-color: #00A69C; - height: 63px; - - li { - list-style: none; - display: inline; - opacity: 0.5; - margin-top: 25px; - margin-left: 10px; - float: right; - cursor: pointer; - color: white; - } - - li a { - color: white; - } - - &-back { - float: left !important; - margin-top: 20px !important; - text-transform: uppercase; - } - - li a:hover { - text-decoration: none; - } - } - - &-container { - min-height: 70vh; - padding-top: 40px; - margin-bottom: 30px; + height: $header-height; } - &-container .table tbody tr:first-child td { - border-top: none; - } + &-back { + color: rgba($color-foreground-brighter, .4); + line-height: $header-height; + text-transform: uppercase; + text-decoration: none; + transition: color $animation-speed-default; - &-container .table tr { - border-bottom: none; + &:hover { + color: $color-foreground-brighter; + transition: color $animation-speed-default; + } } &-section { - margin-top: 50px; + padding: 1rem 0; } - &-container .table { - margin-left: -7px; + &-titles { + padding-bottom: 1rem; + padding-top: 2rem; } - &-total { - margin-bottom: 5px; - margin-left: 20px; - text-align: left; + &-title { + font-size: $font-size-l; } - &-total-label { - font-size: 14px; - color: #404040; - margin-top:10px; - } - - &-total-value { - font-size: 28px; - color: #00a69c; - text-align: left; + &-item { + font-weight: $font-weight-semilight; } &-image { max-width: 210px; - } + min-width: 80px; + width: 100%; - &-column { - max-width: 120px; - padding: 8px; - text-transform: uppercase; - vertical-align: middle!important; + @media screen and (max-width: $media-screen-s) { + display: none; + } } } From 86b9b0893fce1db4ff3dc2626153d5b52eee3ba1 Mon Sep 17 00:00:00 2001 From: Quique Fernandez Date: Wed, 28 Dec 2016 14:40:11 +0100 Subject: [PATCH 2/3] improve detal layout --- .../orders-detail.component.html | 14 ++++----- .../orders-detail.component.scss | 30 ++++++++++++++----- 2 files changed, 30 insertions(+), 14 deletions(-) diff --git a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.html b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.html index 3dc81dd63..20cbd5211 100644 --- a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.html +++ b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.html @@ -47,17 +47,17 @@
-
+
-
{{item.productname}}
-
$ {{item.unitprice}}
-
{{item.units}}
-
$ {{item.units * item.unitprice}}
+
{{item.productname}}
+
$ {{item.unitprice}}
+
{{item.units}}
+
$ {{item.units * item.unitprice}}
-
+
Total
@@ -65,7 +65,7 @@
-
$ XX
+
$ XX
diff --git a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.scss b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.scss index 0c194b296..0e2f01db6 100644 --- a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.scss +++ b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.scss @@ -24,6 +24,10 @@ &-section { padding: 1rem 0; + + &--right { + text-align: right; + } } &-titles { @@ -35,17 +39,29 @@ font-size: $font-size-l; } + &-items { + + } + + $item-height: 8rem; &-item { + font-size: $font-size-m; font-weight: $font-weight-semilight; - } - &-image { - max-width: 210px; - min-width: 80px; - width: 100%; + &--middle { + line-height: $item-height; - @media screen and (max-width: $media-screen-s) { - display: none; + @media screen and (max-width: $media-screen-s) { + line-height: $font-size-m; + } } + + &--mark { + color: $color-secondary; + } + } + + &-image { + height: $item-height; } } From 3b16254c6dff4513269b26a5c7397ec16adaac39 Mon Sep 17 00:00:00 2001 From: Quique Fernandez Date: Wed, 28 Dec 2016 14:45:00 +0100 Subject: [PATCH 3/3] add border to items --- .../orders/orders-detail/orders-detail.component.html | 2 +- .../orders/orders-detail/orders-detail.component.scss | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.html b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.html index 20cbd5211..ccc89836d 100644 --- a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.html +++ b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.html @@ -45,7 +45,7 @@
Order details
-
diff --git a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.scss b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.scss index 0e2f01db6..94155312f 100644 --- a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.scss +++ b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders-detail/orders-detail.component.scss @@ -40,7 +40,10 @@ } &-items { - + &--border { + border-bottom: $border-light solid $color-foreground-bright; + padding: .5rem 0; + } } $item-height: 8rem;