forked from Shopify/dawn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent-cart-notification.css
112 lines (93 loc) · 2.14 KB
/
component-cart-notification.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
.cart-notification-wrapper {
position: relative;
}
.cart-notification-wrapper .cart-notification {
display: block;
}
.cart-notification {
background-color: rgb(var(--color-background));
border-color: rgba(var(--color-foreground), 0.2);
border-style: solid;
border-width: 0 0 0.1rem;
padding: 2.5rem 3.5rem;
position: absolute;
right: 0;
transform: translateY(-100%);
visibility: hidden;
width: 100%;
z-index: -1;
}
@media screen and (min-width: 750px) {
.header-wrapper:not(.header-wrapper--border-bottom) + cart-notification .cart-notification {
border-top-width: 0.1rem;
}
.cart-notification {
border-width: 0 0.1rem 0.1rem;
max-width: 36.8rem;
right: 4rem;
}
}
.cart-notification.animate {
transition: transform var(--duration-short) ease,
visibility 0s var(--duration-short) ease;
}
.cart-notification.active {
transform: translateY(0);
transition: transform var(--duration-default) ease, visibility 0s;
visibility: visible;
}
.cart-notification__header {
align-items: flex-start;
display: flex;
}
.cart-notification__heading {
align-items: center;
display: flex;
flex-grow: 1;
margin-bottom: 0;
margin-top: 0;
}
.cart-notification__heading .icon-checkmark {
color: rgb(var(--color-foreground));
margin-right: 1rem;
width: 1.3rem;
}
.cart-notification__close {
margin-top: -2rem;
margin-right: -3rem;
}
.cart-notification__links {
text-align: center;
}
.cart-notification__links > * {
margin-top: 1rem;
}
.cart-notification-product {
align-items: flex-start;
display: flex;
padding-bottom: 3rem;
padding-top: 2rem;
}
.cart-notification-product dl {
margin-bottom: 0;
margin-top: 0;
}
.cart-notification-product__image {
border: 0.1rem solid rgba(var(--color-foreground), 0.03);
margin-right: 1.5rem;
}
.cart-notification-product__name {
margin-bottom: 0;
margin-top: 0;
}
.cart-notification-product__option {
color: rgba(var(--color-foreground), 0.7);
margin-top: 1rem;
}
.cart-notification-product__option + .cart-notification-product__option {
margin-top: 0.5rem;
}
.cart-notification-product__option > * {
display: inline-block;
margin: 0;
}