-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
100 lines (85 loc) · 1.85 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
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],700&family=Montserrat:wght@500;700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Montserrat', sans-serif;
background-color: hsl(30, 38%, 92%);
font-size: 14px;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.container {
margin: 30px auto;
padding: 0 30px;
}
.grid {
max-width: 700px;
display: grid;
grid-template-columns: 1fr 1fr;
background-color: #fff;
border-radius: 15px;
overflow: hidden;
}
.img img {
max-width: 100%;
display: inherit;
}
.card-content {
padding: 35px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
h6.pro-cat {
text-transform: uppercase;
letter-spacing: 3px;
font-size: 13px;
color: hsl(228, 12%, 48%);
font-weight: 500;
}
h2.pro-name {
font-family: 'Fraunces', sans-serif;
font-size: 34px;
line-height: 1em;
color: hsl(212, 21%, 14%);
}
p.pro-des {
color: hsl(228, 12%, 48%);
line-height: 1.4em;
}
.price {
display: flex;
align-items: center;
}
p.current-price {
font-family: 'Fraunces', sans-serif;
color: hsl(158, 36%, 37%);
font-size: 25px;
padding-right: 25px;
}
p.old-price {
color: hsl(228, 12%, 48%);
text-decoration: line-through;
}
button.cta {
background-color: hsl(158, 36%, 37%);
border: none;
padding: 14px 0;
border-radius: 12px;
color: #fff;
font-size: 14px;
font-weight: 700;
cursor: pointer;
transition: background-color .3s ease;
}
button.cta:hover {
background-color: hsl(158, 36%, 23%);
}
button.cta img {
padding-right: 7px;
}