grafana-responsive.less 2.7 KB

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