layout.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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 (min-width:800px) {
  50. body.front {
  51. #container{
  52. &>.inner{
  53. #main{
  54. overflow-x: hidden;
  55. overflow-y: auto;
  56. height: 96vh;
  57. box-sizing: border-box;
  58. }
  59. }
  60. }
  61. }
  62. }
  63. @media (max-width:799px) {
  64. body{
  65. overflow: hidden!important;
  66. }
  67. #container{
  68. margin: 0!important;
  69. width: 100vw!important;
  70. height: 100vh!important;
  71. overflow: hidden;
  72. &>.inner{
  73. padding:0!important;
  74. width:100%!important;
  75. height: 100vh!important;
  76. display: flex;
  77. flex-direction: column;
  78. overflow: hidden;
  79. #header{
  80. height: 3vh;
  81. flex: 0 0 auto;
  82. height: auto;
  83. padding:0.5em;
  84. box-sizing: border-box;
  85. }
  86. #main{
  87. flex: 0 0 auto;
  88. overflow-x: hidden;
  89. overflow-y: auto;
  90. height: 96vh;
  91. box-sizing: border-box;
  92. #center{
  93. display: block;
  94. height: auto;
  95. }
  96. }
  97. }
  98. }
  99. }