UNPKG

react-fancy-countdown

Version:
125 lines (121 loc) 2.5 kB
.flipCountdown { display: inline-block; line-height: 1.1 !important; font-family: sans-serif !important; } .flip-block-time { width: 230px; float: left; margin: 15px; } .flip-block-time > .title { display: block; margin-bottom: 5px; color: grey; text-align: center; font-size: 20px; } .flip-block-time > .stage { position: relative; float: left; width: 100px; height: 110px; text-align: center; border: 1px solid rgba(0, 0, 0, 0.3); margin: 0 5px 0 5px; overflow: hidden; -webkit-box-shadow: 2px 0px 17px -5px rgba(0, 0, 0, 0.75); -moz-box-shadow: 2px 0px 17px -5px rgba(0, 0, 0, 0.75); box-shadow: 2px 0px 17px -5px rgba(0, 0, 0, 0.75); } .flip-block-time > .stage span { position: absolute; font-size: 100px; top: 0; left: 0; color: #ee4049; width: 100%; } .flip-block-time > .stage .top { /** folder line */ } .flip-block-time > .stage .top:after { content: ""; position: absolute; z-index: -1; left: 0; bottom: 0; width: 100%; height: 100%; } .flip-block-time > .stage .top { z-index: 5; transform-origin: 50% 100%; -webkit-transform-origin: 50% 100%; background-color: #f7f7f7; border-bottom: 1px solid rgba(0, 0, 0, 0.2); } .flip-block-time > .stage .top, .flip-block-time > .stage .top-back { height: 55%; overflow: hidden; } .flip-block-time > .stage .top-back { z-index: 4; height: 55%; background-color: #f7f7f7; } .flip-block-time > .stage .bottom { z-index: 3; transform-origin: 50% 0; -webkit-transform-origin: 50% 0; background-color: #ffffff; transform: rotateX(-90deg); } .flip-block-time > .stage .bottom:before { content: ""; position: absolute; z-index: -1; left: 0; top: 53%; width: 100%; height: 55%; border-top: 1px solid rgba(0, 0, 0, 0.2); } .flip-block-time > .stage .bottom-back { z-index: 2; background-color: #ffffff; } .slideCountdown { display: inline-block; font-family: Courier; font-weight: bold; } .slide-block-time { float: left; font-size: 40px; width: 70px; margin: 0 15px 0 15px; } .slide-block-time > .title { font-size: 16px; font-weight: bold; margin-top: 5px; } .slide-block-time .wrap-stage > .stage { float: left; width: 50%; overflow: hidden; height: 40px; position: relative; } .slide-block-time .wrap-stage > .stage > .mask { width: 100%; position: absolute; bottom: 0%; left: 0px; height: 80px; } .slide-block-time .wrap-stage > .stage > .mask > div { height: 40px; line-height: 40px; }