dialog.wxss 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /* myComponents/dialog/dialog.wxss */
  2. .wx-mask {
  3. position: fixed;
  4. z-index: 1000;
  5. top: 0;
  6. right: 0;
  7. left: 0;
  8. bottom: 0;
  9. background: rgba(0, 0, 0, 0.3);
  10. }
  11. .wx-dialog {
  12. position: fixed;
  13. z-index: 5000;
  14. width: 80%;
  15. max-width: 600rpx;
  16. top: 50%;
  17. left: 50%;
  18. -webkit-transform: translate(-50%, -50%);
  19. transform: translate(-50%, -50%);
  20. background-color: #fff;
  21. text-align: center;
  22. border-radius: 3px;
  23. overflow: hidden;
  24. }
  25. .wx-dialog-title {
  26. font-size: 18px;
  27. padding: 15px 15px 5px;
  28. display: flex;
  29. justify-content: space-between;
  30. }
  31. .wx-dialog-content {
  32. padding: 15px 15px 5px;
  33. min-height: 40px;
  34. font-size: 16px;
  35. line-height: 1.3;
  36. word-wrap: break-word;
  37. word-break: break-all;
  38. color: #999;
  39. }
  40. .wx-dialog-footer {
  41. display: flex;
  42. align-items: center;
  43. position: relative;
  44. line-height: 45px;
  45. font-size: 17px;
  46. }
  47. .wx-dialog-footer::before {
  48. content: '';
  49. position: absolute;
  50. left: 0;
  51. top: 0;
  52. right: 0;
  53. height: 1px;
  54. border-top: 1px solid #d5d5d6;
  55. color: #d5d5d6;
  56. -webkit-transform-origin: 0 0;
  57. transform-origin: 0 0;
  58. -webkit-transform: scaleY(0.5);
  59. transform: scaleY(0.5);
  60. }
  61. .wx-dialog-btn {
  62. display: block;
  63. -webkit-flex: 1;
  64. flex: 1;
  65. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  66. position: relative;
  67. }
  68. .wx-dialog-footer .wx-dialog-btn:nth-of-type(1) {
  69. color: #353535;
  70. }
  71. .wx-dialog-footer .wx-dialog-btn:nth-of-type(2) {
  72. color: #3cc51f;
  73. }
  74. .wx-dialog-footer .wx-dialog-btn:nth-of-type(2):after {
  75. content: " ";
  76. position: absolute;
  77. left: 0;
  78. top: 0;
  79. width: 1px;
  80. bottom: 0;
  81. border-left: 1px solid #d5d5d6;
  82. color: #d5d5d6;
  83. -webkit-transform-origin: 0 0;
  84. transform-origin: 0 0;
  85. -webkit-transform: scaleX(0.5);
  86. transform: scaleX(0.5);
  87. }