UNPKG

yy01_test_package

Version:

Transak SDK that allows you to easily integrate the fiat on/ramp

128 lines (115 loc) 2.1 kB
export function getCSS(themeColor, height, width) { return ` /* Modal Content/Box */ .transak_close { float: right; animation: 5s transak_fadeIn; animation-fill-mode: forwards; visibility: hidden; transition: 0.5s; position: absolute; right: -5px; width: 35px; margin-top: -15px; height: 35px; font-weight: bold; z-index: 1; background: white; color: #${themeColor}; border-radius: 50%; } @keyframes transak_fadeIn { 0% { opacity: 0; } 50% { visibility: hidden; opacity: 0; } 100% { visibility: visible; opacity: 1; } } .transak_close:hover, .transak_close:focus { color: white; background: #${themeColor}; text-decoration: none; cursor: pointer; } .transak_modal { display: block; width: ${width}; max-width: 500px; height: ${height}; max-height: 900px; // max-height: 100%; position: fixed; z-index: 100; left: 50%; top: 50%; transform: translate(-50%, -50%); background: white; border: none; border-radius: 2%; margin: 0px auto; display: block; } .transak_closed { display: none; } #transakOnOffRampWidget{ min-height: ${height}; position: absolute; border: none; border-radius: 2%; margin: 0px auto; display: block; } .transak_modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 50; background: rgba(0, 0, 0, 0.6); } .transak_modal-content{ width: 100%; height: 100%; overflow: auto; } .transak_modal .close-button { position: absolute; z-index: 1; top: 10px; right: 20px; background: black; color: white; padding: 5px 10px; font-size: 1.3rem; } .transak_transakContainer{ height: 100%; width:100%; } #transakFiatOnOffRamp{ margin-left: 10px; margin-right: 10px; } @media all and (max-width: ${width}) { .transak_modal { height: 100%; max-height:${height}; top: 53%; } } @media all and (max-height: ${height}) and (max-width: ${width}) { #transakOnOffRampWidget{ padding-bottom: 15px; } } ` }