grafana-responsive.less 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. @import "variables.dark.less";
  2. @import "bootstrap/responsive.less";
  3. @gridColumnWidth: 70px;
  4. @gridGutterWidth: 10px;
  5. @gridColumnWidth768: 52px;
  6. @gridGutterWidth768: 10px;
  7. @gridColumnWidth1200: 90px;
  8. @gridGutterWidth1200: 10px;
  9. // Fluid grid
  10. // -------------------------
  11. @fluidGridColumnWidth: percentage(@gridColumnWidth/@gridRowWidth);
  12. @fluidGridGutterWidth: percentage(@gridGutterWidth/@gridRowWidth);
  13. // 1200px min
  14. @fluidGridColumnWidth1200: percentage(@gridColumnWidth1200/@gridRowWidth1200);
  15. @fluidGridGutterWidth1200: percentage(@gridGutterWidth1200/@gridRowWidth1200);
  16. // 768px-979px
  17. @fluidGridColumnWidth768: percentage(@gridColumnWidth768/@gridRowWidth768);
  18. @fluidGridGutterWidth768: percentage(@gridGutterWidth768/@gridRowWidth768);
  19. @screen-xs: 320px;
  20. @screen-sm: 768px;
  21. @screen-md: 992px;
  22. @screen-lg: 1200px;
  23. @screen-xs-max: (@screen-sm - 1);
  24. @screen-sm-max: (@screen-md - 1);
  25. @screen-md-max: (@screen-lg - 1);
  26. @breakpoint-xs-up: ~"only screen and (min-width: @{screen-xs})";
  27. @breakpoint-xs: ~"only screen and (min-width: @{screen-xs}) and (max-width: @{screen-xs-max})";
  28. @breakpoint-sm-up: ~"only screen and (min-width: @{screen-sm})";
  29. @breakpoint-sm: ~"only screen and (min-width: @{screen-sm}) and (max-width: @{screen-sm-max})";
  30. @breakpoint-md-up: ~"only screen and (min-width: @{screen-md})";
  31. @breakpoint-md: ~"only screen and (min-width: @{screen-md}) and (max-width: @{screen-md-max})";
  32. @breakpoint-lg: ~"only screen and (min-width: @{screen-lg})";
  33. .dashnav-back-to-dashboard {
  34. display: none;
  35. }
  36. // Media queries
  37. // ---------------------
  38. @media @breakpoint-xs {
  39. div.panel {
  40. width: 100% !important;
  41. padding: 0px !important;
  42. }
  43. .panel-margin {
  44. margin-right: 0;
  45. margin-left: 0;
  46. }
  47. body {
  48. padding: 0;
  49. }
  50. .dashnav-dashboards-btn a {
  51. max-width: 200px;
  52. }
  53. .gf-timepicker-nav-btn {
  54. max-width: 120px;
  55. }
  56. .dashnav-zoom-out,
  57. .dashnav-action-icons {
  58. display: none;
  59. }
  60. .page-container {
  61. padding: 10px 20px;
  62. }
  63. }
  64. // form styles
  65. @media @breakpoint-sm-up {
  66. .gf-size-m { width: 120px; }
  67. .gf-size-l { width: 150px; }
  68. .gf-size-xl { width: 200px; }
  69. .gf-size-xxl { width: 300px; }
  70. .gf-size-xxxl { width: 400px; }
  71. }
  72. @media @breakpoint-sm-up {
  73. .dashnav-dashboards-btn a {
  74. max-width: 200px;
  75. }
  76. .gf-timepicker-nav-btn {
  77. max-width: 120px;
  78. }
  79. .panel-in-fullscreen {
  80. .dashnav-action-icons {
  81. display: none;
  82. }
  83. .dashnav-back-to-dashboard {
  84. display: block;
  85. }
  86. }
  87. }
  88. @media @breakpoint-md-up {
  89. .dashnav-dashboards-btn a {
  90. max-width: 290px;
  91. }
  92. .gf-timepicker-nav-btn {
  93. max-width: 250px;
  94. }
  95. .dashnav-zoom-out {
  96. display: block;
  97. }
  98. }
  99. @media @breakpoint-lg {
  100. .panel-in-fullscreen {
  101. .dashnav-action-icons {
  102. display: block;
  103. }
  104. }
  105. .dashnav-dashboards-btn a {
  106. max-width: none;
  107. }
  108. .gf-timepicker-nav-btn {
  109. max-width: none;
  110. }
  111. }