-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.scss
91 lines (76 loc) · 1.76 KB
/
style.scss
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
//Font
@import url("https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@400;700&display=swap");
$primary-ff: "Kumbh Sans", sans-serif;
// Color
$dark-desaturated-blue: hsl(238, 29%, 16%);
$soft-red: hsl(14, 88%, 65%);
$soft-violet: hsl(273, 75%, 66%);
$soft-blue: hsl(240, 73%, 65%);
$very-dark-grayish-blue: hsl(237, 12%, 33%);
$dark-grayish-blue: hsl(240, 6%, 50%);
$light-grayish-blue: hsl(240, 5%, 91%);
*,
*::before,
*::after {
font-family: $primary-ff;
margin: 0;
padding: 0;
box-sizing: border-box;
font-size: 12px;
color: $dark-grayish-blue;
}
h1 {
font-size: 2rem;
color: $very-dark-grayish-blue;
}
// Style
.container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-image: linear-gradient(180deg, $soft-violet, $soft-blue);
.component {
width: 90%;
background-color: white;
border-radius: 1.5rem;
.head-image {
display: flex;
justify-content: center;
margin-top: -35%;
img {
max-width: 80%;
}
}
.faq-container {
padding: 1rem 2rem 4rem 2rem;
> h1 {
text-align: center;
margin: 1.5rem 0;
}
.accordion-item {
border-bottom: solid 1px $light-grayish-blue;
.accordion-head {
display: flex;
justify-content: space-between;
padding: 1rem 1rem 0 1rem;
font-weight: 400;
overflow: hidden;
&:hover {
font-weight: 700;
cursor: pointer;
}
}
.accordion-content {
visibility: hidden;
// display: none;
max-height: 0;
overflow: hidden;
padding: 1rem;
transition: all 500ms ease-in-out;
}
}
}
}
}
// Animation