summaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/less/components/measures.less
blob: a49a2c31004ade2ed9ecb4cb8848e1e530e6da94 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
@import (reference) "../variables";
@import (reference) "../mixins";
@import (reference) "ui";


.measures {

}

.measures + .measures {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid @barBorderColor;
}

.measures-duplex {
  font-size: 0;
  .justify;

  .measures-list {
    display: inline-block;
    vertical-align: top;
    width: 40%;
    font-size: @baseFontSize;
  }
}

.measures-chart {
  display: inline-block;
  vertical-align: middle;
  width: 70px;
  margin-right: 20px;
  text-align: center;

  .rating {
    font-size: 32px;
  }
}

.measure {
  line-height: 1.3333333333333;
}

.measure + .measure {

}

.measure-name {
  display: block;
  font-size: @baseFontSize;
}

.measure-value {
  color: @darkBlue;
  font-size: @bigFontSize;
  font-weight: 300;
}

.measure-bar {
  display: inline-block;
  width: 60px;
}

.measure-bar-inner {
  display: block;
  min-width: 1px;
  height: 5px;
  background-color: #c0c0c0;
}
.measure-bar-inner-BLOCKER {
  background-color: @severityBlockerColor;
}
.measure-bar-inner-CRITICAL {
  background-color: @severityCriticalColor;
}
.measure-bar-inner-MAJOR {
  background-color: @severityMajorColor;
}
.measure-bar-inner-MINOR {
  background-color: @severityMinorColor;
}
.measure-bar-inner-INFO {
  background-color: @severityInfoColor;
}

.measure-big {
  display: inline-block;
  vertical-align: middle;

  .measure-name {
    font-size: 16px;
    font-weight: 300;
  }

  .measure-value {
    font-size: 22px;
    font-weight: 300;
  }

  .rating {
    font-size: 22px;
  }
}

.measure-big + .measure-big {
  margin-left: 20px;
}

.measure-one-line {
  .justify;

  .measure-name {
    display: inline-block;
  }

  .measure-value {
    display: inline-block;
    text-align: right;
  }
}

.measure-with-bar {
  font-size: 0;

  .measure-name {
    width: 40%;
  }

  .measure-value {
    width: 20%;
  }

  .measure-bar {
    width: 30%;
  }
}