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

  .menu-item {
    margin-top: 0;
    padding: 0 .8rem;
    text-decoration: none;
    user-select: none;

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

  .menu-badge {
    float: right;
    padding: .6rem 0;

    .btn {
      margin-top: -.2rem;
    }
  }
}