index.module.scss 3.5 KB

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