common1.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. /*
  2. @author hxq
  3. @version 1.0
  4. 公共样式
  5. **/
  6. .text-white{
  7. color: #fff;
  8. }
  9. .align-center{
  10. text-align: center;
  11. }
  12. .bg-img{
  13. background-size:cover ;
  14. background-repeat: no-repeat;
  15. background-position: center;
  16. }
  17. .title-size{
  18. font-size: $uni-font-size-lg;
  19. }
  20. .w-100{
  21. width: 100%;
  22. }
  23. .min-h-l00{
  24. min-height: calc(100vh - var(--window-top));
  25. box-sizing: border-box;
  26. }
  27. .bgc-gray{
  28. background-color: $uni-bg-color-grey;
  29. }
  30. .bgc-white{
  31. background-color: #fff;
  32. }
  33. .bgc-base{
  34. background-color: $base-color;
  35. }
  36. .color-base{
  37. color: $base-color;
  38. }
  39. .color-white{
  40. color: #fff;
  41. }
  42. .color-price{
  43. color: #FF3A2F ;
  44. }
  45. .color-gray{
  46. color: #797979 ;
  47. }
  48. .color-important{
  49. color: $uni-color-important!important;
  50. }
  51. .btn-default{
  52. background: $base-color;
  53. font-size: 34upx;
  54. text-align: center;
  55. height: 90upx;
  56. line-height: 90upx;
  57. margin: 0 auto;
  58. color: #fff;
  59. }
  60. .btn-default.small{
  61. font-size: 26upx;
  62. height: 58upx;
  63. line-height: 58upx;
  64. }
  65. .btn-default.ghost{
  66. color: $base-color;
  67. font-size: 34upx;
  68. text-align: center;
  69. border-radius: 8upx;
  70. margin: 0 auto;
  71. border: 1px solid $base-color;
  72. background-color: #fff;
  73. }
  74. .btn-disabled{
  75. background: #D9D9D9;
  76. color: #A09E9F;
  77. }
  78. .ghost.disabled{
  79. border: 1px solid $uni-text-color-grey;
  80. color: $uni-text-color-grey;
  81. }
  82. .align-center{
  83. text-align: center;
  84. }
  85. .align-left{
  86. text-align: left;
  87. }
  88. .align-right{
  89. text-align: right;
  90. }
  91. .m20{
  92. margin: 20upx;
  93. }
  94. .p20{
  95. padding: 20upx;
  96. }
  97. .block{
  98. display: block!important;
  99. }
  100. .inline-block{
  101. display: inline-block;
  102. }
  103. .border-box{
  104. box-sizing: border-box;
  105. }
  106. .ellipsis{
  107. overflow: hidden;/*超出部分隐藏*/
  108. text-overflow:ellipsis;/* 超出部分显示省略号 */
  109. white-space: nowrap;/*规定段落中的文本不进行换行 */
  110. }
  111. .break-all{
  112. word-break:break-all;
  113. }
  114. .mz-overflow-line-2,
  115. .mz-overflow-line-4,
  116. .mz-overflow-line-3 {
  117. overflow: hidden;
  118. word-wrap: break-word;
  119. word-break: break-all;
  120. white-space: normal;
  121. display: -webkit-box;
  122. -webkit-box-orient: vertical;
  123. }
  124. /* 2行省略 */
  125. .mz-overflow-line-2 {
  126. -webkit-line-clamp: 2;
  127. }
  128. /* 3行省略 */
  129. .mz-overflow-line-3 {
  130. -webkit-line-clamp: 3;
  131. }
  132. /* 4行省略 */
  133. .mz-overflow-line-4 {
  134. -webkit-line-clamp: 4;
  135. }
  136. //.goods-img-default {
  137. // background: url("/static/img/own/good_default.png") no-repeat;
  138. // background-size: 100% 100%;
  139. //}
  140. /*点击会有阴影*/
  141. .hoverStyle {
  142. filter: brightness(1) contrast(90%);
  143. }
  144. .font-size24{
  145. font-size: 24upx !important;
  146. }
  147. .font-size26{
  148. font-size: 26upx !important;
  149. }
  150. .font-size28{
  151. font-size: 28upx !important;
  152. }
  153. .font-size32{
  154. font-size: 32upx !important;
  155. }
  156. .font-size34{
  157. font-size: 34upx !important;
  158. }
  159. .border-radius-5{
  160. border-radius: 5upx;
  161. }
  162. .border-radius-10{
  163. border-radius: 10upx;
  164. }
  165. .border-radius-50{
  166. border-radius: 50%;
  167. }
  168. .border-gray{
  169. border: 1px solid $uni-border-color;
  170. }
  171. .border-gray-left{
  172. border-left: 1px solid $uni-border-color;
  173. }
  174. .border-gray-right{
  175. border-right: 1px solid $uni-border-color;
  176. }
  177. .border-gray-top{
  178. border-top: 1px solid $uni-border-color;
  179. }
  180. .border-gray-bottom{
  181. border-bottom: 1px solid $uni-border-color;
  182. }
  183. .m20{
  184. margin: 20upx;
  185. }
  186. .p20{
  187. padding: 20upx;
  188. }