_page.scss 2.3 KB

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