_page.scss 3.5 KB

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