Skip to content

Commit f453d11

Browse files
author
Quique Fernandez
committed
fix some ui things
1 parent 8ba5c51 commit f453d11

6 files changed

Lines changed: 32 additions & 24 deletions

File tree

src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/basket/basket.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
[(ngModel)]="item.quantity"
2626
(change)="itemQuantityChanged(item)" />
2727
</section>
28-
<section class="esh-basket-item esh-basket-item--middle col-xs-2">$ {{item.unitPrice * item.quantity}}</section>
28+
<section class="esh-basket-item esh-basket-item--middle esh-basket-item--mark col-xs-2">$ {{item.unitPrice * item.quantity}}</section>
2929
</article>
3030
</div>
3131

src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/basket/basket.component.scss

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,6 @@
33
.esh-basket {
44
min-height: 80vh;
55

6-
$header-height: 4rem;
7-
&-header {
8-
background-color: #00A69C;
9-
height: $header-height;
10-
}
11-
12-
&-back {
13-
color: rgba($color-foreground-brighter, .4);
14-
line-height: $header-height;
15-
text-transform: uppercase;
16-
text-decoration: none;
17-
transition: color $animation-speed-default;
18-
19-
&:hover {
20-
color: $color-foreground-brighter;
21-
transition: color $animation-speed-default;
22-
}
23-
}
24-
256
&-titles {
267
padding-bottom: 1rem;
278
padding-top: 2rem;
@@ -61,7 +42,7 @@
6142
}
6243

6344
&--mark {
64-
color: $color-secondary;
45+
color: $color-brand;
6546
}
6647
}
6748

src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<section class="esh-orders-item col-xs-4">{{order.date | date:'short'}}</section>
1717
<section class="esh-orders-item col-xs-2">$ {{order.total}}</section>
1818
<section class="esh-orders-item col-xs-2">{{order.status}}</section>
19-
<section class="esh-orders-item col-xs-2">
19+
<section class="esh-orders-item esh-orders-item--hover col-xs-2">
2020
<a class="esh-orders-link" routerLink="/orders/{{order.ordernumber}}">Detail</a>
2121
</section>
2222
</article>

src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/orders/orders.component.scss

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
.esh-orders {
44
min-height: 80vh;
5+
overflow-x: hidden;
56

67
$header-height: 4rem;
78
&-header {
@@ -35,10 +36,35 @@
3536
$height: 2rem;
3637
height: $height;
3738
line-height: $height;
39+
position: relative;
40+
41+
&:nth-of-type(2n + 1) {
42+
&:before {
43+
background-color: $color-background-bright;
44+
content: '';
45+
height: 100%;
46+
left: 0;
47+
margin-left: -100vw;
48+
position: absolute;
49+
top: 0;
50+
width: 200vw;
51+
z-index: -1;
52+
}
53+
}
3854
}
3955

4056
&-item {
4157
font-weight: $font-weight-semilight;
58+
59+
&--hover {
60+
opacity: 0;
61+
pointer-events: none;
62+
}
63+
}
64+
65+
&-items:hover &-item--hover {
66+
opacity: 1;
67+
pointer-events: all;
4268
}
4369

4470
&-link {

src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/shared/components/header/header.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
height: $header-height;
88

99
&-back {
10-
color: red;
10+
color: rgba($color-foreground-brighter, .5);
1111
line-height: $header-height;
1212
text-transform: uppercase;
1313
text-decoration: none;

src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/shared/components/identity/identity.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@
3434
overflow: hidden;
3535
padding: .5rem;
3636
position: absolute;
37-
top: 2rem;
37+
top: 2.5rem;
3838
transition: height $animation-speed-default;
3939
}
4040

4141
&:hover &-drop {
42+
border: $border-light solid $color-foreground-bright;
4243
height: 7rem;
4344
transition: height $animation-speed-default;
4445
}

0 commit comments

Comments
 (0)