yModal.wxss 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. @charset "UTF-8";
  2. /* 需要放到文件最上面 */
  3. /* 水平间距 */
  4. /* 水平间距 */
  5. /*
  6. 以下变量是默认值,如不需要修改可以不用给下面的变量重新赋值
  7. */
  8. /* 水平间距 */
  9. .yModal-container {
  10. width: 100%;
  11. height: 100%;
  12. position: fixed;
  13. top: 0;
  14. left: 0;
  15. z-index: -1;
  16. display: none;
  17. }
  18. .yModal-container.show {
  19. z-index: 900;
  20. display: block;
  21. }
  22. .yModal {
  23. position: absolute;
  24. width: 622rpx;
  25. background-color: #fff;
  26. top: 50%;
  27. left: 50%;
  28. -webkit-transform: translate3d(-50%, -50%, 0);
  29. transform: translate3d(-50%, -50%, 0);
  30. border-radius: 30rpx;
  31. font-size: 32rpx;
  32. color: #323233;
  33. z-index: 902;
  34. }
  35. .yModal .yModal-content {
  36. padding: 40rpx 30rpx;
  37. }
  38. .yModal .yModal-title {
  39. text-align: center;
  40. }
  41. .yModal .yModal-bottom {
  42. display: flex;
  43. }
  44. .yModal .yModal-bottom .yModal-bottom-item {
  45. flex: 1;
  46. }
  47. .yModal .yModal-bottom .yModal-bottom-item:last-of-type .yModal-bottom-btn {
  48. border-left: 1px solid #EBEDF0;
  49. border-bottom-left-radius: 0;
  50. }
  51. .yModal .yModal-bottom .yModal-bottom-btn {
  52. border: 0;
  53. border-top: 1px solid #EBEDF0;
  54. border-top-left-radius: 0;
  55. border-top-right-radius: 0;
  56. }
  57. .yModal .yModal-bottom .yModal-bottom-btn.active {
  58. opacity: 0.6;
  59. }
  60. .yModal .yModal-bottom .confirm-btn {
  61. color: #3371FF;
  62. }
  63. .yModal-mask {
  64. background-color: rgba(0, 0, 0, 0.3);
  65. z-index: 901;
  66. width: 100%;
  67. height: 100%;
  68. position: fixed;
  69. }