Blame view

public/scss/common/_dialog.css 1.53 KB
ccbikai(👎🏻🍜) authored
1 2 3 4 5 6 7 8 9
/* dialog */
.dialog-wrapper {
    background: hsla(0, 0%, 0%, 0.5);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
陈峰 authored
10
    z-index: 2;
ccbikai(👎🏻🍜) authored
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64

    .dialog-box {
        width: 540px;
        border-radius: 20px;
        background: hsla(100, 100%, 100%, 0.8);
        position: absolute;
        left: 50%;
        margin-left: -270px;
        font-size: 30px;
        text-align: center;
        color: #000;
    }

    .dialog-content {
        padding: 60px 30px;
    }

    .dialog-header {
        padding: 50px 0 40px;
        font-size: 34px;
        text-align: center;
        font-weight: bold;
    }

    .dialog-footer {
        height: 88px;
        line-height: 88px;

        > span {
            display: block;
            width: 50%;
            height: 100%;
            float: left;
            box-sizing: border-box;

            &:nth-last-of-type(1) {
                border-left: 1px solid #ccc;
                border-radius: 0 0 10px 10px;
                color: #e01;
            }
        }

        > span:active {
            background-color: #ccc;
        }
    }

    /*边框在物理机上1px变粗*/
    .dialog-footer::before {
        content: "";
        position: absolute;
        left: 0;
        width: 200%;
        height: 0;
ccbikai(👎🏻🍜) authored
65
        border-top: 1px solid #ccc;
ccbikai(👎🏻🍜) authored
66
        transform-origin: left top;
ccbikai(👎🏻🍜) authored
67 68 69
        transform: scale3d(0.5, 0.5, 0.5);
        -webkit-transform: scale3d(0.5, 0.5, 0.5); /* Chrome, Safari, Opera */
        -ms-transform: scale3d(0.5, 0.5, 0.5); /* IE 9 */
ccbikai(👎🏻🍜) authored
70 71
    }
}