-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
130 lines (112 loc) · 2.25 KB
/
Copy pathstyles.css
File metadata and controls
130 lines (112 loc) · 2.25 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
120
121
122
123
124
125
126
127
128
129
130
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700&family=Montserrat:wght@500;700&display=swap");
:root {
--dark-cyan: hsl(158, 36%, 37%);
--cream: hsl(30, 38%, 92%);
--very-dark-blue: hsl(212, 21%, 14%);
--dark-grayish-blue: hsl(228, 12%, 48%);
--white: hsl(0, 0%, 100%);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: calc(100vh - 1px);
width: clac(100vw - 1px);
font-family: "Montserrat", sans-serif;
font-size: 14px;
background-color: var(--cream);
display: flex;
justify-content: center;
align-items: center;
}
.attribution {
font-size: 11px;
text-align: center;
}
.attribution a {
color: hsl(228, 45%, 44%);
}
.card {
width: 600px;
height: 450px;
display: flex;
}
.card img {
width: 300px;
height: 100%;
object-fit: cover;
border-radius: 10px 0 0 10px;
}
.card__content {
border-radius: 0 10px 10px 0;
display: flex;
flex-direction: column;
padding: 2rem;
background-color: var(--white);
}
.card__subtitle {
font-size: 1.2rem;
font-weight: 500;
color: var(--dark-grayish-blue);
margin-bottom: 1.2rem;
}
.card__title {
font-family: "Fraunces", serif;
font-size: 2rem;
font-weight: 700;
color: var(--very-dark-blue);
margin-bottom: 1.5rem;
}
.card__description {
color: var(--dark-grayish-blue);
margin-bottom: 1.5rem;
line-height: 1.5em;
}
.card__price {
display: flex;
align-items: center;
margin-bottom: 1rem;
gap: 1rem;
}
.card__price--new {
font-family: "Fraunces", serif;
font-size: 2rem;
font-weight: 700;
color: var(--dark-cyan);
}
.card__price--old {
color: var(--dark-grayish-blue);
text-decoration: line-through;
}
.card__button {
border: none;
border-radius: 0.5rem;
background-color: var(--dark-cyan);
color: var(--white);
cursor: pointer;
padding: 1rem 2rem;
transition: all 0.3s ease;
}
.card__button:hover {
background-color: hsl(157, 36%, 17%);
}
@media screen and (max-width: 600px) {
.card {
max-width: 340px;
height: 100%;
flex-direction: column;
}
.card img {
width: 100%;
height: 240px;
display: block;
margin-left: auto;
margin-right: auto;
border-radius: 10px 10px 0 0;
}
.card__content {
border-radius: 0 0 10px 10px;
}
}