-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
163 lines (141 loc) · 2.79 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
@import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@400;700&display=swap');
/*
GENERAL STYLES
*/
:root {
--Very-dark-grayish-blue: hsl(237, 12%, 33%);
--Dark-grayish-blue: hsl(240, 6%, 50%);
--Light-grayish-blue: hsl(240, 5%, 91%);
--Soft-violet: hsl(273, 75%, 66%);
--Soft-blue: hsl(240, 73%, 65%);
--Very-dark-desaturated-blue: hsl(238, 29%, 16%);
--Soft-red: hsl(14, 88%, 65%);
}
/*
RESET STYLES
*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Kumbh Sans', sans-serif;
}
/*
HANDLE PROJECT BACKGROUND STYLES
*/
main {
background-image: linear-gradient(
to bottom right,
hsl(273, 75%, 66%),
hsl(240, 73%, 65%)
);
background-repeat: no-repeat;
width: 100%;
display: grid;
place-items: center;
min-height: 100vh;
align-content: center;
padding: 2rem;
}
.main {
background-color: white;
border-radius: 30px;
height: 100%;
width: min(100%, 50rem);
}
/*
FAQs SECTION OF CARD
*/
.faqs {
padding: 2rem;
width: 50%;
float: right;
height: 100%;
}
/*
IMAGE SECTION OF CARD
*/
.image {
width: 50%;
position: relative;
height: inherit;
float: left;
background: url('images/illustration-woman-online-desktop.svg') bottom 68px left -74px no-repeat,
url('images/bg-pattern-desktop.svg') bottom -159px left -570px no-repeat;
}
.image::before {
content: "";
position: absolute;
bottom: 134px;
left: -90px;
background: url('images/illustration-box-desktop.svg') no-repeat;
width: 191px;
height: 156px;
}
button {
width: 100%;
background-color: transparent;
border: none;
display: flex;
justify-content: space-between;
cursor: pointer;
}
button:hover {
transition: all 0.3s ease-in-out;
color: hsl(14, 88%, 65%);
}
.answer {
padding-top: 1rem;
color: hsl(240, 6%, 50%);
font-size: 12px;
display: none;
opacity: 0;
transition: all 0.3s ease-in-out;
}
.arrow {
transition: transform 0.3s ease-in-out;
align-self: center;
object-fit: contain;
width: 0.75rem;
margin-left: 0.75rem;
user-select: none;
pointer-events: none;
}
.faqs h1 {
margin-bottom: 1rem;
}
.faq-item {
padding: 20px 0;
border-bottom: 1px solid gray;
margin-bottom: 10px;
}
.faq-item.active .answer {
display: block !important;
opacity: 1 !important;
}
.faq-item.active .question {
color: black;
}
.faq-item.active .arrow {
transform: rotate(180deg);
}
.faq-item button {
outline: none;
}
.question {
font-size: 13px;
font-weight: bold;
color: var(--Dark-grayish-blue);
}
/*
MEDIA QUERY
MOBILE VIEW STYLES
*/
@media (max-width: 50rem) {
.image {
display: none;
}
.faqs {
width: 100%;
}
}