uni-popup.wxss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. .my-fontsize-normal.data-v-7da806a4 {
  15. font-size: 30rpx;
  16. color: #ffffff;
  17. }
  18. .my-fontsize-Large.data-v-7da806a4 {
  19. font-size: 34rpx;
  20. }
  21. .my-fontsize-Small.data-v-7da806a4 {
  22. font-size: 24rpx;
  23. }
  24. .my-fontsize-title.data-v-7da806a4 {
  25. font-size: 36rpx;
  26. }
  27. .my-flex.data-v-7da806a4 {
  28. display: flex;
  29. justify-content: center;
  30. align-items: center;
  31. }
  32. .flex-column.data-v-7da806a4 {
  33. display: flex;
  34. flex-direction: column;
  35. justify-content: space-between;
  36. align-items: flex-start;
  37. }
  38. .flex-column-center.data-v-7da806a4 {
  39. display: flex;
  40. flex-direction: column;
  41. justify-content: center;
  42. align-items: center;
  43. }
  44. .flex-between.data-v-7da806a4 {
  45. display: flex;
  46. justify-content: space-between;
  47. align-items: center;
  48. }
  49. .flex-around.data-v-7da806a4 {
  50. display: flex;
  51. justify-content: space-around;
  52. align-items: center;
  53. }
  54. .flex-start.data-v-7da806a4 {
  55. display: flex;
  56. justify-content: flex-start;
  57. align-items: center;
  58. }
  59. .flex-end.data-v-7da806a4 {
  60. display: flex;
  61. justify-content: flex-end;
  62. align-items: center;
  63. }
  64. .line.data-v-7da806a4 {
  65. position: relative;
  66. }
  67. .line.data-v-7da806a4::before {
  68. content: '';
  69. position: absolute;
  70. top: 50%;
  71. left: 0;
  72. -webkit-transform: translateY(-50%);
  73. transform: translateY(-50%);
  74. width: 6rpx;
  75. height: 30rpx;
  76. border-radius: 2rpx;
  77. background-color: #3F92F9;
  78. }
  79. /* 颜色变量 */
  80. /* 行为相关颜色 */
  81. /* 文字基本颜色 */
  82. /* 背景颜色 */
  83. /* 边框颜色 */
  84. /* 尺寸变量 */
  85. /* 文字尺寸 */
  86. /* 图片尺寸 */
  87. /* Border Radius */
  88. /* 水平间距 */
  89. /* 垂直间距 */
  90. /* 透明度 */
  91. /* 文章场景相关 */
  92. .uni-popup.data-v-7da806a4 {
  93. position: fixed;
  94. z-index: 99;
  95. }
  96. .uni-popup__mask.data-v-7da806a4 {
  97. position: absolute;
  98. top: 0;
  99. bottom: 0;
  100. left: 0;
  101. right: 0;
  102. background-color: rgba(0, 0, 0, 0.4);
  103. opacity: 0;
  104. }
  105. .mask-ani.data-v-7da806a4 {
  106. transition-property: opacity;
  107. transition-duration: 0.2s;
  108. }
  109. .uni-top-mask.data-v-7da806a4 {
  110. opacity: 1;
  111. }
  112. .uni-bottom-mask.data-v-7da806a4 {
  113. opacity: 1;
  114. }
  115. .uni-center-mask.data-v-7da806a4 {
  116. opacity: 1;
  117. }
  118. .uni-popup__wrapper.data-v-7da806a4 {
  119. display: block;
  120. position: absolute;
  121. }
  122. .top.data-v-7da806a4 {
  123. top: 0;
  124. }
  125. .bottom.data-v-7da806a4 {
  126. bottom: 0;
  127. }
  128. .uni-popup__wrapper-box.data-v-7da806a4 {
  129. display: block;
  130. position: relative;
  131. /* iphonex 等安全区设置,底部安全区适配 */
  132. padding-bottom: constant(safe-area-inset-bottom);
  133. padding-bottom: env(safe-area-inset-bottom);
  134. }
  135. .content-ani.data-v-7da806a4 {
  136. transition-property: opacity, -webkit-transform;
  137. transition-property: transform, opacity;
  138. transition-property: transform, opacity, -webkit-transform;
  139. transition-duration: 0.2s;
  140. }
  141. .uni-top-content.data-v-7da806a4 {
  142. -webkit-transform: translateY(0);
  143. transform: translateY(0);
  144. }
  145. .uni-bottom-content.data-v-7da806a4 {
  146. -webkit-transform: translateY(0);
  147. transform: translateY(0);
  148. }
  149. .uni-center-content.data-v-7da806a4 {
  150. -webkit-transform: scale(1);
  151. transform: scale(1);
  152. opacity: 1;
  153. }