_page.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. .scroll-canvas {
  24. position: absolute;
  25. width: 100%;
  26. overflow: auto;
  27. height: 100%;
  28. -webkit-overflow-scrolling: touch;
  29. &--dashboard {
  30. height: calc(100% - 56px);
  31. }
  32. }
  33. // fix for phantomjs
  34. .body--phantomjs {
  35. .scroll-canvas {
  36. overflow: hidden;
  37. }
  38. }
  39. .page-body {
  40. padding-top: $spacer*2;
  41. min-height: 500px;
  42. }
  43. .page-heading {
  44. font-size: 1.25rem;
  45. margin-top: 0;
  46. margin-bottom: $spacer * 0.7;
  47. }
  48. .page-action-bar {
  49. margin-bottom: $spacer * 2;
  50. display: flex;
  51. align-items: flex-start;
  52. > a,
  53. > button {
  54. margin-left: $spacer;
  55. }
  56. }
  57. .page-action-bar--narrow {
  58. margin-bottom: 0;
  59. }
  60. .page-action-bar__spacer {
  61. width: $spacer * 2;
  62. flex-grow: 1;
  63. }
  64. .sidebar-content {
  65. width: calc(100% - #{$page-sidebar-width + $page-sidebar-margin}); // sidebar width + margin
  66. }
  67. .sidebar-container {
  68. @include media-breakpoint-up(md) {
  69. display: flex;
  70. flex-direction: row;
  71. flex-wrap: wrap;
  72. }
  73. }
  74. .page-sidebar {
  75. @include media-breakpoint-up(md) {
  76. width: $page-sidebar-width;
  77. margin-left: $page-sidebar-margin;
  78. }
  79. }
  80. .page-sub-heading {
  81. margin-bottom: $spacer;
  82. }
  83. .page-sub-heading-icon {
  84. margin-left: $spacer;
  85. vertical-align: 6px;
  86. font-size: 13px;
  87. }
  88. .page-sidebar {
  89. color: $text-color-weak;
  90. h4 {
  91. font-size: $font-size-base;
  92. font-weight: $font-weight-semi-bold;
  93. }
  94. h5 {
  95. font-size: $font-size-base;
  96. font-weight: $font-weight-semi-bold;
  97. }
  98. }
  99. .page-sidebar-section {
  100. margin-bottom: $spacer*2;
  101. }