aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/app/styles/style.css
blob: 5a2c6881dfa27897db829f9a5f5ada9a8f782eca (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
166
167
168
169
170
171
172
/*
 * SonarQube
 * Copyright (C) 2009-2024 SonarSource SA
 * mailto:info AT sonarsource DOT com
 *
 * This program 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.
 *
 * This program 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.
 */

.rule-desc,
.markdown {
  line-height: 1.5;
}

.rule-desc p,
.markdown p,
.rule-desc ul,
.markdown ul,
.rule-desc ol,
.markdown ol,
.rule-desc pre,
.markdown pre,
.rule-desc blockquote,
.markdown blockquote,
.rule-desc table,
.markdown table,
.rule-desc h2,
.markdown h2,
.rule-desc h3,
.markdown h3,
.rule-desc h4,
.markdown h4,
.rule-desc h5,
.markdown h5,
.rule-desc h6,
.markdown h6 {
  margin: 1em 0;
}

.markdown h2 {
  font-size: 16px;
  font-weight: 400;
}

.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
  font-size: 13px;
  font-weight: 600;
}

.rule-desc h2 {
  font-size: 22px;
  font-weight: 500;
  border-bottom: 1px solid #e6e6e6;
  line-height: 2rem;
  margin-top: 32px;
  margin-bottom: 16px;
}

.rule-desc *:first-child {
  margin-top: 0;
}

.rule-desc h3 {
  font-size: 18px;
  font-weight: 700;
}
.rule-desc h4 {
  font-size: 16px;
  font-weight: 500;
}

.rule-desc h5,
.rule-desc h6 {
  font-size: 13px;
  font-weight: 600;
}

.rule-desc pre,
.markdown pre,
.rule-desc code,
.markdown code {
  font-family: Consolas, 'Ubuntu Mono', 'Liberation Mono', Menlo, Courier, monospace;
  font-size: 12px;
}

.rule-desc pre,
.markdown pre {
  background-color: #f5f5f5;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  padding: calc(2 * 8px);
  margin-top: 0;
  margin-bottom: 0;
  overflow-x: auto;
}

.rule-desc code,
.markdown code,
code.rule {
  padding: 0.2em 0.45em;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  white-space: nowrap;
}

.rule-desc pre > code,
.markdown pre > code {
  padding: 0;
  background-color: transparent;
  white-space: pre;
}

.rule-desc blockquote,
.markdown blockquote {
  line-height: 1.5;
  padding-left: 15px;
  padding-right: 15px;
}

.rule-desc ul,
.markdown ul {
  padding-left: 40px;
  list-style: disc;
}

.rule-desc li > ul,
.markdown li > ul {
  margin: 0.3em 0;
}

.rule-desc ol,
.markdown ol {
  padding-left: 40px;
  list-style: decimal;
}

.rule-desc table,
.markdown table {
  min-width: 50%;
  border-collapse: collapse;
  border: 1px solid #e6e6e6;
}

.rule-desc th,
.markdown th {
  padding: 5px 10px;
  border: 1px solid #e6e6e6;
  background-color: #f3f3f3;
  font-weight: 600;
  text-align: center;
}

.rule-desc td,
.markdown td {
  padding: 5px 10px;
  border: 1px solid #e6e6e6;
}