12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- /* myComponents/dialog/dialog.wxss */
- .wx-mask {
- position: fixed;
- z-index: 1000;
- top: 0;
- right: 0;
- left: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.3);
- }
- .wx-dialog {
- position: fixed;
- z-index: 5000;
- width: 80%;
- max-width: 600rpx;
- top: 50%;
- left: 50%;
- -webkit-transform: translate(-50%, -50%);
- transform: translate(-50%, -50%);
- background-color: #fff;
- text-align: center;
- border-radius: 3px;
- overflow: hidden;
- }
- .wx-dialog-title {
- font-size: 18px;
- padding: 15px 15px 5px;
- display: flex;
- justify-content: space-between;
- }
- .wx-dialog-content {
- padding: 15px 15px 5px;
- min-height: 40px;
- font-size: 16px;
- line-height: 1.3;
- word-wrap: break-word;
- word-break: break-all;
- color: #999;
- }
- .wx-dialog-footer {
- display: flex;
- align-items: center;
- position: relative;
- line-height: 45px;
- font-size: 17px;
- }
- .wx-dialog-footer::before {
- content: '';
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- height: 1px;
- border-top: 1px solid #d5d5d6;
- color: #d5d5d6;
- -webkit-transform-origin: 0 0;
- transform-origin: 0 0;
- -webkit-transform: scaleY(0.5);
- transform: scaleY(0.5);
- }
- .wx-dialog-btn {
- display: block;
- -webkit-flex: 1;
- flex: 1;
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
- position: relative;
- }
- .wx-dialog-footer .wx-dialog-btn:nth-of-type(1) {
- color: #353535;
- }
- .wx-dialog-footer .wx-dialog-btn:nth-of-type(2) {
- color: #3cc51f;
- }
- .wx-dialog-footer .wx-dialog-btn:nth-of-type(2):after {
- content: " ";
- position: absolute;
- left: 0;
- top: 0;
- width: 1px;
- bottom: 0;
- border-left: 1px solid #d5d5d6;
- color: #d5d5d6;
- -webkit-transform-origin: 0 0;
- transform-origin: 0 0;
- -webkit-transform: scaleX(0.5);
- transform: scaleX(0.5);
- }
|