Summary Files Commits Branches @commit @diff @stats
path: root / src / menus.less
blob: cb6969065e421532c15a1efe8d2d1c07310820aa (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
// Menus
.menu {
  display: block;
  width: auto;
  text-align: left;
  margin: 0;
  padding: 1rem;
  border-radius: 3px;
  background-color: #fff;
  z-index: 999;
  .shadow;

  .menu-item {
    display: block;
    padding: .2rem 1rem;
    margin-top: 0;
    border-radius: 3px;
    color: @body-font-color;
    line-height: 2.4rem;
    text-decoration: none;
    user-select: none;

    a {
      display: block;
      margin: -.2rem -1rem;
      padding: .2rem 1rem;
      border-radius: 3px;
      color: inherit;
      text-decoration: none;

      &:hover {
        background-color: @core-border-color;
      }
    }
  }

  .menu-header {
    display: block;
    padding: .2rem 1rem;
    margin-top: 0;
    font-size: 1.2rem;
    line-height: 1.8rem;
    color: lighten(@body-font-color, 60%);

    .menu-header-text {
      display: inline-block;
      padding: 0 .6rem;
      margin-left: -.6rem;
      background-color: #fff;
      position: relative;
      z-index: 99;
    }

    &:after {
      content: "";
      display: block;
      width: 100%;
      height: 1px;
      transform: translateY(-10px);
      border-bottom: 1px solid @core-border-color;
    }
  }

  .divider {
    display: block;
    border-bottom: 1px solid @core-border-color;
    margin: .5rem;
  }
}