styles.module.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. .appbar{
  2. display: flex;
  3. flex-direction: column;
  4. position: fixed;
  5. z-index: var(--zindex-in);
  6. align-items: center;
  7. justify-content: flex-start;
  8. background:var(--widget);
  9. width: 100%;
  10. //height: 4rem;
  11. height: auto;
  12. &.mobile{
  13. background:transparent;
  14. //height: 8.5rem;
  15. height: auto;
  16. //overflow-x: auto;
  17. //background-color: rgba(0, 0, 0, 0); /* 使用透明背景 */
  18. //pointer-events: auto;
  19. pointer-events: none;
  20. }
  21. &.hide_header{
  22. //height:3.75rem;
  23. //height: auto;
  24. }
  25. }
  26. .header{
  27. position: relative;
  28. //height:100%;
  29. height:2.49rem;
  30. width:100%;
  31. padding: 0px 40px;
  32. //background: var(--widget);
  33. background: linear-gradient(to right, #3d1915, #582a1e, #3d1915);
  34. //border-bottom: 1px solid var(--border);
  35. border-bottom: 0.05rem solid #4c1a0e;
  36. padding-left:85px;
  37. box-shadow:var(--widget-shadow);
  38. pointer-events: auto;
  39. transition: padding .3s ease;
  40. &.nav_open{
  41. //padding-left:270px;
  42. padding-left:16.9rem;
  43. }
  44. &_mobile{
  45. //position:fixed;
  46. //position: absolute;
  47. position: relative;
  48. height:2.49rem;
  49. padding: 0px 0px;
  50. z-index: 2;
  51. pointer-events: auto;
  52. }
  53. & .header_left{
  54. display: flex;
  55. flex-direction: row;
  56. align-items: center;
  57. padding: 0 0.5rem;
  58. gap: 0.4rem;
  59. }
  60. }
  61. .header_room{
  62. display: flex;
  63. //position: fixed;
  64. //position: absolute;
  65. position: relative;
  66. height: 4.75rem !important;
  67. background-color:var(--widget);
  68. z-index:1;
  69. padding: 0.75rem;
  70. margin-bottom: -1.15rem;
  71. //margin-top: -1px;
  72. //top: 3.75rem;
  73. //margin-top: 3.75rem;
  74. width: 100%;
  75. overflow-x: auto;
  76. overflow-y: hidden;
  77. pointer-events: auto;
  78. }
  79. .header_install{
  80. display: flex;
  81. position: relative;
  82. z-index: 2;
  83. width: 100%;
  84. & .install_banner{
  85. position: relative !important;
  86. transition: none !important;
  87. top: 0 !important;
  88. }
  89. pointer-events: auto;
  90. &_desk{
  91. padding-left:5.3rem;
  92. }
  93. &.nav_open{
  94. padding-left:16.9rem;
  95. }
  96. transition: padding .3s ease;
  97. }
  98. .btn_sign_in{
  99. //padding: 12px 5px !important;
  100. width: 7rem !important;
  101. height:2.75rem !important;
  102. margin-right: 0.5rem !important;
  103. font-weight: 600 !important;
  104. &_mobile{
  105. background-color: var(--nav-item-hover) !important;
  106. width: 5.8rem !important;
  107. height:2rem !important;
  108. }
  109. }
  110. .btn_sign_up{
  111. width: 7rem !important;
  112. height:2.75rem !important;
  113. text-transform:none !important;
  114. color:#fff !important;
  115. background-color: rgba(29,128,58,0.7) !important;
  116. background-image:conic-gradient(from 1turn,rgba(88,175,16,1),rgba(29,128,58,1));
  117. font-weight: 600 !important;
  118. margin-right: 1.5rem !important;
  119. &_mobile{
  120. width: 5.8rem !important;
  121. height:2rem !important;
  122. margin-right: 0.1rem !important;
  123. }
  124. }
  125. .mobile-top-navigate-list{
  126. display: flex;
  127. height: 100%;
  128. width: auto;
  129. align-items: center;
  130. flex-wrap: nowrap;
  131. gap: 4px;
  132. }
  133. .mb-top-navigate-item{
  134. flex: none;
  135. display: flex;
  136. height: 3.25rem;
  137. padding: 0 0.75rem;
  138. border-radius: 2rem;
  139. align-items: center;
  140. justify-content: center;
  141. &.active{
  142. background-color: var(--nav-item-hover);
  143. }
  144. span{
  145. margin-left: 0.375rem;
  146. font-size: 1rem;
  147. color: var(--header);
  148. font-weight: 600;
  149. }
  150. svg{
  151. width: 1.28rem;
  152. height: 1.28rem;
  153. }
  154. }
  155. .user_info{
  156. display: flex;
  157. flex-direction: row;
  158. align-items: center;
  159. justify-content: space-between;
  160. position: relative;
  161. height: 100%;
  162. gap: 0.5rem;
  163. padding:0 0.5rem;
  164. border-bottom-left-radius: 3rem;
  165. border-top-left-radius: 3rem;
  166. background-color: rgba(100, 54, 27, 0.86);
  167. transition: padding .3s ease;
  168. min-width: 53%;
  169. & .info_right{
  170. display: flex;
  171. flex-direction: row;
  172. align-items: center;
  173. gap: 0.3rem;
  174. & .nick{
  175. color: #FFFFFF;
  176. max-width: 3.5rem;
  177. white-space: nowrap; /* 防止文本换行 */
  178. overflow: hidden; /* 隐藏超出部分 */
  179. text-overflow: ellipsis; /* 显示省略号 */
  180. }
  181. & .avatar_con{
  182. display: flex;
  183. flex-direction: row;
  184. align-items: center;
  185. justify-content: center;
  186. border-radius: 50%;
  187. background-color: #4a2d13;
  188. border: 1px solid #76502b;
  189. padding: 0.05rem;
  190. min-width: 1.9rem;
  191. min-height: 1.9rem;
  192. & .avatar{
  193. height: 1.9rem;
  194. width: auto;
  195. border-radius: 50%;
  196. }
  197. }
  198. }
  199. & .info_left{
  200. display: flex;
  201. flex-direction: row;
  202. align-items: center;
  203. gap: 0.1rem;
  204. & .coin{
  205. margin-top: 0.2rem;
  206. width: 2.03rem;
  207. height: auto;
  208. }
  209. & .score{
  210. font-size: 0.9rem;
  211. color: #FFFFFF;
  212. }
  213. }
  214. }