_dashboard.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. .dashboard-container {
  2. padding: $dashboard-padding $dashboard-padding 0 $dashboard-padding;
  3. width: 100%;
  4. height: 100%;
  5. box-sizing: border-box;
  6. }
  7. .template-variable {
  8. color: $variable;
  9. }
  10. div.flot-text {
  11. color: $text-color !important;
  12. }
  13. .panel {
  14. height: 100%;
  15. }
  16. .dashboard-solo {
  17. .footer,
  18. .sidemenu {
  19. display: none;
  20. }
  21. }
  22. .panel-solo {
  23. position: fixed;
  24. bottom: 0;
  25. right: 0;
  26. margin: 0;
  27. left: 0;
  28. top: 0;
  29. .panel-container {
  30. border: none;
  31. }
  32. .panel-menu-toggle,
  33. .panel-menu {
  34. display: none;
  35. }
  36. }
  37. .panel-height-helper {
  38. display: block;
  39. height: 100%;
  40. }
  41. .panel-container {
  42. background-color: $panel-bg;
  43. border: $panel-border;
  44. position: relative;
  45. border-radius: 3px;
  46. height: 100%;
  47. width: 100%;
  48. &.panel-transparent {
  49. background-color: transparent;
  50. border: none;
  51. }
  52. &:hover {
  53. .panel-menu-toggle {
  54. visibility: visible;
  55. transition: opacity 0.1s ease-in 0.2s;
  56. opacity: 1;
  57. }
  58. }
  59. &--is-editing {
  60. height: auto;
  61. }
  62. &--absolute {
  63. position: absolute;
  64. }
  65. }
  66. .panel-content {
  67. padding: $panel-padding;
  68. height: calc(100% - #{$panel-header-height});
  69. width: 100%;
  70. position: relative;
  71. // Fixes scrolling on mobile devices
  72. overflow: auto;
  73. }
  74. // For larger screens, set back to hidden to avoid double scroll bars
  75. @include media-breakpoint-up(md) {
  76. .panel-content {
  77. overflow: hidden;
  78. }
  79. }
  80. .dashboard-header {
  81. font-size: $font-size-h3;
  82. text-align: center;
  83. overflow: hidden;
  84. position: relative;
  85. top: -10px;
  86. span {
  87. display: inline-block;
  88. @include brand-bottom-border();
  89. padding: $space-sm $space-sm $space-xxs $space-sm;
  90. }
  91. }
  92. .dashboard-loading {
  93. height: 60vh;
  94. display: flex;
  95. align-items: center;
  96. justify-content: center;
  97. .alert {
  98. max-width: 600px;
  99. min-width: 600px;
  100. }
  101. }
  102. .dashboard-loading__text {
  103. font-size: $font-size-lg;
  104. }