modal.wxss 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* pages/components/model/model.wxss */
  2. /* components/modal/modal.wxss */
  3. /*遮罩层*/
  4. .modal-mask{
  5. display: flex;
  6. justify-content: center;
  7. align-items: center;
  8. position: fixed;
  9. left: 0;
  10. right: 0;
  11. top: 0;
  12. bottom: 0;
  13. background-color: rgba(0,0,0,0.5);
  14. z-index: 999;
  15. }
  16. /*遮罩内容*/
  17. .modal-content{
  18. display: flex;
  19. flex-direction: column;
  20. width: 80%;
  21. background-color: #fff;
  22. border-radius: 10rpx;
  23. padding: 20rpx;
  24. text-align: center;
  25. }
  26. /*中间内容*/
  27. .main-content{
  28. flex: 1;
  29. height: 100%;
  30. height: 100rpx;
  31. overflow-y: hidden;
  32. max-height: 80vh; /* 内容高度最高80vh 以免内容太多溢出*/
  33. }
  34. /*底部按钮*/
  35. .modal-footer{
  36. display: flex;
  37. flex-direction: row;
  38. height: 80rpx;
  39. line-height: 80rpx;
  40. border-top: 2rpx solid #D2D3D5;
  41. margin-top: 30rpx;
  42. }
  43. .cancel-btn, .confirm-btn{
  44. flex: 1;
  45. height: 100rpx;
  46. line-height: 100rpx;
  47. text-align: center;
  48. font-size: 32rpx;
  49. }
  50. .cancel-btn{
  51. color: #000;
  52. border-right: 2rpx solid #D2D3D5;
  53. }
  54. .confirm-btn {
  55. color: var(--themeColor)
  56. }