import styled from 'styled-components' const rem = (px) => `${px/414*10}rem` export const RechargeCard = styled.div` .inner{ display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; -webkit-align-items: flex-start; -webkit-box-align: flex-start; align-items: flex-start; margin-left: auto; margin-right: auto; height: ${rem(140)}; background-color: #f3f3f3; background-size: 100% auto; } .inner-cont{ width: ${rem(120)}; text-align: center; z-index: 0; } .title{ width: 10rem; margin-left: -${rem(147)}; margin-bottom: 4px; font-size: 22px; line-height: 30px; color: #222; } .desc{ width: 10rem; margin-left: -${rem(147)}; margin-bottom: 12px; font-size: 14px; line-height: 20px; color: #999; } ` export const ButRecharged = styled.a` position: relative; display: block; margin: auto; width: ${rem(120)}; height: ${rem(32)}; line-height: ${rem(32)}; font-size: 18px; color: #fff; border-radius: .5rem; text-align: center; &:hover{ color: #fff; } &.disabled { font-size: .4rem; background: rgba(253, 58, 46, .5); } .discount { margin: 0 ${rem(10)}; font-size: ${rem(22)}; font-weight: normal; } .icon-sale { position: absolute; top: -${rem(10)}; right: -${rem(10)}; height: ${rem(21)}; padding: 0 ${rem(5)}; line-height: ${rem(21)}; font-size: 12px; font-weight: bold; color: #222; border-radius: 3px; .trigon{ width: 0; height: 0; border-width: 0 0 ${rem(5.5)} ${rem(10)}; border-style: solid; position: absolute; bottom: -${rem(5.5)}; right: ${rem(7)}; } } `