-
Notifications
You must be signed in to change notification settings - Fork 0
/
_questions.scss
68 lines (65 loc) · 1.48 KB
/
_questions.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
/*=============== QUESTIONS ===============*/
.questions{
background-color: var(--first-color-lighten);
&__container{
gap: 1.5rem;
padding: 1.5rem 0;
}
&__group{
display: grid;
row-gap: 1.5rem;
}
&__item{
background-color: var(--container-color);
border-radius: .25rem;
&:hover{
box-shadow: 0 2px 8px hsla(var(--hue), 4%, 15%, .15);
}
}
&__item-title{
font-size: var(--small-font-size);
font-weight: var(--font-medium);
}
&__icon{
font-size: 1.25rem;
color: var(--title-color);
}
&__description{
font-size: var(--smaller-font-size);
padding: 0 1.25rem 1.25rem 2.5rem;
}
&__header{
display: flex;
align-items: center;
column-gap: .5rem;
padding: .75rem .5rem;
cursor: pointer;
}
&__content{
overflow: hidden;
height: 0;
}
&__item,
&__header,
&__item-title,
&__icon,
&__description,
&__content{
transition: .3s;
}
}
/*Rotate icon and add font weight to titles*/
.accordion-open{
& .questions__header,
& .questions__content{
background-color: var(--first-color);
}
& .questions__item-title,
& .questions__description,
& .questions__icon{
color: #FFF;
}
& .questions__icon{
transform: rotate(45deg);
}
}