aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/less/quality-gates.less
blob: 070216d1b21aef108cecffaade17dbc265e1f2b8 (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
@import (reference) "variables";
@import (reference) "mixins";
@import (reference) "navigator/config";

@qualityGateSidebarWidth: 230px;

.quality-gates-navigator {

  .navigator-side {
    display: table-cell;
    vertical-align: top;
    width: @qualityGateSidebarWidth + 2 * @navigatorPadding;
    min-width: 0;
  }

  .navigator-header {
    margin-left: 0;
    .spinner { margin-top: 9px; }
  }

  .navigator-actions {
    height: @navigatorHeaderHeight;
    width: @qualityGateSidebarWidth;
    margin: @navigatorPadding;
    padding: 0 @navigatorPadding;

    .navigator-header-title {
      color: @baseFontColor;
      font-size: 13px;
      font-weight: bold;
      text-transform: uppercase;
    }
  }

  .navigator-results {
    width: @qualityGateSidebarWidth;
    min-width: 0;
  }

  .navigator-details { margin-left: 0; }

}


.quality-gates-nav {

  .navigator-results-list {

    & > li {
      border-color: transparent;

      &:hover:not(.active):not(.empty) {
        background-color: @navigatorBarBackground;
      }

      &.active {
        border-color: #4B9FD5;
      }

      &.empty {
        cursor: default;
      }

      .line {
        padding-top: 2px;
        padding-bottom: 2px;
      }

      .subtitle {
        text-transform: lowercase;
      }
    }
  } 
}


.quality-gate-section + .quality-gate-section {
  margin-top: @navigatorPadding;
  padding-top: 2 * @navigatorPadding;
}

.quality-gate-section-empty + .quality-gate-section {
  border-top: 1px solid @navigatorBorderLightColor;
}

.quality-gate-section-name {
  margin-bottom: @navigatorPadding;
  font-weight: bold;
  text-transform: uppercase;
}


.quality-gate-introduction {
  margin-bottom: 2 * @navigatorPadding;
}


.quality-gate-new-condition {
  margin-bottom: @navigatorPadding;
}

.quality-gate-condition-actions {
  position: relative;
}

.quality-gate-default-message {
  padding: 6px 5px;
  border: 1px solid #ddd;
  background-color: #efefef;
}

.quality-gate-conditions-wrap {
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

.quality-gate-conditions {
  & .deprecated {
    color: #777;
    text-transform: lowercase;
    font-variant: small-caps;
  }

  tbody {
    border-left: none !important;
    border-right: none !important;
  }
}