aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/webapp/stylesheets/coding-rules.less
blob: 6a3358b90aab233e68b787b7d58b05aea8593d6e (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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
@import 'mixins';
@import 'variables';
@import 'navigator/config';


.coding-rules-page {

  .navigator-results .spinner {
    margin: @navigatorPadding;
  }

}



/*
 * Detail
 */

.coding-rules-detail-header,
.coding-rules-detail-title {
  margin-bottom: @navigatorPadding;
  line-height: 1.5;
  font-weight: bold;
}

.coding-rules-detail-title {
  display: inline-block;
  text-transform: uppercase;
}

.coding-rules-detail-status {
  padding: 3px 4px;
  background-color: @navigatorBarBackground;
  color: #777;
  font-size: @smallFontSize;
}

.coding-rules-detail-key {

}

.coding-rules-detail-properties {
  margin: @navigatorPadding 0;
  font-size: 0;
}

.coding-rules-detail-property {
  display: inline-block;
  vertical-align: middle;
  font-size: @smallFontSize;
  height: 22px;
  line-height: 22px;

  .select2-search-field { line-height: 1; }
}

.coding-rules-detail-property + .coding-rules-detail-property {
  margin-left: 2 * @navigatorPadding;
}

.coding-rules-detail-tag + .coding-rules-detail-tag {
  margin-left: @navigatorPadding;
}

.coding-rules-detail-description {
  margin: 2 * @navigatorPadding 0;
}

.coding-rules-detail-description-extra {
  margin-top: -@navigatorPadding;
}

.coding-rules-detail-parameters {
  margin: @navigatorPadding 0 @navigatorPadding * 2;
}

.coding-rules-detail-parameter {
  margin: @navigatorPadding 0;
  font-size: 0;
}

.coding-rules-detail-parameter-name {
  display: inline-block;
  visibility: top;
  width: 150px;
  font-size: @baseFontSize;
  font-weight: bold;
  text-align: right;
}

.coding-rules-detail-parameter-description {
  display: inline-block;
  vertical-align: top;
  margin-left: 2 * @navigatorPadding;
  font-size: @baseFontSize;
}


// Quality Profiles
.coding-rules-detail-quality-profiles-header {
  margin-top: 3 * @navigatorPadding;
}

.coding-rules-detail-quality-profiles {
  font-size: 0;
}

.coding-rules-detail-quality-profile {
  border: 1px solid transparent;

  &.active {
    border-color: @highlighted;

    .coding-rules-detail-quality-profile-name {
      background-color: @highlighted;
      color: #fff;
    }
  }
}

.coding-rules-detail-quality-profile + .coding-rules-detail-quality-profile {
  margin-top: 2 * @navigatorPadding;
}

.coding-rules-detail-quality-profile-name {
  padding: @navigatorPadding / 2;
  background-color: @navigatorBarBackground;
  line-height: 1;
  font-weight: bold;
}

.coding-rules-detail-quality-profile-actions {
  padding: @navigatorPadding / 2;
}

.coding-rules-detail-quality-profile-parameters {
  padding: 0 @navigatorPadding / 2;

  .coding-rules-detail-parameter-name,
  .coding-rules-detail-parameter-description {
    vertical-align: middle;
  }

  .coding-rules-detail-parameter-description input {
    width: 200px;
  }
}

.coding-rules-detail-quality-profile-inheritance {
  margin: @navigatorPadding 0;
  padding: 0 @navigatorPadding / 2;

  strong { font-weight: bold; }
}

.coding-rules-detail-quality-profile-note {
  margin: @navigatorPadding 0;
  padding: 0 @navigatorPadding / 2;
}

.coding-rules-detail-quality-profiles-activation {
  margin-top: -3px;
  margin-left: @navigatorPadding;
}