summaryrefslogtreecommitdiff
path: root/dropdown.css
blob: c6d7d337a42d74d46408e420d1d688a561e6a37e (plain)
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
/** DROP DOWN MENU CSS */
.dropdown {
  width: 300px;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--gold);
  cursor: pointer;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.dropdown-arrow.open {
  transform: rotate(180deg);
}

.dropdown-content {
  overflow: hidden;
  max-height: 0;

  transition: max-height 0.3s ease;

  border-left: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.dropdown-content.open {
  max-height: 300px;
}

.dropdown-body {
  padding: 10px;
}