-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
135 lines (112 loc) · 2.68 KB
/
index.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
:root{
/* Colors */
--white: hsl(0, 0%, 100%);
--light-pink: hsl(275, 100%, 97%);
--grayish-purple: hsl(292, 16%, 49%);
--dark-purple: hsl(292, 42%, 14%);
}
*{
box-sizing: border-box;
margin: 0;
padding: 0;
}
body{
height: 100vh;
font-family: "Work Sans", sans-serif;
background-image: url(./assets/images/background-pattern-mobile.svg);
background-repeat: no-repeat;
background-size: contain;
background-color: var(--light-pink);
color: var(--dark-purple);
}
main{
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
h1{
font-weight: 700;
}
h2{
font-size: 16px;
font-weight: 600;
}
p{
font-size: 16px;
color: var(--grayish-purple);
font-weight: 400;
font-size: 14px;
line-height: 140%;
}
.accordion{
background-color: var(--white);
border-radius: 0.5rem;
padding: 1rem;
width: 20rem;
}
.accordion-heading{
display: flex;
align-items: center;
gap: 1rem;
}
.accordion-heading-icon{
width: 1.5rem;
}
.accordion-heading-title{
font-size: x-large;
}
.accordion-tile-content{
padding-bottom: 1rem;
}
.accordion-tile-content-wrapper{
transition: max-height 0.3s ease-out;
max-height: 0;
overflow: hidden;
}
.accordion-tile-heading{
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 1rem;
padding-bottom: 1rem;
}
.accordion-tile-heading-title:hover{
color: var(--grayish-purple);
cursor: pointer;
}
.accordion-tile-heading-minus-icon, .accordion-tile-heading-plus-icon{
flex-shrink: 0;
}
.accordion-tiles div.accordion-tile{
border-bottom: 2px solid var(--light-pink);
}
.accordion-tiles div.accordion-tile:last-child{
border-bottom: none;
}
.accordion-tile[data-status="hidden"] .accordion-tile-heading .accordion-tile-heading-minus-icon{
display: none;
}
.accordion-tile[data-status="hidden"] .accordion-tile-heading .accordion-tile-heading-plus-icon{
display: inline;
}
.accordion-tile[data-status="visible"] .accordion-tile-heading .accordion-tile-heading-minus-icon{
display: inline;
}
.accordion-tile[data-status="visible"] .accordion-tile-heading .accordion-tile-heading-plus-icon{
display: none;
}
@media (min-width: 375px) {
body{
height: 100vh;
font-family: "Work Sans", sans-serif;
background-image: url(./assets/images/background-pattern-desktop.svg);
background-repeat: no-repeat;
background-size: contain;
background-position-y: -1px;
background-position-x: 0px;
background-color: var(--light-pink);
color: var(--dark-purple);
}
}