layout.less 2.2 KB

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