aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/less/components/menu.less
blob: 8ca4e6f4a2aa64bb21f22c57185b5e72ec13fcb5 (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
52
53
54
55
56
57
58
59
60
61
62
@import (reference) "../mixins";
@import (reference) "../variables";
@import (reference) "../init/links";
@import (reference) "../init/type";
@import (reference) "ui";

.menu {
  min-width: 160px;
  padding: 5px 0;
  list-style: none;
  font-size: @smallFontSize;
  text-align: left;
  background-color: #fff;
  background-clip: padding-box;

  > li > a,
  > li > span {
    display: block;
    padding: 4px 16px;
    line-height: 16px;
    clear: both;
    font-weight: normal;
    .text-ellipsis;
  }

  > li > a {
    color: @baseFontColor;
    .link-no-underline;
    transition: none;
  }

  .divider {
    height: 1px;
    margin: 9px 0;
    overflow: hidden;
    background-color: @barBorderColor;
  }

  > li > a {
    &:hover, &:focus {
      text-decoration: none;
      color: @baseFontColor;
      background-color: @barBackgroundColor;
    }
  }

  > .active > a,
  > li > .active {
    &, &:hover, &:focus {
      color: @baseFontColor;
      text-decoration: none;
      outline: 0;
      background-color: @barBackgroundColor;
    }
  }
}

.menu-search {
  padding: 4px 16px 0;

  .search-box-input { font-size: @smallFontSize; }
}