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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2020 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. .issues-main-header .component-name {
  21. line-height: var(--controlHeight);
  22. }
  23. .issues-main-header-spinner {
  24. margin-right: 2px;
  25. }
  26. .concise-issues-list-header-inner {
  27. width: 260px;
  28. text-align: center;
  29. }
  30. .concise-issues-list-header .spinner {
  31. margin-top: 4px;
  32. margin-left: 1px;
  33. margin-right: 1px;
  34. }
  35. .concise-issues-list-header-button {
  36. border: none;
  37. }
  38. .concise-issues-list-header-button path {
  39. fill: var(--secondFontColor);
  40. transition: fill 0.3s ease;
  41. }
  42. .concise-issues-list-header-button:hover path {
  43. fill: var(--blue);
  44. }
  45. .concise-issue-component {
  46. margin-top: calc(var(--gridSize) * 2);
  47. margin-bottom: calc(var(--gridSize) / 2);
  48. padding-left: var(--gridSize);
  49. padding-right: var(--gridSize);
  50. direction: rtl;
  51. }
  52. .concise-issue-box {
  53. position: relative;
  54. z-index: var(--belowNormalZIndex);
  55. margin-bottom: calc(var(--gridSize) / 2);
  56. padding: calc(var(--gridSize) - 1px);
  57. border: 2px solid var(--barBorderColor);
  58. background-color: #fff;
  59. cursor: pointer;
  60. transition: background-color 0.3s ease, border-color 0.3s ease;
  61. }
  62. .concise-issue-box:hover {
  63. border: 2px dashed var(--blue);
  64. }
  65. .concise-issue-box:focus {
  66. outline: none;
  67. }
  68. .concise-issue-box.selected {
  69. z-index: var(--normalZIndex);
  70. border: 2px solid var(--blue);
  71. cursor: default;
  72. }
  73. .concise-issue-box-message {
  74. overflow: hidden;
  75. text-overflow: ellipsis;
  76. font-weight: bold;
  77. }
  78. .concise-issue-box-message:focus {
  79. outline: none;
  80. }
  81. .concise-issue-box.selected .concise-issue-box-message {
  82. cursor: pointer;
  83. }
  84. .concise-issue-box-attributes {
  85. margin-top: var(--gridSize);
  86. line-height: 16px;
  87. font-size: var(--smallFontSize);
  88. display: flex;
  89. align-items: flex-start;
  90. flex-wrap: wrap;
  91. justify-content: flex-start;
  92. }
  93. .concise-issue-box:not(.selected) .location-index {
  94. background-color: #ccc;
  95. }
  96. .concise-issue-locations {
  97. display: inline-block;
  98. margin-bottom: -4px;
  99. margin-left: var(--gridSize);
  100. }
  101. .concise-issue-box-attributes > .location-index {
  102. margin-bottom: 4px;
  103. margin-right: 4px;
  104. }
  105. .concise-issue-box-attributes > .concise-issue-expand {
  106. background-color: transparent;
  107. border: 1px solid var(--conciseIssueRed);
  108. height: 16px;
  109. color: var(--conciseIssueRed);
  110. font-weight: bold;
  111. font-size: 16px;
  112. line-height: 8px;
  113. padding-bottom: 6px;
  114. }
  115. .concise-issue-box-attributes > .concise-issue-expand:hover {
  116. background-color: var(--conciseIssueRed);
  117. color: white;
  118. }
  119. .concise-issue-locations-navigator-location {
  120. position: relative;
  121. z-index: var(--aboveNormalZIndex);
  122. display: inline-flex;
  123. align-items: flex-start;
  124. max-width: 100%;
  125. border: none;
  126. }
  127. .concise-issue-locations-navigator-file {
  128. position: relative;
  129. }
  130. .concise-issue-locations-navigator-file + .concise-issue-locations-navigator-file {
  131. margin-top: calc(1.5 * var(--gridSize));
  132. }
  133. .concise-issue-locations-navigator-file:not(:last-child)::before {
  134. position: absolute;
  135. display: block;
  136. width: 0;
  137. top: 13px;
  138. bottom: calc(-2 * var(--gridSize));
  139. left: 4px;
  140. border-left: 1px dotted var(--conciseIssueRed);
  141. content: '';
  142. }
  143. .concise-issue-location-file {
  144. height: calc(2 * var(--gridSize));
  145. padding-bottom: calc(0.5 * var(--gridSize));
  146. font-size: var(--smallFontSize);
  147. font-weight: bold;
  148. overflow: hidden;
  149. text-overflow: ellipsis;
  150. white-space: nowrap;
  151. }
  152. .concise-issue-location-file-circle,
  153. .concise-issue-location-file-circle-multiple,
  154. .concise-issue-location-file-circle-multiple::before,
  155. .concise-issue-location-file-circle-multiple::after {
  156. position: relative;
  157. top: 1px;
  158. display: inline-block;
  159. width: calc(1px + var(--gridSize));
  160. height: calc(1px + var(--gridSize));
  161. border: 1px solid var(--conciseIssueRed);
  162. border-radius: 100%;
  163. box-sizing: border-box;
  164. background-color: var(--issueBgColor);
  165. }
  166. .concise-issue-location-file-circle-multiple {
  167. top: -2px;
  168. }
  169. .concise-issue-location-file-circle-multiple::before {
  170. position: absolute;
  171. z-index: calc(5 + var(--normalZIndex));
  172. top: 2px;
  173. left: -1px;
  174. content: '';
  175. }
  176. .concise-issue-location-file-circle-multiple::after {
  177. position: absolute;
  178. z-index: calc(5 + var(--aboveNormalZIndex));
  179. top: 5px;
  180. left: -1px;
  181. content: '';
  182. }
  183. .concise-issue-location-file-locations {
  184. padding-left: calc(2 * var(--gridSize));
  185. }
  186. .concise-issue-location-file-more {
  187. border-color: rgba(209, 133, 130, 0.2);
  188. color: rgb(209, 133, 130) !important;
  189. font-style: italic;
  190. font-weight: normal;
  191. }
  192. .concise-issue-location-file-more:hover,
  193. .concise-issue-location-file-more:focus {
  194. border-color: rgba(209, 133, 130, 0.6);
  195. }
  196. .component-source-container {
  197. border: 1px solid var(--gray80);
  198. }
  199. .component-source-container + .component-source-container {
  200. margin-top: var(--gridSize);
  201. }
  202. .component-source-container-header {
  203. background-color: var(--gray94);
  204. padding: var(--gridSize);
  205. }
  206. .issues-my-issues-filter {
  207. margin-bottom: 24px;
  208. text-align: center;
  209. }
  210. .issues-page-actions {
  211. display: inline-block;
  212. min-width: 80px;
  213. text-align: right;
  214. }
  215. .issues .issue-list {
  216. /* no math, just a good guess */
  217. min-width: 640px;
  218. width: 800px;
  219. }
  220. .issues .issue {
  221. border: 2px solid transparent;
  222. cursor: pointer;
  223. }
  224. .issues .issue:focus-within,
  225. .issues .issue:hover {
  226. border: 2px dashed var(--blue);
  227. transition: all 0.3s ease;
  228. outline: 0;
  229. }
  230. .issues .issue a:focus,
  231. .issues .issue button:focus {
  232. box-shadow: none;
  233. outline: 1px dotted var(--blue);
  234. }
  235. @media (max-width: 1320px) {
  236. .issues .issue-list {
  237. width: calc(60vw - 40px);
  238. }
  239. }
  240. .issue-location {
  241. display: inline-block;
  242. vertical-align: top;
  243. line-height: 18px;
  244. height: 18px;
  245. box-sizing: border-box;
  246. background-color: var(--issueBgColor);
  247. transition: background-color 0.3s ease;
  248. }
  249. .issues-workspace-list-component {
  250. padding: 10px 0 6px;
  251. }
  252. .issues-workspace-list-item + .issues-workspace-list-item {
  253. margin-top: 5px;
  254. }
  255. .issues-workspace-list-component + .issues-workspace-list-item {
  256. margin-top: 10px;
  257. }
  258. .issues-workspace-list-item:first-child .issues-workspace-list-component {
  259. padding-top: 0;
  260. }
  261. .issues-workspace-list-component + .issues-workspace-list-item {
  262. margin-top: 0;
  263. }
  264. .issues-predefined-periods {
  265. display: flex;
  266. }
  267. .issues-predefined-periods .search-navigator-facet {
  268. width: auto;
  269. margin-right: calc(var(--gridSize) / 2);
  270. }
  271. .bulk-change-radio-button {
  272. margin: 0 calc(- var(--gridSize) / 2);
  273. padding: 0 calc(var(--gridSize) / 2);
  274. }
  275. .bulk-change-radio-button:hover {
  276. background-color: var(--barBackgroundColor);
  277. }
  278. .navigation-keyboard-shortcuts > span {
  279. background-color: var(--transparentGray);
  280. border-radius: 16px;
  281. display: inline-block;
  282. font-size: var(--smallFontSize);
  283. height: 16px;
  284. padding: calc(var(--gridSize) / 2) var(--gridSize);
  285. }