layout.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /**
  2. * Layouts
  3. *
  4. */
  5. @import "elements";
  6. #content, #center .page-title, #perfnode, #filters, #timeline, #timeline-container{
  7. .transition(height, 1s, ease-out);
  8. /*-webkit-transition: height, 5s, ease-out;
  9. -moz-transition: height, 5s, ease-out;
  10. -o-transition: height, 5s, ease-out;
  11. transition: height, 5s, ease-out;
  12. */
  13. }
  14. #main{ height:97%; }
  15. body.layout-intro{
  16. // #main{ height:97%; }
  17. #perfnode{ height:0%!important; }
  18. #filters{ height:0%; }
  19. #timeline{ height:65%;
  20. #timeline-container{ height:0%; }
  21. }
  22. #timeline-loader{ display:block; margin:0 auto 5px;}
  23. }
  24. body.layout-timeline{
  25. #main{
  26. // height:97%;
  27. #content, #center .page-title{height:0%;}
  28. }
  29. #perfnode{ height:0%!important; }
  30. #filters{ height:30%; }
  31. #timeline{ height:65%;
  32. #timeline-container{ height:98%; }
  33. }
  34. #timeline-loader{ display:none; }
  35. }
  36. body.layout-perfnode{
  37. #main{
  38. // height:97%;
  39. #content, #center .page-title{height:0%;}
  40. }
  41. #perfnode{ height:85%!important; }
  42. #filters{ height:0%; }
  43. #timeline{ height:3%;
  44. #timeline-container{ height:0%; }
  45. }
  46. #timeline-loader{ display:none; }
  47. }
  48. body>img{display: none;}
  49. @media (max-width:799px) {
  50. body{
  51. overflow: hidden!important;
  52. }
  53. #container{
  54. margin: 0!important;
  55. width: 100vw!important;
  56. height: 100vh!important;
  57. overflow: hidden;
  58. &>.inner{
  59. padding:0!important;
  60. width:100%!important;
  61. height: 100vh!important;
  62. display: flex;
  63. flex-direction: column;
  64. overflow: hidden;
  65. #header{
  66. height: 3vh;
  67. flex: 0 0 auto;
  68. height: auto;
  69. padding:0.5em;
  70. box-sizing: border-box;
  71. }
  72. #main{
  73. flex: 0 0 auto;
  74. overflow-x: hidden;
  75. overflow-y: auto;
  76. height: 96vh;
  77. box-sizing: border-box;
  78. #center{
  79. display: block;
  80. height: auto;
  81. }
  82. }
  83. }
  84. }
  85. }