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.

page.css 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2019 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. .white-page {
  21. background-color: #fff !important;
  22. }
  23. .global-container {
  24. display: flex;
  25. flex-direction: column;
  26. height: 100%;
  27. min-height: 100vh;
  28. }
  29. .page {
  30. position: relative;
  31. z-index: var(--normalZIndex);
  32. padding: 10px 20px;
  33. }
  34. .page:before,
  35. .page:after {
  36. display: table;
  37. content: '';
  38. line-height: 0;
  39. }
  40. .page:after {
  41. clear: both;
  42. }
  43. .page-limited {
  44. max-width: 1280px;
  45. margin-left: auto;
  46. margin-right: auto;
  47. padding-top: 20px;
  48. padding-bottom: 20px;
  49. }
  50. .page-container {
  51. min-width: var(--minPageWidth);
  52. }
  53. .page-wrapper {
  54. box-sizing: border-box;
  55. flex: 1 0 auto;
  56. }
  57. .page-wrapper-simple {
  58. display: flex;
  59. justify-content: center;
  60. align-items: center;
  61. margin: 100px 0;
  62. }
  63. .page-simple {
  64. width: 400px;
  65. padding: 40px;
  66. border: 1px solid var(--barBorderColor);
  67. background-color: #fff;
  68. }
  69. .page-header {
  70. position: relative;
  71. margin-bottom: 20px;
  72. }
  73. .page-header:before,
  74. .page-header:after {
  75. display: table;
  76. content: '';
  77. line-height: 0;
  78. }
  79. .page-header:after {
  80. clear: both;
  81. }
  82. .page-header .spinner {
  83. position: relative;
  84. top: 3px;
  85. margin-left: 8px;
  86. }
  87. .page-title {
  88. float: left;
  89. margin-bottom: 0;
  90. line-height: var(--controlHeight);
  91. }
  92. .page-actions {
  93. float: right;
  94. margin-bottom: 10px;
  95. margin-left: 10px;
  96. line-height: var(--controlHeight);
  97. text-align: right;
  98. }
  99. .page-actions .badge {
  100. margin: 3px 0;
  101. }
  102. .page-actions .spinner {
  103. top: 0 !important;
  104. }
  105. .page-description {
  106. float: left;
  107. clear: left;
  108. max-width: 800px;
  109. line-height: 1.5;
  110. margin-top: 6px;
  111. }
  112. .page-footer {
  113. min-height: 60px;
  114. padding: 10px;
  115. line-height: 1.5;
  116. border-top: 1px solid var(--barBorderColor);
  117. box-sizing: border-box;
  118. background-color: var(--barBackgroundColor);
  119. color: #595959;
  120. font-size: var(--smallFontSize);
  121. text-align: center;
  122. }
  123. .page-footer a {
  124. border-bottom: 1px solid #d0d0d0;
  125. color: var(--baseFontColor);
  126. }
  127. .page-footer a:hover,
  128. .page-footer a:active,
  129. .page-footer a:focus {
  130. border-bottom-color: var(--lightBlue);
  131. color: var(--blue);
  132. }
  133. .sidebar-page #footer {
  134. padding-left: calc(50vw - 370px + 10px) !important;
  135. }
  136. .sidebar-page #footer div,
  137. .sidebar-page #footer .page-footer-menu {
  138. max-width: 980px;
  139. }
  140. .page-footer-menu-item {
  141. display: inline-block;
  142. }
  143. .page-footer-menu-item + .page-footer-menu-item::before {
  144. content: '-';
  145. padding: 0 calc(0.5 * var(--gridSize));
  146. user-select: none;
  147. }
  148. .page-with-sidebar {
  149. display: flex;
  150. }
  151. .page-main {
  152. flex-grow: 1;
  153. }
  154. .page-sidebar {
  155. width: 30%;
  156. min-width: 300px;
  157. flex-shrink: 0;
  158. padding-left: 40px;
  159. box-sizing: border-box;
  160. }
  161. .page-sidebar-fixed {
  162. min-width: 300px;
  163. flex-shrink: 0;
  164. padding-left: 40px;
  165. box-sizing: border-box;
  166. width: 300px;
  167. }
  168. .page-sidebar-sticky {
  169. width: 320px !important;
  170. padding-right: 0;
  171. }
  172. .page-limited .page-sidebar-sticky {
  173. margin: -20px 0 -20px -20px;
  174. padding-right: 0 !important;
  175. }
  176. .page-limited .page-sidebar-sticky .page-sidebar-sticky-inner {
  177. padding: 20px 0;
  178. }
  179. .page-sidebar-sticky .page-sidebar-sticky-inner {
  180. position: fixed;
  181. z-index: 10;
  182. top: 30px;
  183. bottom: 0;
  184. left: 0;
  185. overflow: auto;
  186. width: calc(50vw - 640px + 280px + 3px);
  187. border-right: 1px solid var(--barBorderColor);
  188. box-sizing: border-box;
  189. background: var(--barBackgroundColor);
  190. }
  191. @media (max-width: 1335px) {
  192. .page-sidebar-sticky .page-sidebar-sticky-inner {
  193. width: 310px;
  194. }
  195. }
  196. .layout-page {
  197. display: flex;
  198. align-items: stretch;
  199. width: 100%;
  200. flex-grow: 1;
  201. }
  202. .layout-page-filters {
  203. width: 260px;
  204. padding: 20px;
  205. }
  206. .layout-page-main {
  207. flex-grow: 1;
  208. min-width: 740px;
  209. padding: 20px;
  210. z-index: var(--pageMainZIndex);
  211. }
  212. .layout-page-main-inner {
  213. position: relative;
  214. z-index: var(--normalZIndex);
  215. min-width: 740px;
  216. max-width: 980px;
  217. }
  218. .layout-page-side-outer {
  219. width: calc(50vw - 370px);
  220. flex-grow: 0;
  221. flex-shrink: 0;
  222. background-color: var(--barBackgroundColor);
  223. }
  224. .layout-page-side {
  225. position: fixed;
  226. z-index: 40;
  227. top: 30px;
  228. bottom: 0;
  229. left: 0;
  230. width: calc(50vw - 370px);
  231. border-right: 1px solid var(--barBorderColor);
  232. overflow-y: auto;
  233. overflow-x: hidden;
  234. background-color: var(--barBackgroundColor);
  235. }
  236. .layout-page-side-inner {
  237. width: 300px;
  238. margin-left: calc(50vw - 670px);
  239. background-color: var(--barBackgroundColor);
  240. }
  241. .layout-page-header-panel,
  242. .layout-page-header-panel-inner {
  243. height: 56px;
  244. box-sizing: border-box;
  245. }
  246. .layout-page-header-panel {
  247. margin-top: -20px;
  248. }
  249. .layout-page-header-panel-inner {
  250. position: fixed;
  251. z-index: 30;
  252. line-height: var(--controlHeight);
  253. padding-top: 16px;
  254. padding-bottom: 16px;
  255. border-bottom: 1px solid var(--barBorderColor);
  256. background-color: var(--barBackgroundColor);
  257. }
  258. .layout-page-main-header {
  259. position: relative;
  260. z-index: var(--aboveNormalZIndex);
  261. margin-bottom: 20px;
  262. }
  263. .layout-page-main-header .component-name {
  264. line-height: var(--controlHeight);
  265. }
  266. .layout-page-main-header-inner {
  267. left: calc(50vw - 370px + 1px);
  268. right: 0;
  269. padding-left: 20px;
  270. padding-right: 20px;
  271. }
  272. @media (max-width: 1320px) {
  273. .layout-page-side-outer {
  274. width: 300px;
  275. }
  276. .layout-page-side {
  277. width: 300px;
  278. }
  279. .layout-page-side-inner {
  280. margin-left: 0;
  281. }
  282. .layout-page-main-header-inner {
  283. left: 301px;
  284. }
  285. .sidebar-page #footer {
  286. padding-left: 310px !important;
  287. }
  288. }