Welcome to mirror list, hosted at ThFree Co, Russian Federation.

menus.less « src - github.com/picturepan2/spectre.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2533c99d9274d164dc9c384256363e2e6ae863f6 (plain)
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
// 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(1px);
  transform: translateY(@layout-spacing-sm);
  z-index: @zindex-1;

  &.menu-nav {
    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: @unit-1 -@unit-2;
      padding: 4px 8px;
      text-decoration: none;
      &:focus,
      &:hover {
        background: @secondary-color-light;
        color: @primary-color;
      }
      &:active,
      &.active {
        background: @secondary-color;
        color: @primary-color;
      }
    }
  }

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

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