-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
126 lines (107 loc) · 2.16 KB
/
styles.css
File metadata and controls
126 lines (107 loc) · 2.16 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
:root {
--small-screen: 375px;
--large-screen: 1440px;
--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%);
--font-size: 1.25rem;
}
body {
padding: 0;
margin: 0;
}
main {
background-color: var(--cream);
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
.content {
display: flex;
flex-direction: row;
font-family: "Montserrat", sans-serif;
font-weight: 400;
font-size: var(--font-size);
margin: calc(var(--font-size)*1.5) var(--font-size);
}
picture {
margin: 0;
padding: 0;
display: flex;
}
picture img {
height: 100%;
width: 30rem;
border-radius: var(--font-size) 0 0 var(--font-size);
}
.text-content {
padding: calc(var(--font-size)*2);
font-size: var(--font-size);
background-color: white;
border-radius: 0 var(--font-size) var(--font-size) 0;
width: 20rem;
}
h1 {
font-family: "Fraunces", serif;
font-weight: 700;
margin: calc(var(--font-size) * 2) 0;
font-size-adjust: 0.55;
}
.price {
display: flex;
align-items: center;
margin-top: calc(var(--font-size)*0.5);
}
.price h1 {
color: var(--dark-cyan);
padding-right: var(--font-size);
}
button {
border-radius: var(--font-size);
background-color: var(--dark-cyan);
color: white;
width: 100%;
padding-top: var(--font-size);
padding-bottom: var(--font-size);
display: flex;
align-items: center;
justify-content: center;
}
button:hover {
background-image: linear-gradient(rgb(0 0 0/40%) 0 0);
}
button img {
margin-right: var(--font-size);
}
p {
line-height: 1.5;
margin: 0;
}
@media (orientation: portrait) {
:root {
--font-size: 1rem;
}
.content {
flex-direction: column;
width: calc(var(--font-size) * 25);
}
picture {
width: 23rem;
}
picture img {
width: 100%;
border-radius: var(--font-size) var(--font-size) 0 0;
}
.text-content {
padding: calc(var(--font-size)*1.5);
border-radius: 0 0 var(--font-size) var(--font-size);
}
h1 {
margin: calc(var(--font-size) * 1.25) 0;
font-size-adjust: none;
line-height: 1;
}
}