category.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. /**
  2. * 这里是uni-app内置的常用样式变量
  3. *
  4. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  5. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  6. *
  7. */
  8. /**
  9. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  10. *
  11. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  12. */
  13. /* 颜色变量 */
  14. /* 行为相关颜色 */
  15. /* 文字基本颜色 */
  16. /* 背景颜色 */
  17. /* 边框颜色 */
  18. /* 尺寸变量 */
  19. /* 文字尺寸 */
  20. /* 图片尺寸 */
  21. /* Border Radius */
  22. /* 水平间距 */
  23. /* 垂直间距 */
  24. /* 透明度 */
  25. /* 文章场景相关 */
  26. /**
  27. * 这里是uni-app内置的常用样式变量
  28. *
  29. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  30. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  31. *
  32. */
  33. /**
  34. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  35. *
  36. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  37. */
  38. /* 颜色变量 */
  39. /* 行为相关颜色 */
  40. /* 文字基本颜色 */
  41. /* 背景颜色 */
  42. /* 边框颜色 */
  43. /* 尺寸变量 */
  44. /* 文字尺寸 */
  45. /* 图片尺寸 */
  46. /* Border Radius */
  47. /* 水平间距 */
  48. /* 垂直间距 */
  49. /* 透明度 */
  50. /* 文章场景相关 */
  51. /* 修复 H5 端骨架屏样式异常 */
  52. body[data-v-177b00bb] {
  53. height: 100%;
  54. overflow: hidden;
  55. }
  56. .viewport[data-v-177b00bb] {
  57. height: 100%;
  58. display: flex;
  59. flex-direction: column;
  60. }
  61. .search[data-v-177b00bb] {
  62. padding: 0.625rem 0.9375rem;
  63. background-color: #fff;
  64. }
  65. .search .input[data-v-177b00bb] {
  66. display: flex;
  67. align-items: center;
  68. justify-content: space-between;
  69. height: 2rem;
  70. padding-left: 0.8125rem;
  71. color: #8b8b8b;
  72. font-size: 0.875rem;
  73. border-radius: 1rem;
  74. background-color: #f3f4f4;
  75. }
  76. .icon-search[data-v-177b00bb]::before {
  77. margin-right: 0.3125rem;
  78. }
  79. /* 分类 */
  80. .categories[data-v-177b00bb] {
  81. flex: 1;
  82. min-height: 12.5rem;
  83. display: flex;
  84. }
  85. /* 一级分类 */
  86. .primary[data-v-177b00bb] {
  87. overflow: hidden;
  88. width: 5.625rem;
  89. flex: none;
  90. background-color: #f6f6f6;
  91. }
  92. .primary .item[data-v-177b00bb] {
  93. display: flex;
  94. justify-content: center;
  95. align-items: center;
  96. height: 3rem;
  97. font-size: 0.8125rem;
  98. color: #595c63;
  99. position: relative;
  100. }
  101. .primary .item[data-v-177b00bb]::after {
  102. content: "";
  103. position: absolute;
  104. left: 1.3125rem;
  105. bottom: 0;
  106. width: 3rem;
  107. border-top: 0.03125rem solid #e3e4e7;
  108. }
  109. .primary .active[data-v-177b00bb] {
  110. background-color: #fff;
  111. }
  112. .primary .active[data-v-177b00bb]::before {
  113. content: "";
  114. position: absolute;
  115. left: 0;
  116. top: 0;
  117. width: 0.25rem;
  118. height: 100%;
  119. background-color: #27ba9b;
  120. }
  121. .primary .item[data-v-177b00bb]:last-child::after,
  122. .primary .active[data-v-177b00bb]::after {
  123. display: none;
  124. }
  125. /* 二级分类 */
  126. .secondary[data-v-177b00bb] {
  127. background-color: #fff;
  128. }
  129. .secondary .carousel[data-v-177b00bb] {
  130. height: 6.25rem;
  131. margin: 0 0.9375rem 0.625rem;
  132. border-radius: 0.125rem;
  133. overflow: hidden;
  134. }
  135. .secondary .panel[data-v-177b00bb] {
  136. margin: 0 0.9375rem 0;
  137. }
  138. .secondary .title[data-v-177b00bb] {
  139. height: 1.875rem;
  140. line-height: 1.875rem;
  141. color: #333;
  142. font-size: 0.875rem;
  143. border-bottom: 0.03125rem solid #f7f7f8;
  144. }
  145. .secondary .title .more[data-v-177b00bb] {
  146. float: right;
  147. padding-left: 0.625rem;
  148. font-size: 0.75rem;
  149. color: #999;
  150. }
  151. .secondary .more[data-v-177b00bb]::after {
  152. font-family: "erabbit" !important;
  153. content: "\e6c2";
  154. }
  155. .secondary .section[data-v-177b00bb] {
  156. width: 100%;
  157. display: flex;
  158. flex-wrap: wrap;
  159. padding: 0.625rem 0;
  160. }
  161. .secondary .section .goods[data-v-177b00bb] {
  162. width: 4.6875rem;
  163. margin: 0 0.625rem 0.625rem 0;
  164. }
  165. .secondary .section .goods[data-v-177b00bb]:nth-child(3n) {
  166. margin-right: 0;
  167. }
  168. .secondary .section .goods .image[data-v-177b00bb] {
  169. width: 4.6875rem;
  170. height: 4.6875rem;
  171. }
  172. .secondary .section .goods .name[data-v-177b00bb] {
  173. padding: 0.15625rem;
  174. font-size: 0.6875rem;
  175. color: #333;
  176. }
  177. .secondary .section .goods .price[data-v-177b00bb] {
  178. padding: 0.15625rem;
  179. font-size: 0.5625rem;
  180. color: #cf4444;
  181. }
  182. .secondary .section .goods .number[data-v-177b00bb] {
  183. font-size: 0.75rem;
  184. margin-left: 0.0625rem;
  185. }
  186. .sk-transparent[data-v-177b00bb] {
  187. color: transparent !important;
  188. }
  189. .sk-text-14-2857-225[data-v-177b00bb] {
  190. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  191. background-size: 100% 1.225rem;
  192. position: relative !important;
  193. }
  194. .sk-text[data-v-177b00bb] {
  195. background-origin: content-box !important;
  196. background-clip: content-box !important;
  197. background-color: transparent !important;
  198. color: transparent !important;
  199. background-repeat: repeat-y !important;
  200. }
  201. .sk-text-14-2857-218[data-v-177b00bb] {
  202. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  203. background-size: 100% 1.1375rem;
  204. position: relative !important;
  205. }
  206. .sk-text-14-2857-495[data-v-177b00bb] {
  207. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  208. background-size: 100% 1.1375rem;
  209. position: relative !important;
  210. }
  211. .sk-text-14-2857-628[data-v-177b00bb] {
  212. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  213. background-size: 100% 1.1375rem;
  214. position: relative !important;
  215. }
  216. .sk-text-14-2857-163[data-v-177b00bb] {
  217. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  218. background-size: 100% 1.1375rem;
  219. position: relative !important;
  220. }
  221. .sk-text-14-2857-690[data-v-177b00bb] {
  222. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  223. background-size: 100% 1.1375rem;
  224. position: relative !important;
  225. }
  226. .sk-text-14-2857-302[data-v-177b00bb] {
  227. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  228. background-size: 100% 1.1375rem;
  229. position: relative !important;
  230. }
  231. .sk-text-14-2857-730[data-v-177b00bb] {
  232. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  233. background-size: 100% 1.1375rem;
  234. position: relative !important;
  235. }
  236. .sk-text-14-2857-584[data-v-177b00bb] {
  237. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  238. background-size: 100% 1.1375rem;
  239. position: relative !important;
  240. }
  241. .sk-text-14-2857-895[data-v-177b00bb] {
  242. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  243. background-size: 100% 1.1375rem;
  244. position: relative !important;
  245. }
  246. .sk-text-26-6667-885[data-v-177b00bb] {
  247. background-image: linear-gradient(transparent 26.6667%, #eeeeee 0%, #eeeeee 73.3333%, transparent 0%) !important;
  248. background-size: 100% 1.875rem;
  249. position: relative !important;
  250. }
  251. .sk-text-30-0000-892[data-v-177b00bb] {
  252. background-image: linear-gradient(transparent 30%, #eeeeee 0%, #eeeeee 70%, transparent 0%) !important;
  253. background-size: 100% 1.875rem;
  254. position: relative !important;
  255. }
  256. .sk-text-14-2857-648[data-v-177b00bb] {
  257. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  258. background-size: 100% 0.9625rem;
  259. position: relative !important;
  260. }
  261. .sk-opacity[data-v-177b00bb] {
  262. opacity: 0 !important;
  263. }
  264. .sk-text-14-2857-708[data-v-177b00bb] {
  265. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  266. background-size: 100% 1.05rem;
  267. position: relative !important;
  268. }
  269. .sk-text-14-2857-832[data-v-177b00bb] {
  270. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  271. background-size: 100% 0.9625rem;
  272. position: relative !important;
  273. }
  274. .sk-text-14-2857-349[data-v-177b00bb] {
  275. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  276. background-size: 100% 1.05rem;
  277. position: relative !important;
  278. }
  279. .sk-text-26-6667-486[data-v-177b00bb] {
  280. background-image: linear-gradient(transparent 26.6667%, #eeeeee 0%, #eeeeee 73.3333%, transparent 0%) !important;
  281. background-size: 100% 1.875rem;
  282. position: relative !important;
  283. }
  284. .sk-text-30-0000-520[data-v-177b00bb] {
  285. background-image: linear-gradient(transparent 30%, #eeeeee 0%, #eeeeee 70%, transparent 0%) !important;
  286. background-size: 100% 1.875rem;
  287. position: relative !important;
  288. }
  289. .sk-text-14-2857-582[data-v-177b00bb] {
  290. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  291. background-size: 100% 0.9625rem;
  292. position: relative !important;
  293. }
  294. .sk-text-14-2857-938[data-v-177b00bb] {
  295. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  296. background-size: 100% 1.05rem;
  297. position: relative !important;
  298. }
  299. .sk-text-14-2857-108[data-v-177b00bb] {
  300. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  301. background-size: 100% 0.9625rem;
  302. position: relative !important;
  303. }
  304. .sk-text-14-2857-564[data-v-177b00bb] {
  305. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  306. background-size: 100% 1.05rem;
  307. position: relative !important;
  308. }
  309. .sk-text-14-2857-507[data-v-177b00bb] {
  310. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  311. background-size: 100% 0.9625rem;
  312. position: relative !important;
  313. }
  314. .sk-text-14-2857-503[data-v-177b00bb] {
  315. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  316. background-size: 100% 1.05rem;
  317. position: relative !important;
  318. }
  319. .sk-text-14-2857-75[data-v-177b00bb] {
  320. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  321. background-size: 100% 0.9625rem;
  322. position: relative !important;
  323. }
  324. .sk-text-14-2857-965[data-v-177b00bb] {
  325. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  326. background-size: 100% 1.05rem;
  327. position: relative !important;
  328. }
  329. .sk-text-14-2857-71[data-v-177b00bb] {
  330. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  331. background-size: 100% 0.9625rem;
  332. position: relative !important;
  333. }
  334. .sk-text-14-2857-530[data-v-177b00bb] {
  335. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  336. background-size: 100% 1.05rem;
  337. position: relative !important;
  338. }
  339. .sk-text-14-2857-151[data-v-177b00bb] {
  340. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  341. background-size: 100% 0.9625rem;
  342. position: relative !important;
  343. }
  344. .sk-text-14-2857-641[data-v-177b00bb] {
  345. background-image: linear-gradient(transparent 14.2857%, #eeeeee 0%, #eeeeee 85.7143%, transparent 0%) !important;
  346. background-size: 100% 1.05rem;
  347. position: relative !important;
  348. }
  349. .sk-image[data-v-177b00bb] {
  350. background: #efefef !important;
  351. }
  352. .sk-pseudo[data-v-177b00bb]::before,
  353. .sk-pseudo[data-v-177b00bb]::after {
  354. background: #efefef !important;
  355. background-image: none !important;
  356. color: transparent !important;
  357. border-color: transparent !important;
  358. }
  359. .sk-pseudo-rect[data-v-177b00bb]::before,
  360. .sk-pseudo-rect[data-v-177b00bb]::after {
  361. border-radius: 0 !important;
  362. }
  363. .sk-pseudo-circle[data-v-177b00bb]::before,
  364. .sk-pseudo-circle[data-v-177b00bb]::after {
  365. border-radius: 50% !important;
  366. }
  367. .sk-container[data-v-177b00bb] {
  368. position: absolute;
  369. left: 0;
  370. top: 0;
  371. width: 100%;
  372. height: 100%;
  373. overflow: hidden;
  374. background-color: transparent;
  375. }
  376. /**
  377. * 这里是uni-app内置的常用样式变量
  378. *
  379. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  380. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  381. *
  382. */
  383. /**
  384. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  385. *
  386. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  387. */
  388. /* 颜色变量 */
  389. /* 行为相关颜色 */
  390. /* 文字基本颜色 */
  391. /* 背景颜色 */
  392. /* 边框颜色 */
  393. /* 尺寸变量 */
  394. /* 文字尺寸 */
  395. /* 图片尺寸 */
  396. /* Border Radius */
  397. /* 水平间距 */
  398. /* 垂直间距 */
  399. /* 透明度 */
  400. /* 文章场景相关 */
  401. body {
  402. height: 100%;
  403. overflow: hidden;
  404. }
  405. .viewport {
  406. height: 100%;
  407. display: flex;
  408. flex-direction: column;
  409. }
  410. .search {
  411. padding: 0.625rem 0.9375rem;
  412. background-color: #fff;
  413. }
  414. .search .input {
  415. display: flex;
  416. align-items: center;
  417. justify-content: space-between;
  418. height: 2rem;
  419. padding-left: 0.8125rem;
  420. color: #8b8b8b;
  421. font-size: 0.875rem;
  422. border-radius: 1rem;
  423. background-color: #f3f4f4;
  424. }
  425. .icon-search::before {
  426. margin-right: 0.3125rem;
  427. }
  428. /* 分类 */
  429. .categories {
  430. flex: 1;
  431. min-height: 12.5rem;
  432. display: flex;
  433. }
  434. /* 一级分类 */
  435. .primary {
  436. overflow: hidden;
  437. width: 5.625rem;
  438. flex: none;
  439. background-color: #f6f6f6;
  440. }
  441. .primary .item {
  442. display: flex;
  443. justify-content: center;
  444. align-items: center;
  445. height: 3rem;
  446. font-size: 0.8125rem;
  447. color: #595c63;
  448. position: relative;
  449. }
  450. .primary .item::after {
  451. content: "";
  452. position: absolute;
  453. left: 1.3125rem;
  454. bottom: 0;
  455. width: 3rem;
  456. border-top: 0.03125rem solid #e3e4e7;
  457. }
  458. .primary .active {
  459. background-color: #fff;
  460. }
  461. .primary .active::before {
  462. content: "";
  463. position: absolute;
  464. left: 0;
  465. top: 0;
  466. width: 0.25rem;
  467. height: 100%;
  468. background-color: #27ba9b;
  469. }
  470. .primary .item:last-child::after,
  471. .primary .active::after {
  472. display: none;
  473. }
  474. /* 二级分类 */
  475. .secondary {
  476. background-color: #fff;
  477. }
  478. .secondary .carousel {
  479. height: 6.25rem;
  480. margin: 0 0.9375rem 0.625rem;
  481. border-radius: 0.125rem;
  482. overflow: hidden;
  483. }
  484. .secondary .panel {
  485. margin: 0 0.9375rem 0;
  486. }
  487. .secondary .title {
  488. height: 1.875rem;
  489. line-height: 1.875rem;
  490. color: #333;
  491. font-size: 0.875rem;
  492. border-bottom: 0.03125rem solid #f7f7f8;
  493. }
  494. .secondary .title .more {
  495. float: right;
  496. padding-left: 0.625rem;
  497. font-size: 0.75rem;
  498. color: #999;
  499. }
  500. .secondary .more::after {
  501. font-family: "erabbit" !important;
  502. content: "\e6c2";
  503. }
  504. .secondary .section {
  505. width: 100%;
  506. display: flex;
  507. flex-wrap: wrap;
  508. padding: 0.625rem 0;
  509. }
  510. .secondary .section .goods {
  511. width: 4.6875rem;
  512. margin: 0 0.625rem 0.625rem 0;
  513. }
  514. .secondary .section .goods:nth-child(3n) {
  515. margin-right: 0;
  516. }
  517. .secondary .section .goods .image {
  518. width: 4.6875rem;
  519. height: 4.6875rem;
  520. }
  521. .secondary .section .goods .name {
  522. padding: 0.15625rem;
  523. font-size: 0.6875rem;
  524. color: #333;
  525. }
  526. .secondary .section .goods .price {
  527. padding: 0.15625rem;
  528. font-size: 0.5625rem;
  529. color: #cf4444;
  530. }
  531. .secondary .section .goods .number {
  532. font-size: 0.75rem;
  533. margin-left: 0.0625rem;
  534. }