common.style.scss 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. // 定义内外边距,历遍1-80
  2. @for $i from 0 through 80 {
  3. // 只要双数和能被5除尽的数
  4. @if $i % 2 == 0 or $i % 5 == 0 {
  5. // 定义上下外边距
  6. .u-m-tb-#{$i} {
  7. margin: $i + rpx 0 !important;
  8. }
  9. // 定义左右外边距
  10. .u-m-lr-#{$i} {
  11. margin: 0 $i + rpx !important;
  12. }
  13. // 定义上下内边距
  14. .u-p-tb-#{$i} {
  15. padding: $i + rpx 0 !important;
  16. }
  17. // 定义左右内边距
  18. .u-p-lr-#{$i} {
  19. padding: 0 $i + rpx !important;
  20. }
  21. }
  22. }
  23. .u-font-bold {
  24. font-weight: bold;
  25. }
  26. .u-border-bottom {
  27. border-bottom: 1rpx solid $border-color;
  28. }
  29. .main-color {
  30. color: $main-color;
  31. }
  32. .orange {
  33. color: $orange;
  34. }
  35. .green {
  36. color: $green;
  37. }
  38. .grey {
  39. color: $grey;
  40. }
  41. .white {
  42. color: $white;
  43. }
  44. .empty {
  45. text-align: center;
  46. image {
  47. width: 50vw;
  48. margin-top: 25vh;
  49. }
  50. .empty-text {
  51. margin-top: 30upx
  52. }
  53. }
  54. /*基础字体样式*/
  55. .mim-font-12 {
  56. font-size: 12px;
  57. font-weight: 400;
  58. line-height: 16px;
  59. opacity: 1;
  60. }
  61. .mim-fontBold-12 {
  62. font-size: 12px;
  63. font-weight: bold;
  64. line-height: 16px;
  65. opacity: 1;
  66. }
  67. .mim-font-14 {
  68. font-size: 14px;
  69. font-weight: 400;
  70. line-height: 20px;
  71. opacity: 1;
  72. }
  73. .mim-fontBold-14 {
  74. font-size: 14px;
  75. font-weight: bold;
  76. line-height: 20px;
  77. opacity: 1;
  78. }
  79. .mim-font-16 {
  80. font-size: 16px;
  81. font-weight: 400;
  82. line-height: 22px;
  83. opacity: 1;
  84. }
  85. .mim-fontBold-16 {
  86. font-size: 16px;
  87. font-weight: bold;
  88. line-height: 22px;
  89. opacity: 1;
  90. }
  91. /*清除浮动*/
  92. .mimClear:after {
  93. content: "";
  94. display: block;
  95. height: 0;
  96. clear: both;
  97. visibility: hidden;
  98. }
  99. /*单行溢出文字省略*/
  100. .mim-ellipsis {
  101. overflow: hidden;
  102. text-overflow: ellipsis;
  103. white-space: nowrap;
  104. }
  105. /*文字不折行*/
  106. .mim-nowrap {
  107. white-space: nowrap;
  108. }
  109. /*多行文字溢出省略号*/
  110. .mim-multi-line {
  111. display: -webkit-box;
  112. -webkit-box-orient: vertical;
  113. -webkit-line-clamp: 2;
  114. overflow: hidden;
  115. }
  116. /*去除标签默认样式*/
  117. input[type="button"],
  118. input[type="submit"],
  119. input[type="reset"],
  120. textarea,
  121. input,
  122. button,
  123. select {
  124. -webkit-appearance: none;
  125. -moz-appearance: none;
  126. border: 0;
  127. outline: none;
  128. }
  129. /*input公共样式*/
  130. input {
  131. background-color: #f5f6f7;
  132. width: 100%;
  133. }
  134. ::-webkit-input-placeholder {
  135. color: #8088A8;
  136. }
  137. ::-moz-placeholder {
  138. color: #8088A8;
  139. }
  140. ::-moz-placeholder {
  141. color: #8088A8;
  142. }
  143. ::-ms-input-placeholder {
  144. color: #8088A8;
  145. }
  146. /* flex布局 */
  147. .mim-flex-wrap {
  148. display: -webkit-flex;
  149. display: -ms-flexbox;
  150. display: -webkit-box;
  151. display: flex;
  152. -webkit-box-pack: center;
  153. -ms-flex-pack: center;
  154. -webkit-justify-content: center;
  155. justify-content: center;
  156. -webkit-box-align: center;
  157. -ms-flex-align: center;
  158. -webkit-align-items: center;
  159. align-items: center;
  160. }
  161. .mim-flex-wrap-left {
  162. display: -webkit-flex;
  163. display: -ms-flexbox;
  164. display: -webkit-box;
  165. display: flex;
  166. -webkit-justify-content: flex-start;
  167. justify-content: flex-start;
  168. align-items: center;
  169. }
  170. .mim-flex-wrap-right {
  171. display: -webkit-flex;
  172. display: -ms-flexbox;
  173. display: -webkit-box;
  174. display: flex;
  175. -webkit-justify-content: flex-end;
  176. justify-content: flex-end;
  177. align-items: center;
  178. }
  179. .mim-flex-wrap-space-between {
  180. display: flex;
  181. justify-content: space-between;
  182. align-items: center;
  183. }
  184. .mim-flex-vertical {
  185. display: flex;
  186. -webkit-box-orient: vertical;
  187. -webkit-flex-direction: column;
  188. -ms-flex-direction: column;
  189. -webkit-flex-flow: column;
  190. flex-direction: column;
  191. flex-flow: column;
  192. }
  193. .mim-flex-vertical-center {
  194. display: flex;
  195. -webkit-box-orient: vertical;
  196. -webkit-flex-direction: column;
  197. -ms-flex-direction: column;
  198. -webkit-flex-flow: column;
  199. flex-direction: column;
  200. flex-flow: column;
  201. -webkit-box-align: center;
  202. -ms-flex-align: center;
  203. -webkit-align-items: center;
  204. align-items: center;
  205. }
  206. .mim-view{
  207. margin: 24rpx;
  208. min-height: 24rpx;
  209. padding: 24rpx;
  210. border-radius: 24rpx;
  211. opacity: 1;
  212. background: #FFFFFF;
  213. position: relative;
  214. background-position: center;
  215. background-repeat: no-repeat;
  216. background-size: 100% 100%;
  217. box-sizing: border-box;
  218. }
  219. .mim-button{
  220. display: -webkit-flex;
  221. display: -ms-flexbox;
  222. display: -webkit-box;
  223. display: flex;
  224. -webkit-box-pack: center;
  225. -ms-flex-pack: center;
  226. -webkit-justify-content: center;
  227. justify-content: center;
  228. -webkit-box-align: center;
  229. -ms-flex-align: center;
  230. -webkit-align-items: center;
  231. align-items: center;
  232. border-radius: 32rpx;
  233. opacity: 1;
  234. background: #DE2E27;
  235. color: #FFFFFF;
  236. border: none;
  237. cursor: pointer;
  238. }
  239. .mim-view-list {
  240. margin: 24rpx;
  241. min-height: 1rpx;
  242. }