-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
119 lines (99 loc) · 1.6 KB
/
style.css
File metadata and controls
119 lines (99 loc) · 1.6 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
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
114
115
116
117
118
119
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: system-ui, sans-serif;
}
body {
min-height: 100vh;
background-color: #b9680c;
display: flex;
justify-content: center;
align-items: center;
}
.big-card {
display: flex;
width: 600px;
background: #fff;
border-radius: 12px;
}
.card-imagee {
width: 50%;
background-image: url("imgs/desktop-image.jpg");
background-size: cover;
}
.card-contents {
width: 50%;
padding: 32px;
}
.small-text {
letter-spacing: 4px;
font-size: 12px;
color: #6c7289;
margin-bottom: 16px;
}
h1 {
font-family: Georgia, serif;
font-size: 28px;
margin-bottom: 20px;
}
.product-description {
color: #6c7289;
line-height: 1.6;
margin-bottom: 24px;
}
.prices {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 24px;
}
.current-price {
font-size: 28px;
font-weight: bold;
color: #3c8067;
}
.old-price {
text-decoration: line-through;
color: #6c7289;
}
.cart-btn {
width: 100%;
padding: 14px;
background-color: #3c8067;
color: white;
border: none;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
}
.cart-btn:hover {
background-color: #1a4032;
}
.cart-btn img {
width: 16px;
height: 16px;
}
@media (max-width: 600px) {
.card {
flex-direction: column;
width: 90%;
}
.card-imagee {
width: 100%;
height: 240px;
background-image: url("imgs/mobile-image.jpg");
}
.card-contents {
width: 100%;
padding: 24px;
}
h1 {
font-size: 24px;
}
}