_page.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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: $spacer $spacer $spacer $spacer*3;
  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. @include media-breakpoint-up(md) {
  30. display: flex;
  31. flex-direction: row;
  32. flex-wrap: wrap;
  33. }
  34. }
  35. .page-content-with-sidebar {
  36. width: calc(100% - #{$page-sidebar-width + $page-sidebar-margin}); // sidebar width + margin
  37. }
  38. .page-sidebar {
  39. @include media-breakpoint-up(md) {
  40. width: $page-sidebar-width;
  41. margin-left: $page-sidebar-margin;
  42. }
  43. }
  44. .page-header {
  45. padding: 2rem 0 0 0;
  46. margin-bottom: 2rem;
  47. @include brand-bottom-border();
  48. @include clearfix();
  49. h1 {
  50. font-size: $font-size-h2;
  51. flex-grow: 1;
  52. display: inline-block;
  53. margin-bottom: 1rem;
  54. img {
  55. width: 30px;
  56. height: 30px;
  57. border-radius: 50%;
  58. margin-right: 0.5rem;
  59. position: relative;
  60. top: -3px;
  61. }
  62. }
  63. a, button {
  64. float: right;
  65. margin-left: $spacer;
  66. // better align icons
  67. .fa {
  68. position: relative;
  69. top: 1px;
  70. }
  71. }
  72. }
  73. .page-heading {
  74. font-size: 1.25rem;
  75. margin-top: 0;
  76. margin-bottom: $spacer * 0.7;
  77. }
  78. .admin-page {
  79. max-width: 800px;
  80. margin-left: 10px;
  81. h2 {
  82. margin-left: 15px;
  83. margin-bottom: 0px;
  84. font-size: $font-size-lg;
  85. color: $text-color;
  86. i {
  87. padding-right: 6px;
  88. }
  89. }
  90. }
  91. .page-sidebar {
  92. color: $text-color-weak;
  93. h4 {
  94. font-size: $font-size-base;
  95. font-weight: $font-weight-semi-bold;
  96. }
  97. h5 {
  98. font-size: $font-size-base;
  99. font-weight: $font-weight-semi-bold;
  100. }
  101. }
  102. .page-sidebar-section {
  103. margin-bottom: $spacer*2;
  104. }
  105. .page-breadcrumb {
  106. display: flex;
  107. padding: 0 $spacer;
  108. line-height: 0.5;
  109. }
  110. $page-breadcrumb__angle-1: 39px;
  111. $page-breadcrumb__angle-ul: 31px;
  112. $page-breadcrumb__angle-a: 30px;
  113. .page-breadcrumb__item {
  114. background: $page-nav-bg;
  115. box-shadow: $page-nav-shadow;
  116. > a {
  117. color: $page-nav-breadcrumb-color;
  118. font-size: $font-size-sm;
  119. display: block;
  120. padding: 0.6rem 1rem 0.6rem 3rem;;
  121. position: relative;
  122. &::after {
  123. content: '';
  124. position: absolute;
  125. top: -53px;
  126. left: 100%;
  127. content: '';
  128. height: 0;
  129. width: 0;
  130. border: $page-breadcrumb__angle-1 solid transparent;
  131. border-right-width: 0;
  132. border-left-width: $page-breadcrumb__angle-a;
  133. z-index: 2;
  134. border-left-color: $page-nav-bg;
  135. }
  136. }
  137. &:first-child {
  138. a {
  139. padding-left: 1rem;
  140. }
  141. }
  142. &::after {
  143. content: '';
  144. position: absolute;
  145. top: -53px;
  146. left: 100%;
  147. content: '';
  148. height: 0;
  149. width: 0;
  150. border: $page-breadcrumb__angle-1 solid transparent;
  151. border-right-width: 0;
  152. border-left-width: $page-breadcrumb__angle-ul;
  153. z-index: 1;
  154. transform: translateX(4px);
  155. border-left-color: #282020;
  156. margin: 0;
  157. }
  158. &:hover {
  159. background: $breadcrumb-hover-hl;
  160. .page-breadcrumb__caret {
  161. opacity: 1;
  162. }
  163. > a {
  164. color: $text-color;
  165. &::after {
  166. border-left-color: $breadcrumb-hover-hl;
  167. color: $text-color;
  168. }
  169. }
  170. }
  171. }