summaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/less/components/menu.less
blob: 0b78b90f030ef19b7f0c7acc5507dac46e9e3e89 (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
@import (reference) "../mixins";
@import (reference) "../variables";
@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: 3px 20px;
    line-height: 1.5;
    clear: both;
    font-weight: normal;
    .text-ellipsis;
  }

  > li > a {
    color: @baseFontColor;
  }

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


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


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