_page.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. .grafana-app {
  2. display: flex;
  3. align-items: stretch;
  4. position: absolute;
  5. width: 100%;
  6. height: 100%;
  7. top: 0;
  8. left: 0;
  9. }
  10. .main-view {
  11. position: relative;
  12. flex-grow: 1;
  13. background: $page-gradient;
  14. }
  15. .panel-in-fullscreen {
  16. .main-view {
  17. background: $edit-gradient;
  18. }
  19. }
  20. .page-scrollbar-wrapper {
  21. position: absolute;
  22. top: 0;
  23. bottom: 0;
  24. width: 100%;
  25. }
  26. .page-scrollbar-content {
  27. display: flex;
  28. min-height: 100%;
  29. flex-direction: column;
  30. width: 100%;
  31. }
  32. .page-container {
  33. flex-grow: 1;
  34. width: 100%;
  35. margin-left: auto;
  36. margin-right: auto;
  37. padding-left: $spacer * 2;
  38. padding-right: $spacer * 2;
  39. max-width: 980px;
  40. @include clearfix();
  41. }
  42. .page-full {
  43. margin-left: $page-sidebar-margin;
  44. padding-left: $spacer;
  45. padding-right: $spacer;
  46. @include clearfix();
  47. }
  48. .scroll-canvas {
  49. position: absolute;
  50. width: 100%;
  51. overflow: auto;
  52. height: 100%;
  53. -webkit-overflow-scrolling: touch;
  54. display: flex;
  55. flex-direction: column;
  56. &--dashboard {
  57. height: calc(100% - 56px);
  58. }
  59. > div {
  60. flex-grow: 1;
  61. }
  62. > .footer {
  63. flex-shrink: 0;
  64. }
  65. // Render in correct position even ng-view div is not rendered yet
  66. > .footer:first-child {
  67. flex-grow: 1;
  68. display: flex;
  69. > * {
  70. width: 100%;
  71. align-self: flex-end;
  72. }
  73. }
  74. }
  75. // fix for phantomjs
  76. .body--phantomjs {
  77. .scroll-canvas {
  78. overflow: hidden;
  79. }
  80. }
  81. .page-body {
  82. padding-top: $spacer * 2;
  83. }
  84. .page-heading {
  85. font-size: $font-size-h4;
  86. margin-top: 0;
  87. margin-bottom: $spacer;
  88. }
  89. .page-action-bar {
  90. margin-bottom: $spacer * 2;
  91. display: flex;
  92. align-items: flex-start;
  93. > a,
  94. > button {
  95. margin-left: $spacer;
  96. }
  97. }
  98. .page-action-bar--narrow {
  99. margin-bottom: 0;
  100. }
  101. .page-action-bar__spacer {
  102. width: $spacer * 2;
  103. flex-grow: 1;
  104. }
  105. .sidebar-content {
  106. width: calc(100% - #{$page-sidebar-width + $page-sidebar-margin}); // sidebar width + margin
  107. }
  108. .sidebar-container {
  109. @include media-breakpoint-up(md) {
  110. display: flex;
  111. flex-direction: row;
  112. flex-wrap: wrap;
  113. }
  114. }
  115. .page-sidebar {
  116. @include media-breakpoint-up(md) {
  117. width: $page-sidebar-width;
  118. margin-left: $page-sidebar-margin;
  119. }
  120. }
  121. .page-sub-heading {
  122. margin-bottom: $spacer;
  123. }
  124. .page-sub-heading-icon {
  125. margin-left: $spacer;
  126. vertical-align: 6px;
  127. font-size: 13px;
  128. }
  129. .page-sidebar {
  130. color: $text-color-weak;
  131. h4 {
  132. font-size: $font-size-base;
  133. font-weight: $font-weight-semi-bold;
  134. }
  135. h5 {
  136. font-size: $font-size-base;
  137. font-weight: $font-weight-semi-bold;
  138. }
  139. }
  140. .page-sidebar-section {
  141. margin-bottom: $spacer * 2;
  142. }