index.module.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. // 菜单
  2. .menu {
  3. width: 50px;
  4. height: 50px;
  5. position: absolute;
  6. z-index: 3;
  7. top: 3%;
  8. right: 3%;
  9. cursor: pointer;
  10. & > img {
  11. height: 100%;
  12. object-fit: contain;
  13. }
  14. }
  15. // menu界面
  16. .menuSider {
  17. opacity: 0;
  18. pointer-events: none;
  19. transition: all 0.3s ease-in-out;
  20. width: 100%;
  21. height: 100%;
  22. position: absolute;
  23. z-index: 20;
  24. top: 50%;
  25. left: 50%;
  26. transform: translate(-50%, -50%);
  27. background-color: rgba(0, 0, 0, 0.7);
  28. backdrop-filter: blur(3px);
  29. :global {
  30. .sider {
  31. width: 26%;
  32. height: 100%;
  33. position: absolute;
  34. top: 50%;
  35. right: 0%;
  36. transition: all 0.3s ease-in-out;
  37. transform: translate(100%, -50%);
  38. background: url(../../assets/img/menuSider.png) no-repeat center center;
  39. background-size: 100% 100%;
  40. display: flex;
  41. justify-content: flex-end;
  42. & > img {
  43. position: absolute;
  44. height: 20px;
  45. top: 50%;
  46. left: 0;
  47. transform: translateY(-50%);
  48. cursor: pointer;
  49. object-fit: contain;
  50. }
  51. .siderContent {
  52. width: 90%;
  53. height: 100%;
  54. display: flex;
  55. flex-direction: column;
  56. justify-content: center;
  57. align-items: center;
  58. gap: 20px;
  59. position: relative;
  60. .tab {
  61. text-align: center;
  62. width: 100%;
  63. height: 50px;
  64. font-size: 17px;
  65. font-weight: 500;
  66. color: rgba(124, 75, 54, 1);
  67. cursor: pointer;
  68. display: flex;
  69. flex-direction: column;
  70. .bottomLine {
  71. position: relative;
  72. bottom: 10px;
  73. width: 100%;
  74. height: 20px;
  75. display: flex;
  76. align-items: center;
  77. justify-content: center;
  78. & > img {
  79. width: 60%;
  80. height: 100%;
  81. object-fit: contain;
  82. }
  83. }
  84. .bottomLineAc {
  85. bottom: 20px;
  86. height: 30px;
  87. }
  88. }
  89. .tab:nth-child(1) {
  90. color: #fbebbd;
  91. }
  92. .icon {
  93. position: relative;
  94. top: 60px;
  95. width: 80%;
  96. height: 60px;
  97. display: flex;
  98. align-items: center;
  99. justify-content: center;
  100. gap: 10px;
  101. & > div {
  102. font-size: 10px;
  103. font-weight: lighter;
  104. color: #fff;
  105. display: flex;
  106. flex-direction: column;
  107. align-items: center;
  108. justify-content: center;
  109. & > img {
  110. width: 30px;
  111. object-fit: contain;
  112. }
  113. }
  114. }
  115. }
  116. }
  117. }
  118. }