_page.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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. $breadcrumb-hover-hl: #111;
  106. $page-breadcrumb__angle-1: 39px;
  107. $page-breadcrumb__angle-ul: 31px;
  108. $page-breadcrumb__angle-a: 30px;
  109. .page-breadcrumb {
  110. display: flex;
  111. padding: 0 $spacer;
  112. line-height: 0.5;
  113. }
  114. .page-breadcrumb__item {
  115. background: $page-nav-bg;
  116. box-shadow: $page-nav-shadow;
  117. > a {
  118. color: $page-nav-breadcrumb-color;
  119. font-size: $font-size-sm;
  120. display: block;
  121. padding: 0.6rem 1rem 0.6rem 3rem;;
  122. position: relative;
  123. &::after {
  124. content: '';
  125. position: absolute;
  126. top: -53px;
  127. left: 100%;
  128. content: '';
  129. height: 0;
  130. width: 0;
  131. border: $page-breadcrumb__angle-1 solid transparent;
  132. border-right-width: 0;
  133. border-left-width: $page-breadcrumb__angle-a;
  134. z-index: 2;
  135. border-left-color: $page-nav-bg;
  136. }
  137. }
  138. &:first-child {
  139. a {
  140. padding-left: 1rem;
  141. }
  142. }
  143. &::after {
  144. content: '';
  145. position: absolute;
  146. top: -53px;
  147. left: 100%;
  148. content: '';
  149. height: 0;
  150. width: 0;
  151. border: $page-breadcrumb__angle-1 solid transparent;
  152. border-right-width: 0;
  153. border-left-width: $page-breadcrumb__angle-ul;
  154. z-index: 1;
  155. transform: translateX(4px);
  156. border-left-color: #282020;
  157. margin: 0;
  158. }
  159. &:hover {
  160. background: $breadcrumb-hover-hl;
  161. .page-breadcrumb__caret {
  162. opacity: 1;
  163. }
  164. > a {
  165. color: $text-color;
  166. &::after {
  167. border-left-color: $breadcrumb-hover-hl;
  168. color: $text-color;
  169. }
  170. }
  171. }
  172. }
  173. .page-breadcrumb__caret {
  174. opacity: 0;
  175. position: absolute;
  176. display: block;
  177. width: 16px;
  178. height: 16px;
  179. right: -9px;
  180. top: 5px;
  181. z-index: 3;
  182. }