uni.css 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
  1. @font-face {
  2. font-family: 'ld'; /* project id 2240573 */
  3. src: url('https://at.alicdn.com/t/font_2240573_1099rtry6zug.eot');
  4. src: url('https://at.alicdn.com/t/font_2240573_1099rtry6zug.eot?#iefix') format('embedded-opentype'),
  5. url('https://at.alicdn.com/t/font_2240573_1099rtry6zug.woff2') format('woff2'),
  6. url('https://at.alicdn.com/t/font_2240573_1099rtry6zug.woff') format('woff'),
  7. url('https://at.alicdn.com/t/font_2240573_1099rtry6zug.ttf') format('truetype'),
  8. url('https://at.alicdn.com/t/font_2240573_1099rtry6zug.svg#iconfont') format('svg');
  9. }
  10. .iconfont {
  11. font-family: "ld" !important;
  12. font-size: 30rpx;
  13. font-style: normal;
  14. -webkit-font-smoothing: antialiased;
  15. -webkit-text-stroke-width: 0.2px;
  16. -moz-osx-font-smoothing: grayscale;
  17. }
  18. @font-face {
  19. font-family: "iconfont2";
  20. /* Project id 3514483 */
  21. src: url('@/static/font/iconfont2.woff2') format('woff2'),
  22. url('@/static/font/iconfont2.woff') format('woff'),
  23. url('@/static/font/iconfont2.ttf') format('truetype');
  24. }
  25. .iconfont2 {
  26. font-family: "iconfont2";
  27. }
  28. /*通用 */
  29. view {
  30. font-size: 28rpx;
  31. }
  32. progress,
  33. checkbox-group {
  34. width: 100%;
  35. }
  36. form {
  37. width: 100%;
  38. }
  39. button[disabled] {
  40. color: #999 !important;
  41. background: #F5F5F5 !important;
  42. border-color: #F5F5F5 !important;
  43. }
  44. button::after {
  45. border: none;
  46. }
  47. button {
  48. border: none;
  49. padding: 0;
  50. margin: 0;
  51. background-color: transparent;
  52. background: transparent;
  53. }
  54. /* 提交按钮 */
  55. .u-btn {
  56. width: 100%;
  57. height: 86rpx;
  58. background: #01321d;
  59. border-radius: 43rpx;
  60. font-size: 30rpx;
  61. color: #fff;
  62. text-align: center;
  63. line-height: 86rpx;
  64. }
  65. .u-btn-two {
  66. width: 100%;
  67. height: 84rpx;
  68. background: #d7ebde;
  69. border-radius: 43rpx;
  70. border: 1px solid #00321e;
  71. font-size: 30rpx;
  72. color: #00321E;
  73. text-align: center;
  74. line-height: 84rpx;
  75. }
  76. /* 订单按钮 */
  77. .u-order-btn {
  78. width: 200rpx;
  79. height: 70rpx;
  80. line-height: 70rpx;
  81. border-radius: 35px;
  82. font-size: 28rpx;
  83. margin-left: 22rpx;
  84. }
  85. .u-br-999{
  86. border: #999999;
  87. }
  88. .u-shop-teile-pd{
  89. padding: 15rpx 30rpx 24rpx;
  90. }
  91. /* 标签 例如:京东自营 */
  92. .tipsStatus{
  93. display: inline-block;
  94. width: 102rpx;
  95. height: 28rpx;
  96. background: #ff0000;
  97. border-radius: 10rpx 0px 10rpx 0px;
  98. line-height: 28rpx;
  99. text-align: center;
  100. margin-right: 10rpx;
  101. color: #fff;
  102. font-size: 20rpx;
  103. }
  104. /* 透明的 */
  105. .u-op6 {
  106. opacity: .6;
  107. }
  108. /* 文本居中 */
  109. .u-text-center {
  110. text-align: center;
  111. }
  112. .u-text-left {
  113. text-align: left;
  114. }
  115. .u-text-right {
  116. text-align: right;
  117. }
  118. .u-left {
  119. float: left;
  120. }
  121. .u-right{
  122. float: right;
  123. }
  124. /* flex */
  125. .u-flex {
  126. display: flex;
  127. }
  128. .u-flex1 {
  129. flex: 1;
  130. }
  131. .u-flex-center {
  132. display: flex;
  133. flex-direction: row;
  134. align-items: center;
  135. }
  136. .u-flex-center-sb {
  137. display: flex;
  138. flex-direction: row;
  139. align-items: center;
  140. justify-content: space-between;
  141. }
  142. .u-flex-center-sa {
  143. display: flex;
  144. flex-direction: row;
  145. align-items: center;
  146. justify-content: space-around;
  147. }
  148. .u-flex-column-center {
  149. display: flex;
  150. flex-direction: column;
  151. align-items: center;
  152. }
  153. .u-flex-column-start {
  154. display: flex;
  155. flex-direction: column;
  156. align-items: flex-start;
  157. }
  158. .u-flex-column-end {
  159. display: flex;
  160. flex-direction: column;
  161. align-items: flex-end;
  162. }
  163. .u-flex-warp {
  164. flex-wrap: wrap;
  165. }
  166. .u-del {
  167. text-decoration: line-through;
  168. }
  169. /* page */
  170. .u-CCC {
  171. color: #ccc;
  172. }
  173. .u-333 {
  174. color: #333;
  175. }
  176. .u-666 {
  177. color: #666;
  178. }
  179. .u-999 {
  180. color: #999;
  181. }
  182. .u-4D4D4D{
  183. color: #4D4D4D;
  184. }
  185. .u-FFF {
  186. color: #FFF;
  187. }
  188. .u-02331F {
  189. color: #02331F;
  190. }
  191. .u-193E2C{
  192. color: #193E2C;
  193. }
  194. .u-D1D9D4{
  195. color: #D1D9D4;
  196. }
  197. .u-006BC9 {
  198. color: #006BC9;
  199. }
  200. .u-EFEFEF {
  201. color: #EFEFEF;
  202. }
  203. .u-707070 {
  204. color: #707070;
  205. }
  206. .u-181818 {
  207. color: #181818;
  208. }
  209. .u-1A1A1A {
  210. color: #1A1A1A;
  211. }
  212. .u-060606 {
  213. color: #060606;
  214. }
  215. .u-EF501F {
  216. color: #EF501F;
  217. }
  218. .u-CA7E57 {
  219. color: #CA7E57;
  220. }
  221. .u-FF0000 {
  222. color: #FF0000;
  223. }
  224. .u-ED3D07 {
  225. color: #ED3D07;
  226. }
  227. .u-DCCDA4 {
  228. color: #DCCDA4;
  229. }
  230. .u-DAC6A1 {
  231. color: #DAC6A1;
  232. }
  233. .u-0067DE {
  234. color: #0067DE;
  235. }
  236. .u-179400 {
  237. color: #179400;
  238. }
  239. .u-00321E {
  240. color: #00321E;
  241. }
  242. .u-D40007 {
  243. color: #D40007;
  244. }
  245. .u-EC6044 {
  246. color: #EC6044;
  247. }
  248. .u-FE5151 {
  249. color: #FE5151;
  250. }
  251. .u-FF2323 {
  252. color: #FF2323;
  253. }
  254. .u-font20 {
  255. font-size: 20rpx;
  256. }
  257. .u-font22 {
  258. font-size: 22rpx;
  259. }
  260. .u-font24 {
  261. font-size: 24rpx;
  262. }
  263. .u-font26 {
  264. font-size: 26rpx;
  265. }
  266. .u-font28 {
  267. font-size: 28rpx;
  268. }
  269. .u-font30 {
  270. font-size: 30rpx;
  271. }
  272. .u-font32 {
  273. font-size: 32rpx;
  274. }
  275. .u-font34 {
  276. font-size: 34rpx;
  277. }
  278. .u-font36 {
  279. font-size: 36rpx;
  280. }
  281. .u-font40 {
  282. font-size: 40rpx;
  283. }
  284. .u-font44 {
  285. font-size: 44rpx;
  286. }
  287. .u-font54{
  288. font-size: 54rpx;
  289. }
  290. .u-p30 {
  291. padding: 30rpx;
  292. }
  293. .u-plr30 {
  294. padding: 0 30rpx;
  295. }
  296. .u-ptb30 {
  297. padding: 30rpx 0;
  298. }
  299. .u-ml5 {
  300. margin-left: 5rpx;
  301. }
  302. .u-ml10 {
  303. margin-left: 10rpx;
  304. }
  305. .u-ml15 {
  306. margin-left: 15rpx;
  307. }
  308. .u-ml20 {
  309. margin-left: 20rpx;
  310. }
  311. .u-ml25 {
  312. margin-left: 25rpx;
  313. }
  314. .u-ml30 {
  315. margin-left: 30rpx;
  316. }
  317. .u-ml45 {
  318. margin-left: 45rpx;
  319. }
  320. .u-ml80{
  321. margin-left: 80rpx;
  322. }
  323. .u-mr5 {
  324. margin-right: 5rpx;
  325. }
  326. .u-mr10 {
  327. margin-right: 10rpx;
  328. }
  329. .u-mr15 {
  330. margin-right: 15rpx;
  331. }
  332. .u-mr20 {
  333. margin-right: 20rpx;
  334. }
  335. .u-mr25 {
  336. margin-right: 25rpx;
  337. }
  338. .u-mr30 {
  339. margin-right: 30rpx;
  340. }
  341. .u-mr45 {
  342. margin-right: 45rpx;
  343. }
  344. .u-mt5 {
  345. margin-top: 5rpx;
  346. }
  347. .u-mt10 {
  348. margin-top: 10rpx;
  349. }
  350. .u-mt15 {
  351. margin-top: 15rpx;
  352. }
  353. .u-mt20 {
  354. margin-top: 20rpx;
  355. }
  356. .u-mt25 {
  357. margin-top: 25rpx;
  358. }
  359. .u-mt30 {
  360. margin-top: 30rpx;
  361. }
  362. .u-mt40 {
  363. margin-top: 40rpx;
  364. }
  365. .u-mt50 {
  366. margin-top: 50rpx;
  367. }
  368. .u-bold {
  369. font-weight: bold;
  370. }
  371. .u-bold-normal {
  372. font-weight: normal;
  373. }
  374. /* 背景色 */
  375. .u-bg-fff {
  376. background-color: #FFFFFF;
  377. }
  378. .u-bg-abc5b5 {
  379. background-color: #abc5b5;
  380. }
  381. .u-bg-00321E {
  382. background-color: #00321E;
  383. }
  384. .u-bg {
  385. background-color: #02331F;
  386. }
  387. .u-bg-red {
  388. background-color: #FF0000;
  389. }
  390. .u-bg-D5C49B {
  391. background-color: #D5C49B;
  392. }
  393. .u-bg-hui {
  394. background-color: #DCCDA4;
  395. }
  396. .turn180 {
  397. transform: rotate(180deg);
  398. }
  399. /* 文本溢出隐藏 */
  400. .u-text1 {
  401. overflow: hidden;
  402. white-space: nowrap;
  403. text-overflow: ellipsis;
  404. }
  405. /*字体超过2行自动隐藏并加上...*/
  406. .u-text2 {
  407. overflow: hidden;
  408. text-overflow: ellipsis;
  409. display: -webkit-box;
  410. -webkit-line-clamp: 2;
  411. -webkit-box-orient: vertical;
  412. word-wrap: break-word;
  413. word-break: break-all;
  414. white-space: normal !important
  415. }
  416. /*字体超过3行自动隐藏并加上...*/
  417. .u-text3 {
  418. display: -webkit-box;
  419. -webkit-box-orient: vertical;
  420. -webkit-line-clamp: 3;
  421. overflow: hidden;
  422. word-wrap: break-word;
  423. word-break: break-all;
  424. white-space: normal !important
  425. }
  426. /* 产品图尺寸大小 */
  427. .u-goods120 {
  428. width: 120rpx;
  429. height: 120rpx;
  430. overflow: hidden;
  431. }
  432. .u-goods160 {
  433. width: 160rpx;
  434. height: 160rpx;
  435. border-radius: 8rpx;
  436. overflow: hidden;
  437. }
  438. .u-goods200 {
  439. width: 200rpx;
  440. height: 200rpx;
  441. border-radius: 8rpx;
  442. overflow: hidden;
  443. }
  444. .u-goods226 {
  445. width: 226rpx;
  446. height: 226rpx;
  447. border-radius: 8rpx;
  448. overflow: hidden;
  449. }
  450. .u-goods280 {
  451. width: 280rpx;
  452. height: 280rpx;
  453. }
  454. .u-goods336 {
  455. width: 336rpx;
  456. height: 336rpx;
  457. }
  458. /* 头像大小 */
  459. .u-avatar65 {
  460. width: 65rpx;
  461. height: 65rpx;
  462. border-radius: 50%;
  463. }
  464. .u-avatar75 {
  465. width: 75rpx;
  466. height: 75rpx;
  467. border-radius: 50%;
  468. border: 1px solid #fff;
  469. }
  470. .u-avatar83 {
  471. width: 83rpx;
  472. height: 83rpx;
  473. border-radius: 50%;
  474. }
  475. .u-avatar92 {
  476. width: 92rpx;
  477. height: 92rpx;
  478. border-radius: 50%;
  479. }
  480. .u-avatar104 {
  481. width: 104rpx;
  482. height: 104rpx;
  483. border-radius: 50%;
  484. }
  485. .u-avatar106 {
  486. width: 106rpx;
  487. height: 106rpx;
  488. border-radius: 50%;
  489. border: 2px solid #fff;
  490. }
  491. /* 评论图片 */
  492. .u-ctImg180 {
  493. width: 180rpx;
  494. height: 180rpx;
  495. }
  496. /* 边框,下分割线 */
  497. .u-border {
  498. border-bottom: 2rpx solid #E6E6E6;
  499. }
  500. .rich-text image{
  501. height: auto;
  502. max-width: 100%;
  503. }
  504. .overHeight{
  505. max-height: 340rpx;
  506. overflow-y: auto;
  507. }
  508. .viewWidthTitle{
  509. width: 420rpx;
  510. }