-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
109 lines (108 loc) · 2.05 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
:root {
--darkcyan: hsl(158, 36%, 37%);
--cream: hsl(30, 38%, 92%);
--veryDarkBlue: hsl(212, 21%, 14%);
--darkGrayishBlue: hsl(228, 12%, 48%);
--white: hsl(0, 0%, 100%);
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
font-family: "Montserrat", sans-serif;
/* font-family: "Fraunces", system-ui; */
background-color: var(--cream);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
main {
max-width: 600px;
overflow: hidden;
display: grid;
grid-template-columns: repeat(2, 1fr);
border-radius: 10px;
margin: 1rem;
}
img, picture {
display: block;
max-width: 100%; /* 600px / 2 = 300px*/
}
.content {
background-color: var(--white);
padding: 2rem;
}
.perfume {
color: var(--darkGrayishBlue);
font-size: 12px;
letter-spacing: 4px;
text-transform: uppercase;
font-weight: 500;
}
h1 {
font-family: "Fraunces", system-ui;
font-size: 32px;
margin-top: 20px;
margin-bottom: 20px;
color: var(--veryDarkBlue);
line-height: 1;
}
.description {
color: var(--darkGrayishBlue);
line-height: 1.6;
margin-bottom: 25px;
text-wrap: wrap;
font-size: 14px;
}
.price {
display: flex;
align-items: center;
margin-top: 20px;
margin-bottom: 20px;
}
.price .discount-price {
font-family: "Fraunces", system-ui;
font-size: 30px;
color: var(--darkcyan);
font-weight: bold;
margin-right: 15px;
}
.price .original-price {
color: var(--darkGrayishBlue);
font-size: 12px;
font-weight: 500;
}
.cart {
width: 100%;
border: none;
outline: none;
background-color: var(--darkcyan);
color: var(--white);
border-radius: 10px;
padding: 15px;
text-align: center;
cursor: pointer;
font-weight: 700;
display: flex;
justify-content: center;
align-items: center;
font-family: "Montserrat", sans-serif;
}
.cart::before {
content: url(images/icon-cart.svg);
width: 15px;
height: 15px;
margin-right: 10px;
}
.cart:hover {
transition: 0.3s;
background-color: hsl(158, 57%, 21%);
}
@media (max-width: 700px) {
main {
grid-template-columns: 1fr;
}
}