_page.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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. }
  67. }
  68. .page-heading {
  69. font-size: 1.25rem;
  70. margin-top: 0;
  71. margin-bottom: $spacer * 0.7;
  72. }
  73. .admin-page {
  74. max-width: 800px;
  75. margin-left: 10px;
  76. h2 {
  77. margin-left: 15px;
  78. margin-bottom: 0px;
  79. font-size: $font-size-lg;
  80. color: $text-color;
  81. i {
  82. padding-right: 6px;
  83. }
  84. }
  85. }
  86. .page-sidebar {
  87. color: $text-color-weak;
  88. h4 {
  89. font-size: $font-size-base;
  90. font-weight: $font-weight-semi-bold;
  91. }
  92. h5 {
  93. font-size: $font-size-base;
  94. font-weight: $font-weight-semi-bold;
  95. }
  96. }
  97. .page-sidebar-section {
  98. margin-bottom: $spacer*2;
  99. }
  100. $breadcrumb-hover-hl: #111;
  101. $page-breadcrumb__angle-1: 39px;
  102. $page-breadcrumb__angle-ul: 31px;
  103. $page-breadcrumb__angle-a: 30px;
  104. .page-breadcrumb {
  105. display: flex;
  106. padding: 0 $spacer;
  107. line-height: 0.5;
  108. }
  109. .page-breadcrumb__item {
  110. background: $page-nav-bg;
  111. box-shadow: $page-nav-shadow;
  112. > a {
  113. color: $text-color-weak;
  114. font-size: $font-size-sm;
  115. display: block;
  116. padding: 0.6rem 1rem 0.6rem 3rem;;
  117. position: relative;
  118. &::after {
  119. content: '';
  120. position: absolute;
  121. top: -53px;
  122. left: 100%;
  123. content: '';
  124. height: 0;
  125. width: 0;
  126. border: $page-breadcrumb__angle-1 solid transparent;
  127. border-right-width: 0;
  128. border-left-width: $page-breadcrumb__angle-a;
  129. z-index: 2;
  130. border-left-color: $page-nav-bg;
  131. }
  132. }
  133. &:first-child {
  134. a {
  135. padding-left: 1rem;
  136. }
  137. }
  138. &::after {
  139. content: '';
  140. position: absolute;
  141. top: -53px;
  142. left: 100%;
  143. content: '';
  144. height: 0;
  145. width: 0;
  146. border: $page-breadcrumb__angle-1 solid transparent;
  147. border-right-width: 0;
  148. border-left-width: $page-breadcrumb__angle-ul;
  149. z-index: 1;
  150. transform: translateX(4px);
  151. border-left-color: #282020;
  152. margin: 0;
  153. }
  154. &:hover {
  155. background: $breadcrumb-hover-hl;
  156. .page-breadcrumb__caret {
  157. opacity: 1;
  158. }
  159. > a {
  160. color: $text-color;
  161. &::after {
  162. border-left-color: $breadcrumb-hover-hl;
  163. color: $text-color;
  164. }
  165. }
  166. }
  167. }
  168. .page-breadcrumb__caret {
  169. opacity: 0;
  170. position: absolute;
  171. display: block;
  172. width: 16px;
  173. height: 16px;
  174. right: -9px;
  175. top: 5px;
  176. z-index: 3;
  177. }