summaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/less/components/rules.less
blob: 3ca1bb28115423b4262824856311ef97f9b0d9f8 (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
@import (reference) "../variables";
@import (reference) "../mixins";
@import (reference) "ui";

@leftPadding: 10px;
@rightPadding: 10px;
@topPadding: 8px;
@bottomPadding: 8px;
@lineHeight: @baseFontSize * 1.5;

.coding-rule {
  padding: @topPadding @rightPadding @bottomPadding @topPadding;
  border: 1px solid transparent;
  background-color: #fff;

  &.selected {
    border-color: @blue !important;
  }
}

.coding-rule + .coding-rule {
  border-top-color: @barBorderColor;
}

.coding-rule.selected + .coding-rule {
  border-top-color: transparent;
}

.coding-rule-table {
  width: 100%;

  td {
    vertical-align: top;
  }
}

.coding-rule-table + .coding-rule-table {
  margin-top: 5px;
}

.coding-rule-table-meta-cell {
  width: 1px;
  white-space: nowrap;
}

.coding-rule-title {
  line-height: @lineHeight;
  font-size: @baseFontSize;
}

.coding-rule-meta {
  padding-left: 30px;
  line-height: @lineHeight;
  font-size: @smallFontSize;

  .icon-tags:before {
    color: @secondFontColor;
    font-size: @smallFontSize;
  }

  .js-tag:after {
    content: ",";
  }

  .js-tag:last-child:after {
    content: "";
  }
}

.coding-rule-activation {
  width: 40px;
  line-height: @lineHeight;
}

.coding-rule-activation-actions {
  padding-left: 20px;
}

.coding-rule-section-separator {
  height: 10px;
  margin: 0 -10px;
  border-top: 1px solid @barBorderColor;
  border-bottom: 1px solid @barBorderColor;
  background-color: @barBackgroundColor;
}