summaryrefslogtreecommitdiff
path: root/src/assets/styles/bmc/_sila/_dropdown.scss
blob: 983d8bdd454549888f2334f0007f43ae31059883 (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
// Make calendar visible over the table
.dropdown-menu {
  z-index: $zindex-dropdown + 1;
  padding: $spacer / 2;
  border-radius: $border-radius;
  @include themify($themes) {
    background-color: themed("dropdown-bg");
    border: 1px solid themed("dropdown-border");
  }
}

.dropdown-item {
  padding: $spacer / 4 $spacer / 2;
  margin: $spacer / 4;
  width: auto;
  border-radius: $border-radius;
  @include themify($themes) {
    color: themed("text-primary");
  }
  &:hover {
      background-color: $red-dropdown-hover;
  }
  &:active {
    background-color: $red-active;
  }
  &:focus {
    outline: none;
    background-color: $red-click;
    box-shadow: inset 0 0 0 2px theme-color("primary");
  }
}

.b-dropdown-form {
  padding: $spacer/2;
  .form-group {
    margin-bottom: $spacer/2;
  }
}

// Table filter dropdown clear button style
.table-filter {
  .dropdown-item {
    &:hover {
      background-color: gray("200");
    }
    &:active {
      background-color: gray("300");
    }
    &:focus {
      outline: none;
      background-color: transparent;
      @include themify($themes) {
        box-shadow: inset 0 0 0 2px theme-color("primary");
      }
    }
  }
}