-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
88 lines (74 loc) · 1.2 KB
/
styles.css
File metadata and controls
88 lines (74 loc) · 1.2 KB
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
body {
height: 100vh;
font-family: sans-serif;
margin: 0;
display: flex;
flex-direction: column;
justify-content: start;
align-items: center;
}
header {
background-color: black;
color: white;
display: flex;
width: 100%;
justify-content: space-between;
}
.products {
display: flex;
flex-flow: row wrap;
justify-content: center;
gap: 10px;
}
.product-card {
text-align: center;
width: 200px;
border: 1px solid black;
box-shadow: 3px 3px 3px gray;
padding: 10px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.product-card > * {
margin: 0;
padding: 10px;
}
.product-card button {
width: 50%;
font-size: 2em;
display: flex;
justify-content: center;
align-items: center;
}
.product-card img {
width: 100px;
}
header > * {
padding: 10px;
}
.cart {
border: 1px solid black;
background-color: white;
width: 600px;
min-height: 100vh;
position: absolute;
top: 0;
right: 0px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
transition: all 0.5s;
padding: 10px;
}
.cart hr {
width: 90%;
}
.cart button {
width: 33%;
}
.cart.closed {
right: -620px;
}