Summary Files Commits Branches @commit @diff @stats
path: root / src / menus.less
blob: 99e5194d28155711e0661546be7cd1ade283e3ae (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// Menus
.menu {
  background: @light-bg-color;
  border-radius: @border-radius;
  list-style: none;
  margin: 0;
  min-width: @control-min-width;
  padding: .8rem;
  .shadow;
  text-align: left;
  transform: translateY(.5rem);
  z-index: 999;

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

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

  .menu-header {
    color: @light-gray-color;
    font-size: 1.2rem;
    line-height: 2rem;
    margin-top: 0;
    padding: .2rem 0;
    position: relative;

    &::after {
      border-bottom: .1rem solid @border-color;
      content: "";
      display: block;
      height: .1rem;
      position: absolute;
      top: 50%;
      width: 100%;
    }

    .menu-header-text {
      background: @light-bg-color;
      display: inline-block;
      padding: 0 .8rem;
      position: relative;
      z-index: 99;
    }
  }

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

    .label {
      margin: .2rem 0;
    }
  }
}