common.style.scss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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. page{
  92. padding: 0;
  93. margin: 0;
  94. box-sizing: border-box;
  95. opacity: 1;
  96. color: #333333;
  97. }
  98. /*清除浮动*/
  99. .mimClear:after {
  100. content: "";
  101. display: block;
  102. height: 0;
  103. clear: both;
  104. visibility: hidden;
  105. }
  106. /*单行溢出文字省略*/
  107. .mim-ellipsis {
  108. overflow: hidden;
  109. text-overflow: ellipsis;
  110. white-space: nowrap;
  111. }
  112. /*文字不折行*/
  113. .mim-nowrap {
  114. white-space: nowrap;
  115. }
  116. /*多行文字溢出省略号*/
  117. .mim-multi-line {
  118. display: -webkit-box;
  119. -webkit-box-orient: vertical;
  120. -webkit-line-clamp: 2;
  121. overflow: hidden;
  122. }
  123. /*去除标签默认样式*/
  124. input[type="button"],
  125. input[type="submit"],
  126. input[type="reset"],
  127. textarea,
  128. input,
  129. button,
  130. select {
  131. -webkit-appearance: none;
  132. -moz-appearance: none;
  133. border: 0;
  134. outline: none;
  135. }
  136. /*input公共样式*/
  137. input {
  138. background-color: #f5f6f7;
  139. width: 100%;
  140. }
  141. ::-webkit-input-placeholder {
  142. color: #8088A8;
  143. }
  144. ::-moz-placeholder {
  145. color: #8088A8;
  146. }
  147. ::-moz-placeholder {
  148. color: #8088A8;
  149. }
  150. ::-ms-input-placeholder {
  151. color: #8088A8;
  152. }
  153. /* flex布局 */
  154. .mim-flex-wrap {
  155. display: -webkit-flex;
  156. display: -ms-flexbox;
  157. display: -webkit-box;
  158. display: flex;
  159. -webkit-box-pack: center;
  160. -ms-flex-pack: center;
  161. -webkit-justify-content: center;
  162. justify-content: center;
  163. -webkit-box-align: center;
  164. -ms-flex-align: center;
  165. -webkit-align-items: center;
  166. align-items: center;
  167. }
  168. .mim-flex-wrap-left {
  169. display: -webkit-flex;
  170. display: -ms-flexbox;
  171. display: -webkit-box;
  172. display: flex;
  173. -webkit-justify-content: flex-start;
  174. justify-content: flex-start;
  175. align-items: center;
  176. }
  177. .mim-flex-wrap-right {
  178. display: -webkit-flex;
  179. display: -ms-flexbox;
  180. display: -webkit-box;
  181. display: flex;
  182. -webkit-justify-content: flex-end;
  183. justify-content: flex-end;
  184. align-items: center;
  185. }
  186. .mim-flex-wrap-space-between {
  187. display: flex;
  188. justify-content: space-between;
  189. align-items: center;
  190. }
  191. .mim-flex-vertical {
  192. display: flex;
  193. -webkit-box-orient: vertical;
  194. -webkit-flex-direction: column;
  195. -ms-flex-direction: column;
  196. -webkit-flex-flow: column;
  197. flex-direction: column;
  198. flex-flow: column;
  199. }
  200. .mim-flex-vertical-center {
  201. display: flex;
  202. -webkit-box-orient: vertical;
  203. -webkit-flex-direction: column;
  204. -ms-flex-direction: column;
  205. -webkit-flex-flow: column;
  206. flex-direction: column;
  207. flex-flow: column;
  208. -webkit-box-align: center;
  209. -ms-flex-align: center;
  210. -webkit-align-items: center;
  211. align-items: center;
  212. }
  213. .mim-view{
  214. margin: 24rpx;
  215. min-height: 24rpx;
  216. padding: 24rpx;
  217. border-radius: 24rpx;
  218. opacity: 1;
  219. background: #FFFFFF;
  220. position: relative;
  221. background-position: center;
  222. background-repeat: no-repeat;
  223. background-size: 100% 100%;
  224. box-sizing: border-box;
  225. }
  226. .mim-button{
  227. display: -webkit-flex;
  228. display: -ms-flexbox;
  229. display: -webkit-box;
  230. display: flex;
  231. -webkit-box-pack: center;
  232. -ms-flex-pack: center;
  233. -webkit-justify-content: center;
  234. justify-content: center;
  235. -webkit-box-align: center;
  236. -ms-flex-align: center;
  237. -webkit-align-items: center;
  238. align-items: center;
  239. border-radius: 32rpx;
  240. opacity: 1;
  241. background: #DE2E27;
  242. color: #FFFFFF;
  243. border: none;
  244. cursor: pointer;
  245. &.disabled{
  246. pointer-events: none;
  247. background-color: #8088A8 !important;
  248. cursor: none;
  249. }
  250. }
  251. .mim-view-list {
  252. margin: 24rpx;
  253. min-height: 1rpx;
  254. }
  255. //文字通用样式
  256. @mixin font {
  257. font-weight: normal;
  258. opacity: 1;
  259. letter-spacing: 0;
  260. }
  261. /* 文字尺寸 */
  262. .mim-font-10{
  263. @include font;
  264. font-size: 20rpx !important;
  265. }
  266. .mim-font-12{
  267. @include font;
  268. font-size: 24rpx !important;
  269. }
  270. .mim-font-14{
  271. @include font;
  272. font-size: 28rpx !important;
  273. }
  274. .mim-font-15{
  275. @include font;
  276. font-size: 30rpx !important;
  277. }
  278. .mim-font-16{
  279. @include font;
  280. font-size: 32rpx !important;
  281. }
  282. .mim-font-24{
  283. @include font;
  284. font-size: 48rpx !important;
  285. }
  286. .bold{
  287. font-weight: bold !important;
  288. }
  289. .mimRed{
  290. color: #ff0000 !important;
  291. }