uni.css 7.2 KB

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