summaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/less/dsm.less
blob: dfad4b98a07918c38b7bc43c0ee550de0a35e69b (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
@import (reference) 'variables';
@import (reference) 'mixins';
@import (reference) 'ui';

@cellSize: 22px;

.dsm {

}


.dsm-legend {
  margin: 10px 0;

  & > li {
    display: inline-block;
  }

  & > li + li {
    margin-left: 20px;
  }
}

.dsm-legend-square {
  display: inline-block;
  vertical-align: middle;
  .size(14px, 14px);

  &.gray { background-color: @grey; }
  &.red { background-color: @red; }
  &.green { .dsm-usage-mixin; }
  &.blue { background-color: @blue; }
  &.yellow { .dsm-dependency-mixin; }
}

.dsm-legend-label {
  display: inline-block;
  vertical-align: middle;
  font-size: @baseFontSize;
}


.dsm-body td {
  border: 1px solid @barBorderColor;
}


.dsm-body-title {
  position: relative;
  vertical-align: middle;
  padding: 2px 15px 2px 4px;
  border-right: 2px solid darken(@barBorderColor, 8%) !important;
  color: @baseFontColor;
  cursor: pointer;
  white-space: nowrap;
  .link-no-underline;
  .trans(background-color);

  &:hover { background-color: @barBackgroundColor; }
}

.dsm-body-cell {
  min-width: 23px;
  padding: 2px 4px;
  .box-sizing(border-box);
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  .trans(background-color);
}

.dsm-body-cell-dependency {
  background-color: @grey;
}

.dsm-body-cell-cycle {
  background-color: @red !important;
  color: #fff !important;
}


.dsm-body-highlighted {
  background-color: #dff2fd;

  &:hover { background-color: #dff2fd; }
}

.dsm-body-usage, .dsm-body-usage:hover { .dsm-usage-mixin; }
.dsm-body-dependency, .dsm-body-dependency:hover { .dsm-dependency-mixin; }


.dsm-usage-mixin() {
  background-color: #e2ffbe;
}

.dsm-dependency-mixin() {
  background-color: #fde9cc;
}


.dsm-info {
  margin-top: 25px;

  th {
    padding: 2px 5px 7px;
    font-weight: 500;
  }

  td {
    padding: 2px 5px;

    &.changed { padding-top: 7px; }
  }
}

.dsm-body-title-package-tangles {
  float: right;
  margin: 0 -10px 0 10px;
  padding: 2px 5px;
  border-radius: 20px;
  background: @red;
  font-size: @smallFontSize;
  color: #fff;
}