-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
207 lines (157 loc) · 3.71 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
/* --------------------------------------------------------------------------------------
Variables
-------------------------------------------------------------------------------------- */
:root {
--Red: hsl(0, 100%, 74%) ;
--Green: hsl(154, 59%, 51%);
--Blue: hsl(248, 32%, 49%);
--Dark-Blue: hsl(249, 10%, 26%);
--Grayish-Blue: hsl(246, 25%, 77%);
}
html {
font-family: 'Poppins', sans-serif;
}
/* --------------------------------------------------------------------------------------
Mobile First
-------------------------------------------------------------------------------------- */
body {
background-image: url(./images/bg-intro-mobile.png), linear-gradient(rgba(255, 121, 121, 0.899), rgba(255, 121, 121, 0.895));
min-height: 100vh;
}
main {
width: 100vw;
padding: 2.4rem;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
color: white;
font-size: 1.6rem;
}
.main__title {
font-size: 2.8rem;
font-weight: 700;
line-height: 3.6rem;
margin-top: 6.4rem;
}
.main__text {
font-weight: 500;
line-height: 2.6rem;
margin-top: 1.6rem;
}
.main__price--container {
display: flex;
background-color: var(--Blue);
box-shadow: 0px 8px 0px rgba(0, 0, 0, 0.14688);
border-radius: 10px;
margin-top: 6.4rem;
padding: 1.8rem 6.6rem;
}
.main__price {
font-size: 1.5rem;
font-weight: 300;
line-height: 2.6rem ;
}
.main__price span {
font-weight: 700 ;
}
form {
display: flex;
flex-direction: column;
margin-top: 2.4rem;
background-color: white;
padding: 2.4rem;
border-radius: 10px;
box-shadow: 0px 8px 0px rgba(0, 0, 0, 0.14688);
font-family: inherit;
gap: 1.6rem;
}
form input {
width: 28rem;
height: 5.6rem;
border: 1px solid #DEDEDE;
border-radius: 5px;
padding-left: 2rem;
align-items: center;
}
form input::placeholder {
font-size: 1.4rem;
}
form input:focus {
outline: none;
}
.form__error {
color: var(--Red);
font-size: 1.1rem;
text-align: right;
position: relative;
}
.form__error::after {
content: url(images/icon-error.svg);
position: absolute;
top: -5.5rem;
right: 2rem;
}
.hidden {
display: none;
}
.form__submit {
background-color: var(--Green);
width: 28rem;
height: 5.6rem;
color: white;
font-family: inherit;
box-shadow: inset 0px -4px 0px rgba(0, 0, 0, 0.0908818);
border-radius: 5px;
text-transform: uppercase;
}
.form__submit:hover {
background-image: linear-gradient(rgba(255, 255, 255, 0.294), rgba(255, 255, 255, 0.289));
}
.form__terms {
color: var(--Grayish-Blue);
font-size: 1.1rem;
/* margin-top: .8rem; */
}
.form__terms span {
color: var(--Red);
}
/* --------------------------------------------------------------------------------------
Desktop
-------------------------------------------------------------------------------------- */
main {
flex-direction: row;
gap: 4.5rem;
padding: 0;
align-items: flex-start;
}
.main__title {
font-size: 5rem;
line-height: 5.5rem;
width: 52.5rem;
text-align: left;
margin-top: 29rem;
}
.main__text {
font-size: 1.6rem;
width: 52.5rem;
text-align: left;
}
.main__price--container {
margin-top: 12rem ;
width: 54rem;
padding: 1.7rem 11.2rem;
text-align: center;
}
.main__price {
text-align: center;
}
form {
padding: 4rem;
gap: 2rem;
}
form input, .form__submit{
width: 46rem ;
}