layout.scss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. .layout {
  2. width: 100%;
  3. height: 100vh;
  4. display: flex;
  5. overflow: hidden;
  6. &__left {
  7. flex: 1 0 25%;
  8. display: flex;
  9. height: 100%;
  10. max-width: 225px;
  11. min-width: 125px;
  12. padding: 16px 0 8px;
  13. flex-direction: column;
  14. box-sizing: border-box;
  15. user-select: none;
  16. overflow: hidden;
  17. $maxLogo: 100px;
  18. .the-logo {
  19. position: relative;
  20. flex: 0 1 $maxLogo;
  21. width: 100%;
  22. max-width: $maxLogo + 32px;
  23. max-height: $maxLogo;
  24. margin: 0 auto;
  25. padding: 0 16px;
  26. text-align: center;
  27. box-sizing: border-box;
  28. img,
  29. svg {
  30. width: 100%;
  31. height: 100%;
  32. pointer-events: none;
  33. }
  34. .the-newbtn {
  35. position: absolute;
  36. right: 10px;
  37. bottom: 0px;
  38. transform: scale(0.8);
  39. }
  40. }
  41. .the-menu {
  42. flex: 1 1 80%;
  43. overflow-y: auto;
  44. margin-bottom: 8px;
  45. }
  46. .the-traffic {
  47. flex: 0 0 60px;
  48. > div {
  49. margin: 0 auto;
  50. }
  51. }
  52. }
  53. &__right {
  54. position: relative;
  55. flex: 1 1 75%;
  56. height: 100%;
  57. .the-bar {
  58. position: absolute;
  59. top: 2px;
  60. right: 8px;
  61. height: 36px;
  62. display: flex;
  63. align-items: center;
  64. box-sizing: border-box;
  65. z-index: 2;
  66. }
  67. .the-content {
  68. position: absolute;
  69. top: 0;
  70. left: 0;
  71. right: 2px;
  72. bottom: 10px;
  73. }
  74. }
  75. }
  76. .linux,
  77. .windows,
  78. .unknown {
  79. &.layout {
  80. $maxLogo: 115px;
  81. .layout__left .the-logo {
  82. flex: 0 1 $maxLogo;
  83. max-width: $maxLogo + 32px;
  84. max-height: $maxLogo;
  85. }
  86. .layout__right .the-content {
  87. top: 30px;
  88. }
  89. }
  90. }