-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
95 lines (78 loc) · 1.89 KB
/
styles.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
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;600;700&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root{
--white: hsl(0, 0%, 100%);
--light-pink: hsl(275, 100%, 97%);
--grayish-purple: hsl(292, 16%, 49%);
--dark-purple: hsl(292, 42%, 14%);
}
body {
font-family: 'Work Sans', sans-serif;
background: url(images/background-pattern-desktop.svg) no-repeat var(--light-pink);
background-size: 100%;
min-height: 100vh;
display: grid;
place-content: center;
}
img, svg{
max-width: 100%;
display: block;
}
button{
cursor: pointer;
background-color: transparent;
width: 100%;
padding: 1rem 0;
font-size: 1.1rem;
font-weight: 600;
text-align: left;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
border: 0;
}
button:hover{ color: purple; }
.container{
background-color: var(--white);
max-width: 800px;
padding: 1.5rem;
margin: 1rem;
border-radius: 1rem;
}
.faq-headline{
display: flex;
gap: 2rem;
}
.faq-headline h1{
font-size: 4rem;
font-weight: 700;
}
.accordion-container .accordion-item:not(:last-child){ border-bottom: 2px solid var(--light-pink); }
.accordion-item .icons img{ min-width: 30px; }
.accordion-item .icons .minus-icon{ display: none; }
.accordion-description{
background-color: var(--white);
max-height: 0;
overflow: hidden;
transition: max-height 200ms ease;
}
.accordion-description p{
color: var(--grayish-purple);
padding: 1.5rem 0;
}
.attribution { font-size: 15px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }
@media (max-width: 540px) {
body{
background-image: url(images/background-pattern-mobile.svg);
}
.faq-headline h1 {
font-size: 2.5rem;
margin-left: -15px;
}
}