main-nvue.css 4.5 KB

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