UNPKG

algoswap

Version:

Algo Swap Widget

1,412 lines (1,192 loc) 23.5 kB
.slider { appearance: none } .slider::-webkit-slider-thumb:hover { -webkit-appearance: none; appearance: none; background: #4550e6; cursor: pointer } ::-webkit-slider-thumb:hover { background-color: #4550e6!important } ::-webkit-slider-thumb { border-style: solid; border-width: 0 } ::-webkit-slider-thumb:active, ::-webkit-slider-thumb:focus { background-color: #4550e6 !important; border-width: 3px; border-color: rgb(255 255 255 / 90%)!important; outline: 0; box-shadow: 0 0 0 0.25rem rgb(69 80 230 / 25%); } .form-label-1 { display: inline-block; position: relative; width: 60px; color: #fff; text-indent: initial; line-height: 20px; text-align: center; border-radius: 3px; background: #2c3e50; padding: 5px 10px; margin-left: 8px } .form-label-1:after { position: absolute; top: 8px; left: -7px; width: 0; height: 0; border-top: 7px solid transparent; border-right: 7px solid #2c3e50; border-bottom: 7px solid transparent; content: "" } .slider::-webkit-slider-thumb:active { -webkit-appearance: none; appearance: none; background: #000; cursor: pointer; color: #fff; background-color: #4550e6; border-color: #727aec } .slidecontainer { display: grid; display: block; width: 100%; padding: .3rem; font-size: unset; font-weight: 400; line-height: 1.5; color: #212529; background-clip: padding-box; border: 1px solid #ced4da; -webkit-appearance: none; appearance: none; text-indent: .4rem; border-radius: .25rem; transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out } .form-label { margin-bottom: .5rem } p#input-readonly,p#output-readonly,p#pool-readonly,p#slipview { margin-bottom: 0!important } label { display: inline-block } .form-range { width: 100%; height: 1.5rem; padding: 0; background-color: transparent; -webkit-appearance: none; -moz-appearance: none; appearance: none } .slippage-2 { display: flex; justify-content: space-between; align-content: center; align-items: center; flex-direction: row; flex-wrap: nowrap } .slider { -webkit-appearance: none; width: 100%; height: 15px; border-radius: 5px; background: #d3d3d3; outline: 0; opacity: .7; -webkit-transition: .2s; transition: opacity .2s } .slider:hover { opacity: 1 } .slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 25px; height: 25px; border-radius: 50%; background: #4550e6; cursor: pointer } .slider::-moz-range-thumb { border-radius: 50%; width: 25px; height: 25px; background: #04aa6d; cursor: pointer } .snoops,.snoops-2 { justify-content: space-between; width: 100%; align-items: center; align-content: center } .snoops-2 { display: flex; flex-direction: row; flex-wrap: wrap; color: var(--bs-body-color) } .snoops { display: flow-root; flex-wrap: nowrap } div#inputAmount { padding-bottom: .6rem } a { color: #4550e6; text-decoration: underline } a#algolink { font-weight: 600; border-radius: 4px; padding: 2px 4px; margin-top: -2px } @media (max-width:325px) { snoopy-small { display: none } } p#quote { margin: 0 } p#snoopy { overflow: hidden; white-space: nowrap; display: block; text-overflow: ellipsis; width: calc(100% - 100px) } button#div-close-2 { display: none!important } .form-select-lg { padding-top: .5rem; padding-bottom: .5rem; padding-left: 1rem; font-size: 1.25rem; border-radius: .3rem } .form-select { display: block; width: 100%; padding: .375rem 2.25rem .375rem .75rem; -moz-padding-start: calc(.75rem - 3px); font-size: 1rem; font-weight: 400; line-height: 1.5; color: #212529; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E"); background-position: right .75rem center; background-size: 16px 12px; background-repeat: no-repeat; cursor: pointer; border: 1px solid #ced4da; border-radius: .25rem; transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out; -webkit-appearance: none; -moz-appearance: none; appearance: none } .form-select:focus { border-color: #4550e6; outline: 0; box-shadow: 0 0 0 0.25rem rgb(13 57 253 / 25%); background-color: #fff!important } .form-select:hover { background-color: rgb(86 82 179/10%); } @media (prefers-reduced-motion:no-preference) { :root { scroll-behavior: smooth } } body { background-color: var(--bs-body-bg); margin: 0; font-family: var(--bs-body-font-family); font-size: var(--bs-body-font-size); font-weight: var(--bs-body-font-weight); line-height: var(--bs-body-line-height); color: var(--bs-body-color); text-align: var(--bs-body-text-align); background-color: transparent; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent } @media (min-width:1200px) { h3 { font-size: 1.75rem } } strong { font-weight: bolder } svg { vertical-align: middle } button:focus:not(:focus-visible) { outline: 0 } @media (prefers-reduced-motion:reduce) { .btn { transition: none } } @media (prefers-reduced-motion:reduce) { .fade { transition: none } } @media screen and (max-width:230px) { button#div-close { display: none } } @media (prefers-reduced-motion:reduce) { .modal.fade .modal-dialog { transition: none } } @media (min-width:576px) { .modal-dialog { max-width: 500px; margin: 1.75rem auto } } @media screen and (max-width:350px) { .snoopy-box-4 { font-size: smaller } } @media screen and (max-width:240px) { a.footer-link-2 { display: none } } @media print { p#date { margin-bottom: 0 } .modal-backdrop.show { opacity: .8!important } button#algoswap-btn { width: 80% } } @media (max-width:325px) { snoopy-small { display: none } } :root { --bs-blue: #4550e6; --bs-indigo: #6610f2; --bs-purple: #6f42c1; --bs-pink: #d63384; --bs-red: #dc3545; --bs-orange: #fd7e14; --bs-yellow: #ffc107; --bs-green: #198754; --bs-teal: #20c997; --bs-cyan: #0dcaf0; --bs-white: #fff; --bs-gray: #6c757d; --bs-gray-dark: #343a40; --bs-gray-100: #f8f9fa; --bs-gray-200: #e9ecef; --bs-gray-300: #dee2e6; --bs-gray-400: #ced4da; --bs-gray-500: #adb5bd; --bs-gray-600: #6c757d; --bs-gray-700: #495057; --bs-gray-800: #343a40; --bs-gray-900: #212529; --bs-primary: #4550e6; --bs-secondary: #6c757d; --bs-success: #198754; --bs-info: #0dcaf0; --bs-warning: #ffc107; --bs-danger: #dc3545; --bs-light: #f8f9fa; --bs-dark: #212529; --bs-primary-rgb: 13,110,253; --bs-secondary-rgb: 108,117,125; --bs-success-rgb: 25,135,84; --bs-info-rgb: 13,202,240; --bs-warning-rgb: 255,193,7; --bs-danger-rgb: 220,53,69; --bs-light-rgb: 248,249,250; --bs-dark-rgb: 33,37,41; --bs-white-rgb: 255,255,255; --bs-black-rgb: 0,0,0; --bs-body-color-rgb: 33,37,41; --bs-body-bg-rgb: 255,255,255; --bs-font-sans-serif: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; --bs-font-monospace: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; --bs-gradient: linear-gradient(180deg,rgba(255,255,255,0.15),rgba(255,255,255,0)); --bs-body-font-family: var(--bs-font-sans-serif); --bs-body-font-size: 1rem; --bs-body-font-weight: 400; --bs-body-line-height: 1.5; --bs-body-color: #212529; --bs-body-bg: #fff } @media (prefers-reduced-motion:no-preference) { :root { scroll-behavior: smooth } } @media (min-width:1200px) { h3 { font-size: 1.75rem } } @media (prefers-reduced-motion:reduce) { .btn { transition: none } } @media (prefers-reduced-motion:reduce) { .fade { transition: none } } @media screen and (max-width:230px) { button#div-close { display: none } } @media (prefers-reduced-motion:reduce) { .modal.fade .modal-dialog { transition: none } } @media (min-width:576px) { .modal-dialog { max-width: 500px; margin: 1.75rem auto } } @media screen and (max-width:350px) { .snoopy-box-4 { font-size: smaller } } @media screen and (max-width:240px) { a.footer-link-2 { display: none } } @media print { p#date { margin-bottom: 0 } .modal-backdrop.show { opacity: .8!important } button#algoswap-btn { width: 80% } } @media (max-width:325px) { snoopy-small { display: none } } @media (min-width:1200px) { h3 { font-size: 1.75rem } } @media (prefers-reduced-motion:reduce) { .btn { transition: none } } @media (prefers-reduced-motion:reduce) { .fade { transition: none } } @media screen and (max-width:230px) { button#div-close { display: none } } @media (prefers-reduced-motion:reduce) { .modal.fade .modal-dialog { transition: none } } @media (min-width:576px) { .modal-dialog { max-width: 500px; margin: 1.75rem auto } } @media screen and (max-width:350px) { .snoopy-box-4 { font-size: smaller } } @media screen and (max-width:240px) { a.footer-link-2 { display: none } } @media print { p#date { margin-bottom: 0 } .modal-backdrop.show { opacity: .8!important } button#algoswap-btn { width: 80% } } @media (max-width:325px) { snoopy-small { display: none } } @media (min-width:1200px) { h3 { font-size: 1.75rem } } @media (prefers-reduced-motion:reduce) { .btn { transition: none } } @media (prefers-reduced-motion:reduce) { .fade { transition: none } } @media screen and (max-width:230px) { button#div-close { display: none } } @media (prefers-reduced-motion:reduce) { .modal.fade .modal-dialog { transition: none } } @media (min-width:576px) { .modal-dialog { max-width: 500px; margin: 1.75rem auto } } @media screen and (max-width:350px) { .snoopy-box-4 { font-size: smaller } } @media screen and (max-width:240px) { a.footer-link-2 { display: none } } @media print { p#date { margin-bottom: 0 } .modal-backdrop.show { opacity: .8!important } button#algoswap-btn { width: 80% } } @media (max-width:325px) { snoopy-small { display: none } } @media (min-width:1200px) { h3 { font-size: 1.75rem } } @media (prefers-reduced-motion:reduce) { .btn { transition: none } } @media (prefers-reduced-motion:reduce) { .fade { transition: none } } @media screen and (max-width:230px) { button#div-close { display: none } } @media (prefers-reduced-motion:reduce) { .modal.fade .modal-dialog { transition: none } } .fs-5 { font-style: normal } @media (min-width:576px) { .modal-dialog { max-width: 500px; margin: 1.75rem auto } } @media screen and (max-width:350px) { .snoopy-box-4 { font-size: smaller } } @media screen and (max-width:240px) { a.footer-link-2 { display: none } } @media print { p#date { margin-bottom: 0 } .modal-backdrop.show { opacity: .8!important } button#algoswap-btn { width: 80% } } .modal.show .modal-dialog { position: relative; display: flex; flex-direction: column; pointer-events: auto; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0,0,0,.2); border-radius: .3rem; outline: 0 } h6.snoopy-6,p#snoopy2 { margin-bottom: 0 } .snoopy-box-2 { display: flex; flex-direction: row; flex-wrap: wrap; align-content: stretch; justify-content: space-between; align-items: center; margin-top: 1rem; background-color: #dadcde69; padding: 8px 8px 10px; border-radius: 4px; border-style: solid; border-width: 1px; border-color: #c7c7c8; opacity: .8; margin-left: 12px; margin-right: 12px; margin-bottom: 16px; } .toast-header { padding-bottom: 12px; padding-right: 0; padding-left: 0 } button#algoswap-btn:active { color: #fff; background-color: #4550e6!important; border-color: #4550e6 } button#algoswap-btn:hover { background-color: #727aec; border-color: #4550e6; color: #fff } .algoswap-btn { transition: .3s } .algoswap-box { padding: 1rem } .modal-backdrop { z-index: -1!important } .snoopy-box-boxed { padding-left: 12px; padding-right: 12px; padding-top: 12px } .bd-callout { margin-top: 1.25rem; margin-bottom: 1.25rem; border: 1px solid #e9ecef; border-left-width: .25rem; border-radius: .25rem } @media (max-width:325px) { snoopy-small { display: none } } p#snoopy { margin-bottom: 0!important; overflow-wrap: anywhere } .snoopy-box-boxed { display: flex; flex-direction: row; opacity: .85; flex-wrap: wrap } h3,h5,h6,p { margin-top: 0 } h3,h5,h6 { margin-bottom: .5rem; font-weight: 500; line-height: 1.2 } h3 { font-size: calc(1.3rem + .6vw) } @media (min-width:1200px) { h3 { font-size: 1.75rem } } h5 { font-size: 1.25rem } .btn,h6 { font-size: 1rem } p { margin-bottom: 1rem } .btn { display: inline-block; font-weight: 400; line-height: 1.5; color: #212529; text-align: center; text-decoration: none; vertical-align: middle; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none; background-color: transparent; border: 1px solid transparent; padding: .375rem .75rem; border-radius: .25rem; transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out } @media (prefers-reduced-motion:reduce) { .btn { transition: none } } .btn:hover { color: #212529 } .btn:focus { outline: 0; box-shadow: 0 0 0 .25rem #0d39fd } .btn:disabled { pointer-events: none; opacity: .65 } .btn-primary,.btn-primary:hover { color: #fff; background-color: #4550e6; border-color: #4550e6 } .btn-primary:hover { background-color: #727aec } .btn-primary:focus { color: #fff; background-color: #727aec; border-color: #4550e6; box-shadow: 0 0 0 0.25rem rgb(13 57 253 / 25%); opacity: 1 } .btn-primary:active { color: #fff; background-color: #4550e6; border-color: #4550e6 } .btn-primary:active:focus { box-shadow: 0 0 0 0.25rem rgb(13 57 253 / 25%); } .btn-primary:disabled { color: #fff; background-color: #4550e6; border-color: #4550e6 } .btn-secondary { color: #fff; background-color: #6c757d; border-color: #6c757d } .btn-secondary:hover { color: #fff; background-color: #5c636a; border-color: #565e64 } .btn-secondary:focus { color: #fff; background-color: #5c636a; border-color: #565e64; box-shadow: 0 0 0 .25rem rgba(130,138,145,.5) } .btn-secondary:active { color: #fff; background-color: #565e64; border-color: #51585e } .btn-secondary:active:focus { box-shadow: 0 0 0 .25rem rgba(130,138,145,.5) } .btn-secondary:disabled { color: #fff; background-color: #6c757d; border-color: #6c757d } .btn-outline-secondary { color: #6c757d; border-color: #6c757d } .btn-outline-secondary:hover { color: #fff; background-color: #6c757d; border-color: #6c757d } .btn-outline-secondary:active:focus,.btn-outline-secondary:focus { box-shadow: 0 0 0 .25rem rgba(108,117,125,.5) } .btn-outline-secondary:active { color: #fff; background-color: #6c757d; border-color: #6c757d } .btn-outline-secondary:disabled { color: #6c757d; background-color: transparent } .btn-lg { padding: .5rem 1rem; font-size: 1.25rem; border-radius: .3rem } .fade { transition: opacity .15s linear } @media (prefers-reduced-motion:reduce) { .fade { transition: none } } @media screen and (max-width:230px) { button#div-close { display: none } } a.footer-link-2:hover { background-color: rgb(86 82 179/10%); text-decoration: none; } a.footer-link-2:focus { box-shadow: 0 0 0 1px rgb(107 116 235 / 81%); } a.footer-link:hover { background-color: rgb(86 82 179/10%); text-decoration: none; } a.footer-link:focus { box-shadow: 0 0 0 1px rgb(107 116 235 / 81%); } a.footer-link,a.footer-link-2 { border-radius: 4px; padding: 2px 4px } .toast-header,h5.algoswap-btn { display: flex; align-items: center } .toast-header { padding: .5rem .75rem; color: #6c757d; background-color: rgba(255,255,255,.85); background-clip: padding-box; border-bottom: 1px solid rgba(0,0,0,.05); border-top-left-radius: calc(.25rem - 1px); border-top-right-radius: calc(.25rem - 1px) } .modal { position: fixed; top: 0; left: 0; z-index: 1055; display: none; width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; outline: 0 } .modal-dialog { position: relative; width: auto; margin: .5rem; pointer-events: none } .modal.fade .modal-dialog { transition: transform .3s ease-out; transform: translate(0,-50px) } @media (prefers-reduced-motion:reduce) { .modal.fade .modal-dialog { transition: none } } .modal.show .modal-dialog { transform: none } path.ap-lg { opacity: .95 } path.ap-md { opacity: .7 } path.ap-sm { opacity: .2 } h5.algoswap-btn { color: #4550e6; margin-bottom: 0!important } .modal-header .btn-close:hover { background-color: rgb(86 82 179/10%); } .modal-footer-cr { flex-wrap: wrap; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: .75rem; border-top: 1px solid #dee2e6; border-bottom-right-radius: calc(.3rem - 1px); border-bottom-left-radius: calc(.3rem - 1px); flex-direction: row; font-size: small } .modal-backdrop { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: #000 } .modal-backdrop.fade { opacity: 0 } .modal-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid #dee2e6; border-top-left-radius: calc(.3rem - 1px); border-top-right-radius: calc(.3rem - 1px) } .modal-title { margin-bottom: 0; line-height: 1.5 } .modal-body { position: relative; flex: 1 1 auto; padding: 1rem; text-align: left } @media (min-width:576px) { .modal-dialog { max-width: 500px; margin: 1.75rem auto } } .link-dark { color: #212529 } .link-dark:focus,.link-dark:hover { color: #1a1e21 } .d-inline-flex { display: inline-flex!important } button#algoswap-btn { align-items: center!important; background-color: #4550e6; color: #fff; display: flex!important; justify-content: center; transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out; padding-left: 2rem; padding-right: 2rem } .my-0 { margin-top: 0!important; margin-bottom: 0!important } .me-auto { margin-right: auto!important } .mb-2 { margin-bottom: .5rem!important } .py-2 { padding-top: .5rem!important; padding-bottom: .5rem!important } @media screen and (max-width:350px) { .snoopy-box-4 { font-size: smaller } } @media screen and (max-width:240px) { a.footer-link-2 { display: none } } p.text-progress { margin-bottom: 0; text-align: right } .modal-backdrop.show { opacity: .7!important; transition: .4s } p#date { margin-bottom: unset } a.footer-link-2:hover,a.footer-link:hover { margin-left: 3px; margin-right: 3px } .fs-5 { font-size: 1.5rem!important } .text-decoration-none { text-decoration: none!important } .rounded { border-radius: .25rem!important } @media print { p#date { margin-bottom: 0 } .modal-backdrop.show { opacity: .8!important } button#algoswap-btn { width: 80% } } @media screen and (max-width:230px) { button#div-close { display: none } } .btn-close,button { transition: .3s } button { border-radius: 0; margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; text-transform: none } [type=button],button { -webkit-appearance: button } @media screen and (max-width:230px) { button#div-close { display: none } } .btn-close { box-sizing: content-box; width: 1em; height: 1em; padding: .25em; color: #000; background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat; border: 0; border-radius: .25rem; opacity: .5 } .btn-close:hover { color: #000; text-decoration: none; opacity: .75 } .btn-close:focus { outline: 0; box-shadow: 0 0 0 0.25rem rgb(13 57 253 / 25%); opacity: 1 } .btn-close:disabled { pointer-events: none; -webkit-user-select: none; -moz-user-select: none; user-select: none; opacity: .25 } .modal-header .btn-close { padding: .5rem; margin: -.5rem -.5rem -.5rem auto } a:hover { color: #4550e6!important } @media screen and (max-width:350px) { .snoopy-box-4 { font-size: smaller } } a#algolink:focus { font-weight: 600; box-shadow: 0 0 0 1px rgb(107 116 235 / 81%); background-color: rgb(238 237 247); text-decoration: none; margin-left: 5px; } .d-flex { justify-content: space-between } *,::after,::before { box-sizing: border-box } ::-moz-focus-inner { padding: 0; border-style: none } .alert { position: relative; padding: 1rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: .25rem } .alert-primary { color: #4e59e7; background-color: #d0d3f9; border-color: #b6b9fe!important } a#algolink:hover { font-weight: 600; background-color: rgb(238 237 247/61%); color: #4550e6!important; text-decoration: none; margin-left: 5px; } .modal-footer { display: flex; flex-wrap: wrap; flex-shrink: 0; align-items: center; justify-content: flex-end; padding: .75rem; border-top: 1px solid #dee2e6; border-bottom-right-radius: calc(.3rem - 1px); border-bottom-left-radius: calc(.3rem - 1px) } .modal-footer>* { margin: .25rem } .d-flex { display: flex!important } .w-100 { width: 100%!important } .flex-shrink-0 { flex-shrink: 0!important } .align-items-center { align-items: center!important } .me-2 { margin-right: .5rem!important } @media screen and (max-width:350px) { .snoopy-box-4 { font-size: smaller } } .snoopy-box-4 { display: flex; flex-wrap: wrap; justify-content: flex-end } button#div-close { cursor: pointer } .form-control { display: block; width: 100%; padding: .3rem; font-size: unset; font-weight: 400; line-height: 1.5; color: #212529; background-color: #fff; background-clip: padding-box; border: 1px solid #ced4da; -webkit-appearance: none; appearance: none; text-indent: .4rem; border-radius: .25rem; transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out } .form-control:focus { color: #212529; background-color: #fff; border-color: #a2a8f3; outline: 0; box-shadow: 0 0 0 0.25rem rgb(69 80 230 / 25%); }