layout.scss 2.6 KB

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