account.less 7.47 KB
@import "m/bank";
.AccountPage {
    h2 {
        line-height: 50px;
        border-bottom: 4px solid #5eba2c;
    }
    .account {
        background-color: #FFF;
        border-bottom: 2px solid #d8d9de;
        .balance {
            padding: 24px 35px;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
        }
        .balance {
            p {
                line-height: 28px;
            }
            strong {
                display: inline-block;
                width: 90px;
                font-size: 14px;
                font-family: Helvetica, "华文细黑", "Microsoft YaHei", "微软雅黑", Tahoma, STXihei;
            }
            em {
                display: inline-block;
                min-width: 60px;
                font-size: 16px;
                font-weight: 700;
                padding: 0 15px;
                text-align: left;
                font-family: Helvetica, "华文细黑", "Microsoft YaHei", "微软雅黑", Tahoma, STXihei;
                i {
                    font-style: normal;
                    font-size: 13px;
                }
            }
            .unit {
                margin-right: 40px;
            }
            .m-btn {
                margin-right: 15px;
            }
            span[data-tips] {
                &:hover {
                    .tips {
                        display: block;
                    }
                }
                .tips {
                    display: none;
                    max-width: 200px;
                    padding: 10px;
                    font-size: 12px;
                    border: 1px solid #ddd;
                    position: absolute;
                    background-color: #FFF;
                    &:before,
                    &:after {
                        content: '';
                        top: 6px;
                        left: -10px;
                        position: absolute;
                        height: 0;
                        width: 0;
                        overflow: hidden;
                        border: 5px solid #ddd;
                        border-color: transparent #ddd transparent transparent;
                    }
                    &:after {
                        top: 7px;
                        left: -8px;
                        border: 4px solid #FFF;
                        border-color: transparent #FFF transparent transparent;
                    }
                }
            }
        }
    }
    .profile {
        margin: 0 25px;
        .summary {
            border-top: 1px dashed #ccc;
            padding: 24px 0;
            li {
                width: 50%;
                float: left;
                font-size: 14px;
                color: #333;
                text-align: left;
                line-height: 40px;
            }
            .key {
                display: inline-block;
                min-width: 80px;
            }
            .value {
                display: inline-block;
                min-width: 115px;
                margin-right: 25px;
            }
        }
    }
    .bank {
        background-color: #FFF;
        padding: 30px 0 30px 8px;
        li {
            width: 275px;
            height: 100px;
            border: 1px solid #e6e6e6;
            float: left;
            margin-left: 15px;
            position: relative;
            cursor: pointer;
            margin-bottom: 15px;
            .icon-bank-selected {
                position: absolute;
                right: -5px;
                bottom: 0px;
                display: none;
            }
            .icon-remove {
                position: absolute;
                top: -9px;
                right: -13px;
                display: none;
            }
            &:after {
                display: none;
                content: '';
                position: absolute;
                width: 19px;
                height: 16px;
                right: 0;
                bottom: 0;
                background-image: url(../images/dest/sprite.png);
                background-position: 0px -219px;
                width: 19px;
                height: 16px;
                // background: url(../images/dest/bank-selected.png) 0 0 no-repeat;
            }
            &:hover {
                .set {
                    display: block;
                }
                .icon-remove {
                    display: block;
                }
            }
            &.on {
                border-color: #5eba2c;
                &:after {
                    display: block;
                }
                .set {
                    display: none;
                }
                .icon-bank-selected {
                    display: block;
                }
            }
            &.disable {
                background: #e9e9e9;
                opacity: 0.6;
                &:after {
                    display: none;
                }
                .set {
                    display: none;
                }
                .icon-remove {
                    display: none;
                }
            }
        }
        .add {
            line-height: 100px;
            font-size: 16px;
            font-weight: 700;
            text-align: center;
            color: #333;
            background-color: #fbfbfb;
        }
        .bank-logo {
            float: left;
            margin: 21px 0 0 10px;
        }
        .info {
            padding: 0 12px;
            font-size: 12px;
            text-align: left;
            background: #f5f5f5;
            height: 30px;
            line-height: 30px;
        }
        .desc {
            float: left;
            line-height: 28px;
            margin-top: 21px;
            margin-left: 10px;
            font-size: 12px;
            color: #666;
            .type {
              margin-left: 15px;
            }
            .fasttype {
              background-color: #2598e2;
              padding: 0 10px;
              &:before {
                display: none;
              }
            }
          }
            .type {
                display: inline-block;
                background-color: #7dadcc;
                line-height: 20px;
                padding: 0 5px;
                color: #FFF;
                position: relative;
                &:before {
                    content: '';
                    position: absolute;
                    border: 5px solid #7dadcc;
                    border-color: transparent #7dadcc transparent transparent;
                    width: 0;
                    height: 0;
                    font-size: 0;
                    overflow: hidden;
                    left: -10px;
                    top: 50%;
                    margin-top: -5px;
                }
                &.credit {
                    background-color: #e09665;
                }
            }
            .credittype {
              background-color: #e09665;
              &:before {
                border-color: transparent #e09665 transparent transparent;
              }
            }
        .set {
            display: none;
            cursor: pointer;
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            text-align: center;
            color: #FFF;
            font-size: 12px;
            line-height: 21px;
            background: #000;
            background: rgba(0, 0, 0, .35);
            filter:alpha(opacity=35);
        }
    }
    .bank-list {
        margin-bottom: 50px;
    }
}