-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
113 lines (95 loc) · 1.6 KB
/
style.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
113
/* Assignment 1 */
.carousel {
width: 100%;
overflow: hidden;
position: relative;
}
.carousel-slide {
display: flex;
width: 100%;
height: 80%;
align-items: center;
gap: 17px;
transition: transform 0.3s ease-in-out;
}
.carousel-image {
width: 100%;
height: auto;
object-fit: fill;
}
.prev,
.next {
position: absolute;
top: 50%;
transform: translateY(-50%);
font-size: 30px;
cursor: pointer;
color: white;
border-radius: 50%;
background-color: rgba(0, 0, 0, 0.5);
padding: 10px;
z-index: 1;
}
.prev {
left: 10px;
}
.next {
right: 10px;
}
@media screen and (max-width: 768px) {
.carousel-slide {
height: 300px;
}
.carousel-image {
height: 100%;
}
}
/* Assignment 2 */
.container {
width: 80%;
padding-bottom: 100px;
margin: auto;
}
h1 {
text-align: center;
}
.products {
display: flex;
justify-content: space-between;
align-items: center;
}
.product {
display: flex;
flex-direction: column;
justify-content: flex-start;
}
.product img {
width: 300px;
height: 300px;
border-radius: 10px;
}
.product p {
text-align: center;
font-weight: bold;
}
.product input {
width: 50%;
margin: auto;
padding: 6px;
}
.price-container {
display: flex;
justify-content: center;
padding: 50px;
}
button {
display: block;
padding: 6px;
margin: auto;
}
@media screen and (max-width: 768px) {
.products {
flex-direction: column;
gap: 10px;
}
}