index.wxss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. /* pages/index/index.wxss */
  2. .logo {
  3. display: flex;
  4. flex-direction: column;
  5. padding: 60rpx;
  6. margin-bottom: 30rpx;
  7. }
  8. .logo__bd {
  9. display: flex;
  10. padding-bottom: 30rpx;
  11. }
  12. .logo__img {
  13. display: block;
  14. width: 72rpx;
  15. height: 72rpx;
  16. margin-right: 12rpx;
  17. }
  18. .logo__text {
  19. font-size: 48rpx;
  20. line-height: 1.5;
  21. font-weight: bold;
  22. font-style: italic;
  23. background: -webkit-linear-gradient(left, #04BE02, #2d8cf0);
  24. -webkit-background-clip: text;
  25. -webkit-text-fill-color: transparent;
  26. text-align: left;
  27. padding-right: 12rpx;
  28. }
  29. .logo__ft {
  30. font-size: 26rpx;
  31. line-height: 1.5;
  32. color: rgba(0, 0, 0, .45);
  33. }
  34. .demo-category-item {
  35. margin: 0 32rpx 24rpx;
  36. }
  37. .demo-category-group__hd {
  38. padding: 30rpx 30rpx 18rpx;
  39. font-size: 28rpx;
  40. color: rgba(0, 0, 0, .45);
  41. width: 100%;
  42. box-sizing: border-box;
  43. }
  44. .demo-category-group__bd {
  45. position: relative;
  46. background-color: #fff;
  47. }
  48. .demo-category-group__ft {
  49. padding: 18rpx 30rpx 30rpx;
  50. font-size: 28rpx;
  51. color: rgba(0, 0, 0, .45);
  52. }
  53. .demo-category-item__hd {
  54. line-height: 100rpx;
  55. border-radius: 4rpx;
  56. position: relative;
  57. padding: 20rpx 30rpx;
  58. color: #000;
  59. background-color: #fff;
  60. box-sizing: border-box;
  61. padding-right: 60rpx;
  62. width: auto;
  63. text-overflow: ellipsis;
  64. white-space: nowrap;
  65. overflow: hidden;
  66. display: -ms-flexbox;
  67. display: flex;
  68. -ms-flex-align: center;
  69. align-items: center;
  70. }
  71. .demo-category-item__thumb {
  72. width: 40rpx;
  73. height: 40rpx;
  74. display: block;
  75. margin-right: 10rpx;
  76. }
  77. .demo-category-item__arrow {
  78. position: absolute;
  79. display: block;
  80. top: 55rpx;
  81. right: 30rpx;
  82. width: 30rpx;
  83. height: 30rpx;
  84. background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='26' viewBox='0 0 16 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 0L0 2l11.5 11L0 24l2 2 14-13z' fill='%23C7C7CC' fill-rule='evenodd'/%3E%3C/svg%3E");
  85. background-size: contain;
  86. background-repeat: no-repeat;
  87. background-position: 50% 50%;
  88. transform: rotate(90deg);
  89. transition: transform .2s ease;
  90. }
  91. .demo-category-item--current > .demo-category-item__hd > .demo-category-item__arrow {
  92. transform: rotate(270deg);
  93. }
  94. .demo-category-item__bd {
  95. display: none;
  96. overflow: hidden;
  97. background: #fff;
  98. font-size: 30rpx;
  99. color: rgba(0, 0, 0, .85);
  100. position: relative;
  101. /* padding: 30rpx */
  102. }
  103. .demo-category-item--current > .demo-category-item__bd {
  104. display: block;
  105. }
  106. .demo-category-cell {
  107. padding: 0;
  108. margin: 0;
  109. border-radius: 0;
  110. color: inherit !important;
  111. background: 0 0 !important;
  112. font-size: inherit;
  113. font-weight: 400;
  114. line-height: inherit;
  115. text-align: inherit;
  116. text-decoration: none;
  117. overflow: visible;
  118. min-height: 0 !important;
  119. width: auto !important;
  120. box-sizing: border-box;
  121. -webkit-tap-highlight-color: transparent;
  122. padding: 20rpx 30rpx;
  123. position: relative;
  124. display: -ms-flexbox;
  125. display: flex;
  126. -ms-flex-align: center;
  127. align-items: center;
  128. background: #fff;
  129. padding: 32rpx;
  130. }
  131. .demo-category-cell::after {
  132. display: block;
  133. position: static;
  134. top: auto;
  135. left: auto;
  136. width: auto;
  137. height: auto;
  138. border: none;
  139. border-radius: 0;
  140. transform: none;
  141. transform-origin: 0 0;
  142. }
  143. .demo-category-cell::after {
  144. content: " ";
  145. position: absolute;
  146. left: 0;
  147. bottom: 0;
  148. right: 0;
  149. height: 1PX;
  150. border-bottom: 1PX solid #d9d9d9;
  151. color: #d9d9d9;
  152. transform-origin: 0 100%;
  153. transform: scaleY(.5);
  154. left: 30rpx;
  155. }
  156. .demo-category-cell--last::after {
  157. display: none;
  158. }
  159. .demo-category-cell--hover {
  160. background-color: #ececec !important;
  161. }
  162. .demo-category-cell--disabled {
  163. opacity: .3;
  164. }
  165. .demo-category-cell__thumb {
  166. width: 40rpx;
  167. height: 40rpx;
  168. display: block;
  169. margin-right: 10rpx;
  170. }
  171. .demo-category-cell__bd {
  172. -ms-flex: 1;
  173. flex: 1;
  174. }
  175. .demo-category-cell__text {
  176. text-align: left;
  177. }
  178. .demo-category-cell__desc {
  179. text-align: left;
  180. line-height: 1.2;
  181. font-size: 24rpx;
  182. color: rgba(0, 0, 0, .45);
  183. }
  184. .demo-category-cell__ft {
  185. text-align: right;
  186. color: rgba(0, 0, 0, .45);
  187. }
  188. .demo-category-cell--access .demo-category-cell__ft {
  189. position: absolute;
  190. display: block;
  191. top: 41rpx;
  192. right: 30rpx;
  193. width: 30rpx;
  194. height: 30rpx;
  195. background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='26' viewBox='0 0 16 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 0L0 2l11.5 11L0 24l2 2 14-13z' fill='%23C7C7CC' fill-rule='evenodd'/%3E%3C/svg%3E");
  196. background-size: contain;
  197. background-repeat: no-repeat;
  198. background-position: 50% 50%;
  199. transform: rotate(90deg);
  200. transition: transform .2s ease;
  201. transform: rotate(0deg);
  202. }