summaryrefslogtreecommitdiffstats
path: root/app/common/styles/elements/accordion.scss
blob: ba6d2fde6c432365351a9326eecb63cb2f70db10 (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
53
54
55
56
57
58
59
60
61
62

// Accordion

#header__actions-bar {
  padding-top: 1em;
  padding-right: 1em;
  background: $darkpurple;
  color: $white;
  margin-left: 0;

  .event__actions {
    margin-top: 1em;
    margin-right: 10px;
    @include mediaQuery(medium) {
      margin-top: 0;
    }
    @include mediaQuery(large) {
      margin-right: -20px;
    }
  }

}

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

// Single event log card
.accord-row {
  position: relative;
  border-top: 1px solid $lightgrey;
  padding: 1em 1em 1em 0em;
  background: $white;
  overflow: hidden;
  &.active,
  &.selected {
    background: $lightblue;
  }
  &:hover {
    background: $lightblue;
  }
  &:last-child {
    border-bottom: 1px solid $lightgrey;
  }
}
OpenPOWER on IntegriCloud