index.module.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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(.show) {
  30. opacity: 1;
  31. pointer-events: auto;
  32. .sider {
  33. transition: all 0.3s ease-in-out;
  34. transform: translate(0, -50%);
  35. }
  36. }
  37. :global {
  38. .sider {
  39. width: 26%;
  40. height: 100%;
  41. position: absolute;
  42. top: 50%;
  43. right: 0%;
  44. transition: all 0.3s ease-in-out;
  45. transform: translate(0, -50%);
  46. background: url(../../assets/img/menuSider.png) no-repeat center center;
  47. background-size: 100% 100%;
  48. display: flex;
  49. justify-content: flex-end;
  50. &>img {
  51. position: absolute;
  52. height: 20px;
  53. top: 50%;
  54. left: 0;
  55. transform: translateY(-50%);
  56. cursor: pointer;
  57. object-fit: contain;
  58. }
  59. .siderContent {
  60. width: 90%;
  61. height: 100%;
  62. display: flex;
  63. flex-direction: column;
  64. justify-content: center;
  65. align-items: center;
  66. gap: 10px;
  67. position: relative;
  68. padding-top: 15px;
  69. .tab {
  70. text-align: center;
  71. width: 100%;
  72. height: 50px;
  73. font-size: 17px;
  74. font-weight: 500;
  75. color: rgba(124, 75, 54, 1);
  76. cursor: pointer;
  77. display: flex;
  78. flex-direction: column;
  79. margin-bottom: 10px;
  80. .bottomLine {
  81. position: relative;
  82. bottom: 10px;
  83. width: 100%;
  84. height: 20px;
  85. display: flex;
  86. align-items: center;
  87. justify-content: center;
  88. &>img {
  89. width: 60%;
  90. height: 100%;
  91. object-fit: contain;
  92. }
  93. }
  94. }
  95. .tabAc {
  96. color: #fbebbd;
  97. .bottomLine {
  98. bottom: 20px;
  99. height: 30px;
  100. }
  101. }
  102. .icon {
  103. position: relative;
  104. top: 60px;
  105. width: 80%;
  106. height: 60px;
  107. display: flex;
  108. align-items: center;
  109. justify-content: space-between;
  110. gap: 10px;
  111. &>div {
  112. font-size: 10px;
  113. font-weight: lighter;
  114. color: #fff;
  115. display: flex;
  116. flex-direction: column;
  117. align-items: center;
  118. justify-content: center;
  119. &>img {
  120. width: 30px;
  121. object-fit: contain;
  122. }
  123. }
  124. }
  125. }
  126. }
  127. }
  128. }
  129. // ------------移动端页面---------
  130. .menuMo {
  131. top: 2%;
  132. right: 2%;
  133. ;
  134. width: 66px;
  135. height: 66px;
  136. }
  137. .menuSiderMo {
  138. :global {
  139. .sider {
  140. img {
  141. height: 46px;
  142. left: -6%;
  143. }
  144. .siderContent {
  145. .tab {
  146. font-size: 20px;
  147. }
  148. .icon {
  149. width: 65%;
  150. &>div {
  151. img {
  152. width: 34px;
  153. }
  154. .txt {
  155. font-size: 14px;
  156. font-weight: 700;
  157. }
  158. }
  159. }
  160. }
  161. }
  162. }
  163. }