_page.scss 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. @extend .container;
  17. padding: 0 $spacer * 2;
  18. }
  19. .scroll-canvas {
  20. position: absolute;
  21. width: 100%;
  22. overflow: auto;
  23. height: 100%;
  24. &--dashboard {
  25. height: calc(100% - 54px);
  26. }
  27. }
  28. .page-body {
  29. padding-top: $spacer*2;
  30. }
  31. .page-heading {
  32. font-size: 1.25rem;
  33. margin-top: 0;
  34. margin-bottom: $spacer * 0.7;
  35. }
  36. .page-action-bar {
  37. margin-bottom: $spacer * 2;
  38. display: flex;
  39. align-items: flex-start;
  40. > a, > button {
  41. margin-left: $spacer;
  42. }
  43. }
  44. .page-action-bar__spacer {
  45. width: $spacer * 2;
  46. flex-grow: 1;
  47. }
  48. .sidebar-content {
  49. width: calc(100% - #{$page-sidebar-width + $page-sidebar-margin}); // sidebar width + margin
  50. }
  51. .sidebar-container {
  52. @include media-breakpoint-up(md) {
  53. display: flex;
  54. flex-direction: row;
  55. flex-wrap: wrap;
  56. }
  57. }
  58. .page-sidebar {
  59. @include media-breakpoint-up(md) {
  60. width: $page-sidebar-width;
  61. margin-left: $page-sidebar-margin;
  62. }
  63. }
  64. .page-sub-heading {
  65. margin-bottom: $spacer;
  66. }
  67. .page-sidebar {
  68. color: $text-color-weak;
  69. h4 {
  70. font-size: $font-size-base;
  71. font-weight: $font-weight-semi-bold;
  72. }
  73. h5 {
  74. font-size: $font-size-base;
  75. font-weight: $font-weight-semi-bold;
  76. }
  77. }
  78. .page-sidebar-section {
  79. margin-bottom: $spacer*2;
  80. }