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 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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. .overview {
  21. animation: fadeIn 0.5s forwards;
  22. }
  23. /*
  24. * Measures
  25. */
  26. .overview-measures-row {
  27. min-height: 105px;
  28. box-sizing: border-box;
  29. }
  30. .overview-measures-row + .overview-measures-row {
  31. border-top: 1px solid var(--barBorderColor);
  32. }
  33. .overview-measures-value {
  34. line-height: 1;
  35. font-size: var(--giganticFontSize);
  36. white-space: nowrap;
  37. }
  38. .overview-measures-empty-value {
  39. height: 1px;
  40. width: var(--bigFontSize);
  41. background: var(--baseFontColor);
  42. }
  43. .overview-measures-aside {
  44. flex-basis: 200px;
  45. box-sizing: border-box;
  46. }
  47. .overview-measures-tab {
  48. width: calc(160px - calc(4 * var(--gridSize)));
  49. }
  50. .overview-measures-emphasis {
  51. background: var(--veryLightGreen);
  52. }
  53. .overview-quality-gate-conditions-list {
  54. background-color: white;
  55. }
  56. .overview-quality-gate-condition,
  57. .overview-quality-gate-condition:hover {
  58. display: block;
  59. color: var(--baseFontColor);
  60. border: none;
  61. transition: background-color 0.3s ease;
  62. }
  63. .overview-quality-gate-condition:hover {
  64. background-color: var(--rowHoverHighlight);
  65. }
  66. /*
  67. * Animations
  68. */
  69. @keyframes fadeIn {
  70. from {
  71. opacity: 0;
  72. }
  73. to {
  74. opacity: 1;
  75. }
  76. }
  77. /*
  78. * PRs and SLBs
  79. */
  80. .pr-overview {
  81. max-width: 1020px;
  82. margin: 0 auto;
  83. }
  84. .pr-overview.has-conditions {
  85. max-width: 1260px;
  86. }
  87. .pr-overview .overview-quality-gate-condition:first-of-type {
  88. margin-top: 0;
  89. }
  90. .pr-overview .overview-quality-gate-condition {
  91. margin-top: 12px;
  92. background-color: #fff;
  93. border-left: 5px solid;
  94. border-top-right-radius: 2px;
  95. border-bottom-right-radius: 2px;
  96. }
  97. .pr-overview .overview-quality-gate-condition-error {
  98. border-color: var(--red);
  99. }
  100. .pr-overview .overview-quality-gate-condition-warn {
  101. border-color: var(--orange);
  102. }
  103. .pr-pverview .overview-measures-row {
  104. min-height: 85px;
  105. }
  106. .pr-overview .overview-measures-aside {
  107. flex-basis: 270px;
  108. }
  109. @media (max-width: 1200px) {
  110. .pr-overview .overview-measures-aside {
  111. flex-basis: 220px;
  112. }
  113. }
  114. /*
  115. * ACTIVITY
  116. */
  117. .overview-panel .activity-graph-legends {
  118. justify-content: right !important;
  119. margin-top: -38px;
  120. }
  121. .overview-analysis {
  122. color: var(--secondFontColor);
  123. }
  124. .overview-analysis + .overview-analysis {
  125. margin-top: calc(2 * var(--gridSize));
  126. }
  127. .overview-activity-events {
  128. display: flex;
  129. flex-direction: column;
  130. align-items: flex-start;
  131. }
  132. .overview-analysis-event {
  133. display: inline-block;
  134. }
  135. .overview-analysis-event.badge {
  136. border-radius: 2px;
  137. font-weight: bold;
  138. font-size: var(--smallFontSize);
  139. letter-spacing: 0;
  140. overflow: hidden;
  141. text-overflow: ellipsis;
  142. }
  143. .overview-analysis-event + .overview-analysis-event {
  144. margin-top: 4px;
  145. }