summaryrefslogtreecommitdiffstats
path: root/app/common/styles/elements/accordion.scss
blob: 6f4c62e8846137479cc7bff906bfed4b1d9efe0d (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
41
42
43
44
45
46
47
48
49
50
51
52

// Accordion

.header__actions-bar {
  padding-top: 1em;
  padding-bottom: 1em;
  padding-right: 1em;
  background: $background-05;
  color: $primary-light;
  margin-left: 0;
  .event__actions {
    margin-right: 10px;
    margin-top: -6px;
    @include mediaQuery(medium) {
      margin-right: -40px;
    }
  }
  p {margin-bottom: 0;}
}

.accord-trigger {
  transform: rotate(90deg);
  font-size: 1.5em;
  color: $text-02;
  padding: .3em;
  display: block;
  margin: 0 auto;
  transition: all .2s ease;
  &:after {
    content: '\276F'
  }
  &.active {
    transform: rotate(-90deg);
  }
  &:focus {
    outline: 0;
    color: $primary-action;
  }
}

.accord-row {
  overflow: hidden;
  .accord-content.inactive {
    max-height: 0;
    height: 0;
  }
  .accord-content.active {
    height: auto;
    max-height: 1000px;
    @include fastTransition-all;
  }
}
OpenPOWER on IntegriCloud