base.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. /**
  2. *全局公共样式
  3. */
  4. .app-content {
  5. background-color: $backColor;
  6. min-height: 100vh;
  7. position: relative;
  8. /* 收银台cashier屏幕大于1000px */
  9. @media screen and (min-width:1100px) {
  10. width:40%;
  11. margin:0 auto;
  12. }
  13. }
  14. /* #ifdef H5 */
  15. .app-content.app-main {
  16. min-height: calc(100vh - 100upx);
  17. }
  18. /* #endif */
  19. .gray_txt {
  20. color: #999 !important;
  21. }
  22. .ph {
  23. font-size: 30upx;
  24. color: gray;
  25. }
  26. .w100 {
  27. width: 100% !important;
  28. }
  29. .ml0{
  30. margin-left: 0 !important;
  31. }
  32. .text_main_color {
  33. color: #ff9000;
  34. }
  35. .underline {
  36. text-decoration: underline;
  37. }
  38. .separate_line {
  39. color: #999;
  40. margin: 0 16upx;
  41. }
  42. .text_sub_com {
  43. color: #999;
  44. font-size: 24upx;
  45. }
  46. .flex {
  47. display: flex;
  48. }
  49. .flex-center-center {
  50. @extend .flex;
  51. align-items: center;
  52. justify-content: center;
  53. }
  54. .flex-center {
  55. display: flex;
  56. align-items: center;
  57. }
  58. .flex-start {
  59. @extend .flex;
  60. align-items: flex-start;
  61. }
  62. .flex-end {
  63. @extend .flex;
  64. align-items: flex-end;
  65. }
  66. .flex-center-between {
  67. @extend .flex;
  68. align-items: center;
  69. justify-content: space-between;
  70. }
  71. .flex-center-around {
  72. @extend .flex;
  73. align-items: center;
  74. justify-content: space-around;
  75. }
  76. .flex-center-evenly {
  77. @extend .flex;
  78. align-items: center;
  79. justify-content: space-evenly;
  80. }
  81. .flex-center-start {
  82. @extend .flex;
  83. align-items: center;
  84. justify-content: flex-start;
  85. }
  86. .flex-center-end {
  87. @extend .flex;
  88. align-items: center;
  89. justify-content: flex-end;
  90. }
  91. // =================== 定义的全局字体普通样式 ========================
  92. .app-padding {
  93. padding: 0 30upx;
  94. }
  95. .app-color-0 {
  96. color: $fontColorMain;
  97. }
  98. .app-color-1 {
  99. color: $mainColor;
  100. }
  101. .app-color-2 {
  102. color: $fontColor2;
  103. }
  104. .app-color-3 {
  105. color: $fontColor3;
  106. }
  107. .app-color-4 {
  108. color: $mainColor1;
  109. }
  110. // 金额
  111. .app-price {
  112. color: #FF2842;
  113. }
  114. .app-bold {
  115. font-weight: bold;
  116. }
  117. .app-size-24 {
  118. font-size: 24upx;
  119. }
  120. .app-size-26 {
  121. font-size: 26upx;
  122. }
  123. .app-size-28 {
  124. font-size: 28upx;
  125. }
  126. .app-size-30 {
  127. font-size: 30upx;
  128. }
  129. .app-size-32 {
  130. font-size: 32upx;
  131. }
  132. .app-size-34 {
  133. font-size: 34upx;
  134. }
  135. .app-size-36 {
  136. font-size: 36upx;
  137. }
  138. .app-size-38 {
  139. font-size: 38upx;
  140. }
  141. .app-size-40 {
  142. font-size: 40upx;
  143. }