layout.scss 2.1 KB

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