_page.scss 3.3 KB

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