main-nvue.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. /* ==================
  2. 布局
  3. ==================== */
  4. /* -- flex弹性布局 -- */
  5. .flex {
  6. display: flex;
  7. }
  8. .flex-sub {
  9. flex: 1;
  10. }
  11. .flex-twice {
  12. flex: 2;
  13. }
  14. .flex-treble {
  15. flex: 3;
  16. }
  17. /* nvue 默认 column */
  18. .flex-direction-row {
  19. flex-direction: row;
  20. }
  21. .flex-direction-column {
  22. flex-direction: column;
  23. }
  24. .flex-wrap {
  25. flex-wrap: wrap;
  26. }
  27. .align-start {
  28. align-items: flex-start;
  29. }
  30. .align-end {
  31. align-items: flex-end;
  32. }
  33. .align-center {
  34. align-items: center;
  35. }
  36. .align-stretch {
  37. align-items: stretch;
  38. }
  39. .justify-start {
  40. justify-content: flex-start;
  41. }
  42. .justify-end {
  43. justify-content: flex-end;
  44. }
  45. .justify-center {
  46. justify-content: center;
  47. }
  48. .justify-between {
  49. justify-content: space-between;
  50. }
  51. .justify-around {
  52. justify-content: space-around;
  53. }
  54. /* ==================
  55. position
  56. ==================== */
  57. .pos-relative {
  58. position: relative;
  59. }
  60. .pos-center {
  61. position: absolute;
  62. top: 0;
  63. left: 0;
  64. right: 0;
  65. bottom: 0;
  66. justify-content: center;
  67. align-items: center;
  68. }
  69. .pos-top-center {
  70. position: absolute;
  71. top: 0;
  72. left: 0;
  73. right: 0;
  74. justify-content: center;
  75. align-items: center;
  76. }
  77. /* ==================
  78. 线
  79. ==================== */
  80. .border-1rpx-black {
  81. border-width: 1rpx;
  82. border-style: solid;
  83. border-color: #000000;
  84. }
  85. .border-1rpx-bottom-black {
  86. border-width: 1rpx;
  87. border-style: solid;
  88. border-color: rgba(0,0,0,0.7);
  89. }
  90. .border-1rpx-red {
  91. border-width: 1rpx;
  92. border-style: solid;
  93. border-color: #FF0000;
  94. }
  95. /* ==================
  96. 蒙层 透明度
  97. ==================== */
  98. .mask-bg-07 {
  99. background-color: rgba(0, 0, 0, 0.7);
  100. }
  101. /* ==================
  102. 文本
  103. ==================== */
  104. .text-18px {
  105. font-size: 18px;
  106. /* line-height: 36px; */
  107. }
  108. .text-16px {
  109. font-size: 16px;
  110. /* line-height: 32px; */
  111. }
  112. .text-11px {
  113. font-size: 11px;
  114. /* line-height: 22px; */
  115. }
  116. .text-12px {
  117. font-size: 12px;
  118. }
  119. .text-13px {
  120. font-size: 13px;
  121. /* line-height: 23px; */
  122. }
  123. .text-14px {
  124. font-size: 14px;
  125. /* line-height: 28px; */
  126. }
  127. .text-15px {
  128. font-size: 15px;
  129. /* line-height: 30px; */
  130. }
  131. .text-22px {
  132. font-size: 22px;
  133. height: 22px;
  134. line-height: 22px;
  135. }
  136. .text-26px {
  137. font-size: 26px;
  138. /* line-height: 52px; */
  139. }
  140. .text-38px {
  141. font-size: 38px;
  142. /* line-height: 52px; */
  143. }
  144. .text-18px-before::before {
  145. font-size: 18px;
  146. }
  147. .text-20px-before::before {
  148. font-size: 20px;
  149. }
  150. .text-22px-before::before {
  151. font-size: 22px;
  152. }
  153. /* .text-price::before {
  154. content: "¥";
  155. font-size: 80%;
  156. margin-right: 4upx;
  157. } */
  158. .text-cut {
  159. text-overflow: ellipsis;
  160. /* white-space: nowrap; */
  161. overflow: hidden;
  162. }
  163. .text-lines1 {
  164. /** 显示的行数 **/
  165. lines: 1;
  166. }
  167. .text-lines2 {
  168. /** 显示的行数 **/
  169. lines: 2;
  170. }
  171. .text-bold {
  172. font-weight: bold;
  173. }
  174. .text-medium {
  175. font-weight: 400;
  176. }
  177. .text-center {
  178. text-align: center;
  179. }
  180. .text-content {
  181. line-height: 1.6;
  182. }
  183. .text-left {
  184. text-align: left;
  185. }
  186. .text-right {
  187. text-align: right;
  188. }
  189. .text-red,
  190. .line-red,
  191. .lines-red {
  192. color: #e54d42;
  193. }
  194. .text-orange,
  195. .line-orange,
  196. .lines-orange {
  197. color: #f37b1d;
  198. }
  199. .text-yellow,
  200. .line-yellow,
  201. .lines-yellow {
  202. color: #fbbd08;
  203. }
  204. .text-olive,
  205. .line-olive,
  206. .lines-olive {
  207. color: #8dc63f;
  208. }
  209. .text-green,
  210. .line-green,
  211. .lines-green {
  212. color: #39b54a;
  213. }
  214. .text-cyan,
  215. .line-cyan,
  216. .lines-cyan {
  217. color: #1cbbb4;
  218. }
  219. .text-blue,
  220. .line-blue,
  221. .lines-blue {
  222. color: #0081ff;
  223. }
  224. .text-purple,
  225. .line-purple,
  226. .lines-purple {
  227. color: #6739b6;
  228. }
  229. .text-mauve,
  230. .line-mauve,
  231. .lines-mauve {
  232. color: #9c26b0;
  233. }
  234. .text-pink,
  235. .line-pink,
  236. .lines-pink {
  237. color: #e03997;
  238. }
  239. .text-brown,
  240. .line-brown,
  241. .lines-brown {
  242. color: #a5673f;
  243. }
  244. .text-grey,
  245. .line-grey,
  246. .lines-grey {
  247. color: #8799a3;
  248. }
  249. .line-mGrey {
  250. color: #EAEAEA;
  251. }
  252. .text-gray,
  253. .line-gray,
  254. .lines-gray {
  255. color: #aaaaaa;
  256. }
  257. .text-black,
  258. .line-black,
  259. .lines-black {
  260. color: #333333;
  261. }
  262. .text-white,
  263. .line-white,
  264. .lines-white {
  265. color: #ffffff;
  266. }
  267. /* 蓝紫 */
  268. .make-line-bPurple::after,
  269. .make-lines-bPurple::after {
  270. border-color: rgba(151, 151, 255, 1);
  271. }
  272. .make-line-bPurple,
  273. .make-lines-bPurple,
  274. .make-text-bPurple {
  275. color: rgba(151, 151, 255, 1);
  276. }
  277. .make-bg-bPurple {
  278. background-color: rgba(151, 151, 255, 1);
  279. }
  280. .bg-gray {
  281. background-color: #f0f0f0;
  282. color: #333333;
  283. }
  284. .bg-grey {
  285. background-color: #8799a3;
  286. color: #ffffff;
  287. }
  288. .bg-grey-mid {
  289. background-color: #CDCDCD;
  290. color: #ffffff;
  291. }
  292. /* -- 内外边距 -- */
  293. .margin-0 {
  294. margin: 0;
  295. }
  296. .margin-12px {
  297. margin: 12px;
  298. }
  299. .margin-17px {
  300. margin: 17px;
  301. }
  302. .margin-24px {
  303. margin: 24px;
  304. }
  305. .position-relative {
  306. position: relative;
  307. }
  308. .position-absolute-center {
  309. position: absolute;
  310. top: 0;
  311. bottom: 0;
  312. left: 0;
  313. right: 0;
  314. justify-content: center;
  315. align-items: center;
  316. }
  317. .position-absolute-center-bottom {
  318. position: absolute;
  319. /* top: 0; */
  320. bottom: 0;
  321. left: 0;
  322. right: 0;
  323. /* justify-content: center; */
  324. align-items: center;
  325. }
  326. .position-absolute-center-top {
  327. position: absolute;
  328. top: 0;
  329. /* bottom: 0; */
  330. left: 0;
  331. right: 0;
  332. /* justify-content: center; */
  333. align-items: center;
  334. }
  335. .position-absolute-center-around {
  336. position: absolute;
  337. top: 0;
  338. bottom: 0;
  339. left: 0;
  340. right: 0;
  341. justify-content: space-around;
  342. align-items: center;
  343. }
  344. .position-absolute-right-top {
  345. position: absolute;
  346. right: 0;
  347. top: 0;
  348. }
  349. /* 自定义导航栏的图片大小 */
  350. .png-more {
  351. width: 20px;
  352. height: 20px;
  353. }
  354. .png-more-black {
  355. width: 16px;
  356. height: 16px;
  357. }