-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
102 lines (89 loc) · 1.66 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
@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 {
min-height: 100vh;
min-width: 100vw;
font-family: Montserrat;
color: hsl(228, 12%, 48%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
font-size: 14px;
background-color: hsl(30, 38%, 92%);
}
h1 {
font-family: fraunces;
color: black;
font-size: 2.2em;
}
main {
display: grid;
grid-template-columns: repeat(2, 1fr);
border-radius: 0.7em;
max-width: 490px;
max-height: 600px;
}
.content {
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
background-color: hsl(0, 0%, 100%);
border-top-right-radius: 0.7em;
border-bottom-right-radius: 0.7em;
padding: 0.7em;
}
#title {
align-self: flex-start;
text-transform: uppercase;
}
.image img {
width: 100%;
height: 100%;
border-top-left-radius: 0.7em;
border-bottom-left-radius: 0.7em;
}
.prices {
display: flex;
align-items: center;
}
.price {
color: hsl(158, 36%, 37%);
font-weight: 700;
font-size: 2em;
font-family: fraunces;
}
.reduction {
text-decoration: line-through;
color: hsl(228, 12%, 48%);
margin-left: 0.5em;
}
.button {
display: inline-block;
width: 170px;
height: 40px;
color: white;
background-color: hsl(158, 36%, 37%);
text-align: center;
padding-top: 8px;
text-decoration: none;
border-radius: 0.4rem;
}
#svg {
margin-right: 15px;
}
.button:hover {
background-color: hsl(157, 44%, 20%);
}
.attribution {
font-size: 11px;
text-align: center;
}
.attribution a {
color: hsl(228, 45%, 44%);
}