-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
260 lines (215 loc) · 5.26 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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
@import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@400;500;700&display=swap');
:root {
--very-dark-desaturated-blue: hsl(238, 29%, 16%);
--soft-red: hsl(14, 88%, 65%);
--very-dark-grayish-blue: hsl(237, 12%, 33%);
--Dark-grayish-blue: hsl(240, 6%, 50%);
--Light-grayish-blue: hsl(250, 3%, 66%);
}
* {
padding: 0;
margin: 0;
}
body,
html {
width: 100%;
height: 100%;
}
body {
background: linear-gradient(180deg, rgba(175, 103, 233, 1) 0%, rgba(101, 101, 231, 1) 100%) no-repeat fixed;
font-family: 'Kumbh Sans', sans-serif;
font-size: 12px;
}
main {
height: inherit;
width: inherit;
display: flex;
justify-content: center;
align-items: center;
}
.container {
background: white;
width: 950px;
height: 500px;
border-radius: 25px;
box-shadow: red 15px 10px 10px -15px;
display: grid;
grid-template-columns: 50% 50%;
box-shadow: 0 100px 100px -100px var(--very-dark-desaturated-blue);
}
.illustration {
position: relative;
width: 500px;
height: 100%;
background: url(./images/bg-pattern-desktop.svg) -34em -21em no-repeat;
background-size: 66em 71em;
}
.overflow-wrap {
overflow: hidden;
width: inherit;
height: inherit;
border-radius: 25px;
}
.woman-illustration {
position: relative;
right: 60px;
top: 70px;
width: 90%;
}
.box-illustration {
position: absolute;
width: 40%;
top: 200px;
right: 400px;
}
.woman-illustration img,
.box-illustration img {
max-width: 100%;
max-height: 100%;
}
.faq {
margin-top: 15%;
padding-inline: 10%;
}
.faq h1 {
font-size: 2rem;
font-weight: 700;
margin-bottom: 1rem;
}
.question {
margin-top: 15px;
margin-bottom: 0px;
border: none;
border-bottom: 1px solid var(--Light-grayish-blue);
position: relative;
cursor: pointer;
width: 90%;
text-align: left;
background-color: transparent;
}
.question span {
font-size: 14px;
font-weight: 400;
letter-spacing: 0.5px;
margin-bottom: 15px;
color: var(--very-dark-desaturated-blue);
}
.question:hover span {
color: var(--soft-red);
}
.question:active span,
.question:focus span {
color: var(--very-dark-grayish-blue);
font-weight: bold;
transition: font-weight 250ms;
}
.question::before {
content: url(./images/icon-arrow-down.svg);
transform: rotate(0.5turn);
transition: transform 250ms ease-out;
position: absolute;
right: 10px;
}
.question::after {
content: "";
text-align: left;
font-size: 13px;
line-height: 17px;
color: var(--Light-grayish-blue);
height: 0px;
width: 100%;
display: block;
transform: scaleY(0);
transform-origin: top;
margin-top: 10px;
margin-bottom: 5px;
transition: height 250ms ease-out, transform 250ms ease;
}
.question:focus::after,
.question:active::after {
height: 50px;
transition: height 250ms ease-out, transform 250ms ease;
padding-bottom: 0;
transform: scaleY(1);
}
.question:focus::before,
.question:active::before {
transition: transform 250ms ease-out;
transform: rotate(0);
}
.question:focus,
.question:active {
padding-bottom: 0;
}
.q1::after {
content: "You can invite up to 2 additional users on the Free plan. There is no limit on team members for the Premium plan.";
}
.q2::after {
content: "No more than 2GB. All files in your account must fit your allotted storage space.";
}
.q3::after {
content: " Click “Forgot password” from the login page or “Change password” from your profile page. A reset link will be emailed to you.";
}
.q4::after {
content: "Yes! Send us a message and we’ll process your request no questions asked.";
}
.q5::after {
content: "Chat and email support is available 24/7. Phone lines are open during normal business hours.";
}
.attribution {
font-size: 11px;
text-align: center;
}
.attribution a {
color: hsl(228, 45%, 44%);
}
@media only screen and (max-width:900px) {
.container {
transform: scale(0.9);
}
}
@media only screen and (max-width:800px) {
main {
height: 1000px;
}
.container {
display: flex;
flex-wrap: wrap;
align-content: flex-end;
height: 600px;
width: 350px;
position: relative;
background: white url(./images/bg-pattern-desktop.svg) 3em -13em no-repeat;
background-size: 24em;
}
.faq h1 {
text-align: center;
padding-right: 10px;
}
.faq {
margin-inline: 0;
padding-left: 15px;
padding-right: 0;
width: inherit;
height: 420px;
}
.question {
width: 95%;
}
.question::after {
width: 90%;
}
.overflow-wrap {
overflow: visible;
height: 200px;
position: relative;
}
.illustration {
transform: scale(0.65);
position: absolute;
height: 200px;
bottom: 610px;
right:-135px;
background:none;
}
}