index.less 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* nova-tourism/components/modal/index.wxss */.modal-overlay {
  2. position: fixed;
  3. top: 0;
  4. left: 0;
  5. width: 100vw;
  6. height: 100vh;
  7. background-color: rgba(76, 76, 76,.2);
  8. z-index: 99;
  9. }
  10. .modal-wrapper {
  11. position: fixed;
  12. top: 50%;
  13. left: 50%;
  14. transform: translate(-50%,-50%);
  15. display: flex;
  16. flex-direction: column;
  17. justify-content: space-between;
  18. align-items: center;
  19. // width: 70%;
  20. // height: 70vh;
  21. border-radius: 20rpx;
  22. background-color: #fff;
  23. z-index: 999;
  24. .modal-header {
  25. padding: 20rpx;
  26. // display: flex;
  27. // align-items: center;
  28. // justify-content: space-between;
  29. .modal-title {
  30. padding: 20rpx 0;
  31. text-align: center;
  32. }
  33. .modal-close {
  34. position: fixed;
  35. top: 20rpx;
  36. right: 20rpx;
  37. padding:20rpx;
  38. }
  39. }
  40. .modal-content {
  41. flex:1;
  42. width: 100%;
  43. padding: 20rpx;
  44. overflow: auto;
  45. }
  46. .modal-footer {
  47. width: 100%;
  48. .footer-btn {
  49. width: 100%;
  50. padding: 20rpx;
  51. text-align: center;
  52. letter-spacing: 6rpx;
  53. background-color: #46a9a4;
  54. }
  55. }
  56. }