mypopup.wxss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. /* 颜色变量 */
  15. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. .popup {
  28. position: fixed;
  29. left: 0;
  30. right: 0;
  31. top: 0;
  32. height: 100vh;
  33. background-color: rgba(0, 0, 0, 0.4) !important;
  34. z-index: 9998;
  35. }
  36. .popup-info {
  37. position: fixed;
  38. width: 320px;
  39. top: 50%;
  40. left: 50%;
  41. -webkit-transform: translate(-50%, -50%);
  42. transform: translate(-50%, -50%);
  43. font-size: 30rpx;
  44. box-shadow: 0px 1px 13px -6px rgba(0, 0, 0, 0.25);
  45. background-color: #fff;
  46. z-index: 9999;
  47. border-radius: 8px;
  48. display: flex;
  49. flex-direction: column;
  50. align-items: center;
  51. }
  52. .popup-info .popup-title {
  53. width: 320px;
  54. height: 56px;
  55. background: linear-gradient(95.13deg, #5DA4F7 3.75%, #3285E4 95.95%);
  56. border-radius: 8px 8px 0px 0px;
  57. display: flex;
  58. justify-content: center;
  59. align-items: center;
  60. font-family: 'PingFang SC';
  61. font-style: normal;
  62. font-weight: 500;
  63. font-size: 17px;
  64. line-height: 24px;
  65. /* identical to box height, or 140% */
  66. color: #FFFFFF;
  67. }
  68. .popup-info .popup-text {
  69. width: 262px;
  70. display: flex;
  71. justify-content: center;
  72. margin-top: 23px;
  73. text-align: center;
  74. font-family: 'PingFang SC';
  75. font-style: normal;
  76. font-weight: 500;
  77. font-size: 17px;
  78. line-height: 24px;
  79. }
  80. .popup-info .popup-btn {
  81. display: flex;
  82. flex-direction: row;
  83. justify-content: space-between;
  84. width: 250px;
  85. height: 42px;
  86. border-top-color: #f5f5f5;
  87. margin: 0 auto;
  88. margin-top: 22px;
  89. margin-bottom: 20px;
  90. }
  91. .popup-info .popup-btn .btn-left {
  92. display: flex;
  93. width: 107px;
  94. height: 42px;
  95. border: 0.5px solid #569FF4;
  96. border-radius: 35px;
  97. justify-content: center;
  98. align-items: center;
  99. font-family: 'PingFang SC';
  100. font-style: normal;
  101. font-weight: 500;
  102. font-size: 16px;
  103. line-height: 22px;
  104. letter-spacing: -0.2176px;
  105. color: #569FF4;
  106. }
  107. .popup-info .popup-btn .btn-right {
  108. display: flex;
  109. align-items: center;
  110. width: 107px;
  111. height: 42px;
  112. background: linear-gradient(95.13deg, #5DA4F7 3.75%, #3285E4 95.95%);
  113. border-radius: 35px;
  114. justify-content: center;
  115. align-items: center;
  116. font-color: #FFFFFF;
  117. font-family: 'PingFang SC';
  118. font-style: normal;
  119. font-weight: 500;
  120. font-size: 16px;
  121. line-height: 22px;
  122. letter-spacing: -0.2176px;
  123. color: #FFFFFF;
  124. }