You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

styles.css 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2024 SonarSource SA
  4. * mailto:info AT sonarsource DOT com
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 3 of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public License
  17. * along with this program; if not, write to the Free Software Foundation,
  18. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19. */
  20. .coding-rules-extended-view .coding-rules-list {
  21. display: none;
  22. }
  23. .coding-rules-extended-view .coding-rules-details {
  24. display: block;
  25. }
  26. .coding-rules-similar-tag-divider {
  27. margin-top: 6px;
  28. border-top: 1px solid var(--barBorderColor);
  29. }
  30. .coding-rules-filter-title {
  31. padding: var(--gridSize);
  32. font-size: 12px;
  33. color: var(--neutral600);
  34. white-space: nowrap;
  35. line-height: unset;
  36. }
  37. /*
  38. * Detail
  39. */
  40. .coding-rules-detail-title {
  41. position: relative;
  42. display: inline-block;
  43. margin: 16px 0;
  44. font-size: 22px;
  45. font-weight: 500;
  46. border-bottom: 1px solid #e6e6e6;
  47. width: 100%;
  48. }
  49. .coding-rules-detail-quality-profile-parameter {
  50. display: block;
  51. height: 100%;
  52. padding-top: 0;
  53. padding-right: 10px;
  54. }
  55. .coding-rules-detail-quality-profile-parameter .key,
  56. .coding-rules-detail-quality-profile-parameter .value,
  57. .coding-rules-detail-quality-profile-parameter .sep {
  58. display: inline;
  59. vertical-align: top;
  60. }
  61. .coding-rules-detail-quality-profile-parameter .value {
  62. display: inline-block;
  63. vertical-align: top;
  64. line-height: 23px;
  65. max-width: 300px;
  66. white-space: nowrap;
  67. overflow: hidden;
  68. text-overflow: ellipsis;
  69. font-family: var(--sourceCodeFontFamily);
  70. }
  71. .coding-rules-detail-quality-profile-parameter + .coding-rules-detail-quality-profile-parameter {
  72. margin-top: 0;
  73. }
  74. .coding-rules-detail-header {
  75. font-size: var(--veryBigFontSize);
  76. }
  77. .coding-rules-detail-properties {
  78. display: flex;
  79. flex-wrap: wrap;
  80. align-items: center;
  81. margin-top: var(--gridSize);
  82. }
  83. .coding-rules-detail-properties + .coding-rules-detail-properties {
  84. margin-top: -10px;
  85. }
  86. .coding-rules-detail-property {
  87. display: flex;
  88. align-items: center;
  89. margin-right: var(--gridSize);
  90. margin-bottom: var(--gridSize);
  91. font-size: var(--smallFontSize);
  92. }
  93. .coding-rules-detail-property.muted {
  94. color: var(--neutral200);
  95. }
  96. .coding-rules-detail-tag + .coding-rules-detail-tag {
  97. margin-left: 10px;
  98. }
  99. .coding-rules-detail-tags-change {
  100. cursor: pointer;
  101. }
  102. .coding-rules-detail-tags-change:hover span {
  103. text-decoration: underline;
  104. }
  105. .coding-rules-detail-tag-edit {
  106. line-height: 1;
  107. }
  108. .coding-rules-details-tag-edit-cancel {
  109. vertical-align: middle;
  110. }
  111. .coding-rules-detail-description {
  112. margin: 20px 0;
  113. }
  114. .coding-rules-detail-extend-description-form {
  115. margin: 10px 0;
  116. }
  117. .coding-rules-detail-parameters {
  118. width: 100%;
  119. margin: 10px 0 20px;
  120. }
  121. .coding-rules-detail-parameter-name {
  122. width: 1px;
  123. vertical-align: top;
  124. padding: 5px 10px 5px 0;
  125. font-weight: bold;
  126. }
  127. .coding-rules-detail-parameter-description {
  128. vertical-align: top;
  129. padding: 5px 5px;
  130. }
  131. .coding-rules-detail-parameter-value {
  132. font-family: var(--sourceCodeFontFamily);
  133. word-break: break-all;
  134. }
  135. .coding-rules-detail-quality-profiles,
  136. .coding-rules-detail-list {
  137. width: 100%;
  138. line-height: 22px;
  139. }
  140. .coding-rules-detail-quality-profiles td,
  141. .coding-rules-detail-list td {
  142. border-top: 1px solid var(--barBorderColor);
  143. }
  144. .coding-rules-detail-quality-profiles tr:first-child td,
  145. .coding-rules-detail-list tr:first-child td {
  146. border-top: none;
  147. }
  148. .coding-rules-detail-quality-profile-name,
  149. .coding-rules-detail-list-name {
  150. vertical-align: top;
  151. width: 1px;
  152. padding: 8px 5px 8px 0;
  153. font-weight: 600;
  154. white-space: nowrap;
  155. }
  156. .coding-rules-detail-quality-profile-severity,
  157. .coding-rules-detail-list-severity {
  158. vertical-align: top;
  159. width: 1px;
  160. padding: 8px 5px;
  161. white-space: nowrap;
  162. }
  163. .coding-rules-detail-quality-profile-severity i {
  164. margin-top: 2px;
  165. }
  166. .coding-rules-detail-quality-profile-parameters,
  167. .coding-rules-detail-list-parameters {
  168. vertical-align: top;
  169. padding: 8px 5px;
  170. }
  171. .coding-rules-detail-quality-profile-actions,
  172. .coding-rules-detail-list-actions {
  173. vertical-align: top;
  174. width: 1px;
  175. padding: 8px 0 8px 5px;
  176. text-align: right;
  177. white-space: nowrap;
  178. }
  179. .coding-rules-detail-quality-profile-inheritance {
  180. font-size: var(--smallFontSize);
  181. font-weight: normal;
  182. }
  183. .coding-rules-detail-quality-profiles-activation {
  184. margin-top: -3px;
  185. margin-left: 10px;
  186. }
  187. .coding-rules-most-violated-projects td {
  188. border-top-color: transparent;
  189. }
  190. .coding-rules-most-violated-projects tr:first-child + tr td {
  191. border-top-color: var(--barBorderColor);
  192. }
  193. .coding-rules-most-violated-projects .coding-rules-detail-list-name {
  194. font-weight: 400;
  195. }
  196. .coding-rule {
  197. padding: 8px 10px 8px 8px;
  198. border: 1px solid transparent;
  199. background-color: #fff;
  200. }
  201. .coding-rule.selected {
  202. border-color: var(--blue) !important;
  203. }
  204. .coding-rule + .coding-rule {
  205. border-top-color: var(--barBorderColor);
  206. }
  207. .coding-rule.selected + .coding-rule {
  208. border-top-color: transparent;
  209. }
  210. .coding-rule-table {
  211. width: 100%;
  212. }
  213. .coding-rule-table td {
  214. vertical-align: middle;
  215. }
  216. .coding-rule-table + .coding-rule-table {
  217. margin-top: 5px;
  218. }
  219. .coding-rule-table-meta-cell {
  220. width: 1px;
  221. white-space: nowrap;
  222. }
  223. @media (max-width: 1320px) {
  224. .coding-rule-table .tags-list span {
  225. max-width: 100px;
  226. }
  227. }
  228. .coding-rule-title {
  229. line-height: calc(2.5 * var(--gridSize));
  230. font-size: var(--baseFontSize);
  231. }
  232. .coding-rule-meta {
  233. padding: calc(0.25 * var(--gridSize));
  234. padding-left: 30px;
  235. font-size: var(--smallFontSize);
  236. }
  237. .coding-rule-activation {
  238. width: 40px;
  239. line-height: 19.5px;
  240. }
  241. .coding-rule-activation-actions {
  242. padding-left: 20px;
  243. }
  244. .notice-dot {
  245. height: var(--gridSize);
  246. width: var(--gridSize);
  247. background-color: var(--blue);
  248. border-radius: 50%;
  249. display: inline-block;
  250. margin-left: var(--gridSize);
  251. }