index.wxss 625 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* components/toast/index.wxss */
  2. .overlay{
  3. position: fixed;
  4. top:0;
  5. left:0;
  6. width:100%;
  7. height:100%;
  8. background-color: rgba(0, 0, 0, 0.7);
  9. z-index: 1000;
  10. }
  11. .toast{
  12. background: #ebeae8;
  13. width: 80%;
  14. position: absolute;
  15. top: 50%;
  16. left: 50%;
  17. transform: translate(-50%,-50%);
  18. border-radius: 20rpx;
  19. text-align: center;
  20. padding: 8% 0;
  21. }
  22. .toast .icon{
  23. width: 45%;
  24. }
  25. .toast-con text{
  26. display: inline-block;
  27. width: 90%;
  28. margin: 0 auto;
  29. }
  30. .toast-footer button{
  31. background: #38948f;
  32. margin-top: 40rpx;
  33. color: #fff;
  34. border-radius: 50rpx;
  35. font-size: 32rpx;
  36. font-weight: normal;
  37. }