layout.scss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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: 8px 0;
  13. flex-direction: column;
  14. box-sizing: border-box;
  15. user-select: none;
  16. overflow: hidden;
  17. .the-logo {
  18. position: relative;
  19. flex: 0 1 180px;
  20. width: 100%;
  21. max-width: 180px;
  22. max-height: 180px;
  23. margin: 0 auto;
  24. padding: 0 8px;
  25. text-align: center;
  26. box-sizing: border-box;
  27. img {
  28. width: 100%;
  29. }
  30. .the-newbtn {
  31. position: absolute;
  32. right: 20px;
  33. bottom: 12px;
  34. transform: scale(0.8);
  35. }
  36. }
  37. .the-menu {
  38. flex: 1 1 75%;
  39. overflow-y: auto;
  40. margin-bottom: 8px;
  41. }
  42. .the-traffic {
  43. flex: 0 0 60px;
  44. > div {
  45. margin: 0 auto;
  46. }
  47. }
  48. }
  49. &__right {
  50. position: relative;
  51. flex: 1 1 75%;
  52. height: 100%;
  53. .the-bar {
  54. position: absolute;
  55. top: 2px;
  56. right: 8px;
  57. height: 36px;
  58. display: flex;
  59. align-items: center;
  60. box-sizing: border-box;
  61. z-index: 2;
  62. }
  63. .the-content {
  64. position: absolute;
  65. top: 30px;
  66. left: 0;
  67. right: 2px;
  68. bottom: 10px;
  69. }
  70. }
  71. }