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

  .menu-item {
    display: block;
    padding: .2rem 1rem;
    margin-top: .1rem;
    border-radius: .3rem;
    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: .3rem;
      color: inherit;
      text-decoration: none;

      &:hover,
      &:focus {
        color: @core-link-color;
      }
      &:active,
      &.active {
        color: darken(@core-link-color, 5%);
        background-color: lighten(@core-color, 40%);
      }
    }
  }

  .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: .1rem;
      transform: translateY(-1rem);
      border-bottom: .1rem solid @core-border-color;
    }
  }

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