dialog.wxss 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. }
  29. .wx-dialog-content {
  30. padding: 15px 15px 5px;
  31. min-height: 40px;
  32. font-size: 16px;
  33. line-height: 1.3;
  34. word-wrap: break-word;
  35. word-break: break-all;
  36. color: #999;
  37. }
  38. .wx-dialog-footer {
  39. display: flex;
  40. align-items: center;
  41. position: relative;
  42. line-height: 45px;
  43. font-size: 17px;
  44. }
  45. .wx-dialog-footer::before {
  46. content: '';
  47. position: absolute;
  48. left: 0;
  49. top: 0;
  50. right: 0;
  51. height: 1px;
  52. border-top: 1px solid #d5d5d6;
  53. color: #d5d5d6;
  54. -webkit-transform-origin: 0 0;
  55. transform-origin: 0 0;
  56. -webkit-transform: scaleY(0.5);
  57. transform: scaleY(0.5);
  58. }
  59. .wx-dialog-btn {
  60. display: block;
  61. -webkit-flex: 1;
  62. flex: 1;
  63. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  64. position: relative;
  65. }
  66. .wx-dialog-footer .wx-dialog-btn:nth-of-type(1) {
  67. color: #353535;
  68. }
  69. .wx-dialog-footer .wx-dialog-btn:nth-of-type(2) {
  70. color: #3cc51f;
  71. }
  72. .wx-dialog-footer .wx-dialog-btn:nth-of-type(2):after {
  73. content: " ";
  74. position: absolute;
  75. left: 0;
  76. top: 0;
  77. width: 1px;
  78. bottom: 0;
  79. border-left: 1px solid #d5d5d6;
  80. color: #d5d5d6;
  81. -webkit-transform-origin: 0 0;
  82. transform-origin: 0 0;
  83. -webkit-transform: scaleX(0.5);
  84. transform: scaleX(0.5);
  85. }