index.module.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. .bottomLine {
  80. position: relative;
  81. bottom: 10px;
  82. width: 100%;
  83. height: 20px;
  84. display: flex;
  85. align-items: center;
  86. justify-content: center;
  87. &>img {
  88. width: 60%;
  89. height: 100%;
  90. object-fit: contain;
  91. }
  92. }
  93. }
  94. .tabAc {
  95. color: #fbebbd;
  96. .bottomLine {
  97. bottom: 20px;
  98. height: 30px;
  99. }
  100. }
  101. .icon {
  102. position: relative;
  103. top: 60px;
  104. width: 80%;
  105. height: 60px;
  106. display: flex;
  107. align-items: center;
  108. justify-content: space-between;
  109. gap: 10px;
  110. &>div {
  111. font-size: 10px;
  112. font-weight: lighter;
  113. color: #fff;
  114. display: flex;
  115. flex-direction: column;
  116. align-items: center;
  117. justify-content: center;
  118. &>img {
  119. width: 30px;
  120. object-fit: contain;
  121. }
  122. }
  123. }
  124. }
  125. }
  126. }
  127. }
  128. // ------------移动端页面---------
  129. .menuMo {
  130. top: 2%;
  131. right: 2%;
  132. ;
  133. width: 66px;
  134. height: 66px;
  135. }
  136. .menuSiderMo {
  137. :global {
  138. .sider {
  139. img {
  140. height: 46px;
  141. left: -6%;
  142. }
  143. .siderContent {
  144. .tab {
  145. font-size: 20px;
  146. }
  147. .icon {
  148. width: 65%;
  149. &>div {
  150. img {
  151. width: 34px;
  152. }
  153. .txt {
  154. font-size: 12px;
  155. }
  156. }
  157. }
  158. }
  159. }
  160. }
  161. }