common.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. view, scroll-view, text, swiper, swiper-item {
  2. box-sizing: border-box !important;
  3. }
  4. image, img{
  5. display: block;
  6. border: 0;
  7. }
  8. .white-box{
  9. background-color: #fff;
  10. border-radius: 16rpx;
  11. padding: 20rpx;
  12. }
  13. // 底部安全区域
  14. .safe-area-inset-bottom{
  15. padding-bottom: constant(safe-area-inset-bottom) !important;
  16. padding-bottom: env(safe-area-inset-bottom) !important;
  17. }
  18. .safe-area-issue {
  19. margin-bottom: constant(safe-area-inset-bottom) !important;
  20. margin-bottom: env(safe-area-inset-bottom) !important;
  21. }
  22. // 暂无数据
  23. .no-data{
  24. text-align: center;
  25. font-size: 28rpx;
  26. color: #707476;
  27. height: 200rpx;
  28. line-height: 200rpx;
  29. }
  30. uni-page-body {
  31. height: 100%;
  32. }
  33. .page100{
  34. height: 100%;
  35. }
  36. .top-0 {
  37. top: 0;
  38. }
  39. .left-0 {
  40. left: 0;
  41. }
  42. .right-0 {
  43. right: 0;
  44. }
  45. .bottom-0 {
  46. bottom: 0;
  47. }
  48. .text-center {
  49. text-align: center;
  50. }
  51. .flex {
  52. display: flex;
  53. }
  54. .flex-column{
  55. display: flex;
  56. flex-direction: column;
  57. }
  58. .flex1{
  59. flex: 1;
  60. overflow: hidden;
  61. position: relative;
  62. }
  63. .jcc {
  64. justify-content: center;
  65. }
  66. .aic {
  67. align-items: center;
  68. }
  69. .jcsb {
  70. justify-content: space-between;
  71. }
  72. .jcsa {
  73. justify-content: space-around;
  74. }
  75. .aife {
  76. align-items: flex-end;
  77. }
  78. .flex-wrap {
  79. flex-wrap: wrap;
  80. }
  81. .flex-nowrap {
  82. flex-wrap: nowrap;
  83. }
  84. .hidden {
  85. overflow: hidden;
  86. }
  87. .width100 {
  88. width: 100%;
  89. }
  90. .height100 {
  91. height: 100%;
  92. }
  93. .padding20{
  94. padding: 20rpx;
  95. }
  96. .paddinglr20{
  97. padding: 0 20rpx;
  98. }
  99. .bold {
  100. font-weight: bold;
  101. }
  102. .position-r {
  103. position: relative;
  104. }
  105. .position-a {
  106. position: absolute;
  107. }
  108. .position-f {
  109. position: fixed;
  110. }
  111. .position-s {
  112. position: sticky;
  113. }
  114. .ellipsis {
  115. text-overflow: ellipsis;
  116. overflow: hidden;
  117. white-space: nowrap;
  118. }
  119. .ellipsis-1{
  120. overflow: hidden;
  121. word-break: break-all;
  122. text-overflow: ellipsis;
  123. display: -webkit-box;
  124. -webkit-line-clamp: 1;
  125. -webkit-box-orient: vertical;
  126. -webkit-box-pack: center;//设置高度后只有一行时上下居中
  127. }
  128. .ellipsis-2{
  129. overflow: hidden;
  130. word-break: break-all;
  131. text-overflow: ellipsis;
  132. display: -webkit-box;
  133. -webkit-line-clamp: 2;
  134. -webkit-box-orient: vertical;
  135. -webkit-box-pack: center;//设置高度后只有一行时上下居中
  136. }
  137. // 底部安全区域
  138. .safe-area-inset-bottom{
  139. padding-bottom: constant(safe-area-inset-bottom) !important;
  140. padding-bottom: env(safe-area-inset-bottom) !important;
  141. }
  142. .safe-area-issue {
  143. margin-bottom: constant(safe-area-inset-bottom) !important;
  144. margin-bottom: env(safe-area-inset-bottom) !important;
  145. }