main-nvue.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  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-wrap {
  22. flex-wrap: wrap;
  23. }
  24. .align-start {
  25. align-items: flex-start;
  26. }
  27. .align-end {
  28. align-items: flex-end;
  29. }
  30. .align-center {
  31. align-items: center;
  32. }
  33. .align-stretch {
  34. align-items: stretch;
  35. }
  36. .justify-start {
  37. justify-content: flex-start;
  38. }
  39. .justify-end {
  40. justify-content: flex-end;
  41. }
  42. .justify-center {
  43. justify-content: center;
  44. }
  45. .justify-between {
  46. justify-content: space-between;
  47. }
  48. .justify-around {
  49. justify-content: space-around;
  50. }
  51. /* ==================
  52. position
  53. ==================== */
  54. .pos-relative {
  55. position: relative;
  56. }
  57. .pos-center{
  58. position: absolute;
  59. top: 0;
  60. left: 0;
  61. right: 0;
  62. bottom: 0;
  63. justify-content: center;
  64. align-items: center;
  65. }
  66. .pos-top-center{
  67. position: absolute;
  68. top: 0;
  69. left: 0;
  70. right: 0;
  71. justify-content: center;
  72. align-items: center;
  73. }
  74. /* ==================
  75. 线
  76. ==================== */
  77. .border-1rpx-black {
  78. border-width: 1rpx;
  79. border-style: solid;
  80. border-color: #000000;
  81. }
  82. /* ==================
  83. 文本
  84. ==================== */
  85. .text-18px {
  86. font-size: 18px;
  87. /* line-height: 36px; */
  88. }
  89. .text-16px {
  90. font-size: 16px;
  91. /* line-height: 32px; */
  92. }
  93. .text-11px {
  94. font-size: 11px;
  95. /* line-height: 22px; */
  96. }
  97. .text-12px {
  98. font-size: 12px;
  99. }
  100. .text-13px {
  101. font-size: 13px;
  102. /* line-height: 23px; */
  103. }
  104. .text-14px {
  105. font-size: 14px;
  106. /* line-height: 28px; */
  107. }
  108. .text-15px {
  109. font-size: 15px;
  110. /* line-height: 30px; */
  111. }
  112. .text-22px {
  113. font-size: 22px;
  114. height: 22px;
  115. line-height: 22px;
  116. }
  117. .text-26px {
  118. font-size: 26px;
  119. /* line-height: 52px; */
  120. }
  121. .text-18px-before::before {
  122. font-size: 18px;
  123. }
  124. .text-20px-before::before {
  125. font-size: 20px;
  126. }
  127. .text-22px-before::before {
  128. font-size: 22px;
  129. }
  130. /* .text-price::before {
  131. content: "¥";
  132. font-size: 80%;
  133. margin-right: 4upx;
  134. } */
  135. .text-cut {
  136. text-overflow: ellipsis;
  137. /* white-space: nowrap; */
  138. overflow: hidden;
  139. }
  140. .text-lines1{
  141. /** 显示的行数 **/
  142. lines: 1;
  143. }
  144. .text-lines2{
  145. /** 显示的行数 **/
  146. lines: 2;
  147. }
  148. .text-bold {
  149. font-weight: bold;
  150. }
  151. .text-medium {
  152. font-weight: 400;
  153. }
  154. .text-center {
  155. text-align: center;
  156. }
  157. .text-content {
  158. line-height: 1.6;
  159. }
  160. .text-left {
  161. text-align: left;
  162. }
  163. .text-right {
  164. text-align: right;
  165. }
  166. .text-red,
  167. .line-red,
  168. .lines-red {
  169. color: #e54d42;
  170. }
  171. .text-orange,
  172. .line-orange,
  173. .lines-orange {
  174. color: #f37b1d;
  175. }
  176. .text-yellow,
  177. .line-yellow,
  178. .lines-yellow {
  179. color: #fbbd08;
  180. }
  181. .text-olive,
  182. .line-olive,
  183. .lines-olive {
  184. color: #8dc63f;
  185. }
  186. .text-green,
  187. .line-green,
  188. .lines-green {
  189. color: #39b54a;
  190. }
  191. .text-cyan,
  192. .line-cyan,
  193. .lines-cyan {
  194. color: #1cbbb4;
  195. }
  196. .text-blue,
  197. .line-blue,
  198. .lines-blue {
  199. color: #0081ff;
  200. }
  201. .text-purple,
  202. .line-purple,
  203. .lines-purple {
  204. color: #6739b6;
  205. }
  206. .text-mauve,
  207. .line-mauve,
  208. .lines-mauve {
  209. color: #9c26b0;
  210. }
  211. .text-pink,
  212. .line-pink,
  213. .lines-pink {
  214. color: #e03997;
  215. }
  216. .text-brown,
  217. .line-brown,
  218. .lines-brown {
  219. color: #a5673f;
  220. }
  221. .text-grey,
  222. .line-grey,
  223. .lines-grey {
  224. color: #8799a3;
  225. }
  226. .line-mGrey {
  227. color: #EAEAEA;
  228. }
  229. .text-gray,
  230. .line-gray,
  231. .lines-gray {
  232. color: #aaaaaa;
  233. }
  234. .text-black,
  235. .line-black,
  236. .lines-black {
  237. color: #333333;
  238. }
  239. .text-white,
  240. .line-white,
  241. .lines-white {
  242. color: #ffffff;
  243. }
  244. /* -- 内外边距 -- */
  245. .margin-0 {
  246. margin: 0;
  247. }
  248. .margin-12px {
  249. margin: 12px;
  250. }