main-nvue.css 5.0 KB

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