Summary Files Commits Branches @commit @diff @stats
path: root / src / menus.less
blob: 109dc92572c73c942aa351fa26763385b330094f (plain) (blame)
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
// Menus
.menu {
  background: @bg-color-light;
  border-radius: @border-radius;
  list-style: none;
  margin: 0;
  min-width: @control-min-width;
  padding: @unit-2;
  .shadow-variant(.05rem);
  transform: translateY(@layout-spacing-sm);
  z-index: @zindex-1;

  &.menu-nav {
    background: transparent;
    box-shadow: none;
  }

  .menu-item {
    margin-top: 0;
    padding: 0 @unit-2;
    text-decoration: none;
    user-select: none;

    & > a {
      border-radius: @border-radius;
      color: inherit;
      display: block;
      margin: 0 -@unit-2;
      padding: @unit-1 @unit-2;
      text-decoration: none;
      &:focus,
      &:hover {
        background: @secondary-color;
        color: @primary-color;
      }
      &:active,
      &.active {
        background: @secondary-color;
        color: @primary-color;
      }
    }

    & + .menu-item {
      margin-top: @unit-1;
    }
  }

  .menu-badge {
    float: right;
    padding: @unit-1 0;

    .btn {
      margin-top: -@unit-h;
    }
  }
}