aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/less/init/misc.less
blob: b766304822a30289d311399619365d9dfbfc6f8b (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
/*
 * SonarQube, open source software quality management tool.
 * Copyright (C) 2008-2014 SonarSource
 * mailto:contact AT sonarsource DOT com
 *
 * SonarQube is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * SonarQube is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
@import (reference) "../variables";
@import (reference) "../mixins";
@import (reference) "../components/ui";

.vertical-top    { vertical-align: top; }
.vertical-bottom { vertical-align: bottom; }
.vertical-middle { vertical-align: middle; }

.nowrap { white-space: nowrap; }

.hidden {
  display: none !important;
  visibility: hidden !important;
}

.note {
  color: @secondFontColor;
  font-size: @smallFontSize;
  font-weight: 300;
}

.spacer-left   { margin-left: 8px; }
.spacer-right  { margin-right: 8px; }
.spacer-bottom { margin-bottom: 8px; }
.spacer-top    { margin-top: 8px; }

.little-spacer-left   { margin-left: 4px; }
.little-spacer-right  { margin-right: 4px; }
.little-spacer-bottom { margin-bottom: 4px; }
.little-spacer-top    { margin-top: 4px; }

td.spacer-left   { padding-left: 8px; }
td.spacer-right  { padding-right: 8px; }
td.spacer-bottom { padding-bottom: 8px; }
td.spacer-top    { padding-top: 8px; }

.pull-left  { float: left !important; }
.pull-right { float: right !important; }

.bordered        { border: 1px solid @barBorderColor; }
.bordered-left   { border-left: 1px solid @barBorderColor; }
.bordered-right  { border-right: 1px solid @barBorderColor; }
.bordered-bottom { border-bottom: 1px solid @barBorderColor; }
.bordered-top    { border-top: 1px solid @barBorderColor; }

.width-100 { width: 100%; }
.width-80 { width: 80%; }
.width-60 { width: 60%; }
.width-55 { width: 55%; }
.width-50 { width: 50%; }
.width-40 { width: 40%; }
.width-20 { width: 20%; }
.width-15 { width: 15%; }

.abs-width-400 { width: 400px; }

.justify {
  margin-bottom: -1em;
  text-align: justify;

  & > .ib { display: inline-block; }
  &:after { display: inline-block; width: 100%; content: " "; }
}

.first-letter-uppercase::first-letter {
  text-transform: uppercase;
}

.disabled-pointer-events {
  pointer-events: none !important;
}

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


// Background Color

.bg-variant(@color) {
  background-color: @color;
  color: #fff;
}

.bg-danger  { .bg-variant(@red); }
.bg-warning { .bg-variant(@orange); }
.bg-info    { .bg-variant(@blue); }
.bg-success { .bg-variant(@green); }