main.css 3.57 KB
html {
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

img {
    width: 100%;
    float: left;
}

a {
    display: block;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    text-decoration: none;
}

p {

    margin: 0;
    padding: 0;
    font-family: Helvetica,Arial,sans-serif;
}

ul {
    position: relative;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

li {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

li .left-item {
    display: block;
    position: absolute;
    width: 7rem;
    height: 5.2rem;
    left: 2rem;
    top: 1rem;
}

li .right-item {
    display: block;
    position: absolute;
    width: 7rem;
    height: 5.2rem;
    left: 10rem;
    top: 1rem;
}

.wrapper {
    width: 100%;
    height: 100%;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 828px;
    margin: 0 auto;
    font-family: Hel, Arial, sans-serif;
}

.main {
    width: 100%;
}

.button-container {
    position: absolute;
    width: 100%;
    height: 3rem;
    left: 0;
    top: 0;
    z-index: 10;
}

.hand {
    position: absolute;
    width: 1.875rem;
    height: 2.025rem;
    top: 1rem;
    right: 3.5rem;
    background-image: url('../images/hand.png');
    background-size:100% 100%;
    z-index: 11;
    -webkit-transform-origin: 50% 100%;
    transform-origin: 50% 100%;
    animation: handAnimate 1s linear infinite;
    -webkit-animation: handAnimate 1s linear infinite;
}

.coupon-button {
    width: 10.275rem;
    height: 2.15rem;
    margin: 0.1rem auto;
    background-image: url(../images/btn_get.png);
    background-size: 100% 100%;
}

.coupon-desc {
    width: 100%;
    line-height: 1rem;
    font-size: 0.6rem;
    margin-top: 0.5rem;
    text-align: center;
    color: #fff;
}

.tips-wrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 20;
}

.share-wrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.7);
    background-image: url("../images/share.png");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 25;
}

.tips-wrapper .tips-container {
    position: absolute;
    width: 100%;
    height: 10rem;
    top: 50%;
    margin-top: -5rem;
}

.tips-container .tips {
    position: relative;
    margin: 1rem auto;
    width: 12rem;
    height: 8rem;
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid #000;
    border-radius: 1rem;
    -webkit-border-radius: 1rem;
    color: #000;
    -webkit-box-shadow: 2px 2px 5px;
    box-shadow: 2px 2px 5px;
}

.tips p {
    display: block;
    height: 2rem;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1rem;
}

.tips a {
    position: relative;
    margin: 0 auto;
    width: 5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    border: 1px solid #000;
    -webkit-border-radius: 0.5rem;
    border-radius: 0.5rem;
    -webkit-box-shadow: 2px 2px 5px;
    box-shadow: 2px 2px 5px;
}

@-webkit-keyframes handAnimate {
    0% {
        -webkit-transform: scaleY(1);
    }
    25% {
        -webkit-transform: scaleY(0.9);
    }
    50% {
        -webkit-transform: scaleY(1);
    }
}


@keyframes handAnimate {
    0% {
        transform: scaleY(1);
    }
    25% {
        transform: scaleY(0.9);
    }
    50% {
        transform: scaleY(1);
    }
}