_page.scss 2.3 KB

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