UNPKG

@creit.tech/stellar-wallets-kit

Version:
1 lines 8.51 kB
{"version":3,"file":"styles.mjs","sources":["../../../src/components/modal/styles.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const modalDialogStyles = css`\n .dialog-modal {\n position: fixed;\n z-index: 990;\n font-family: 'Open Sans', arial, sans-serif;\n margin: 0 auto;\n padding: 0;\n width: 100%;\n border-radius: 1rem 1rem 0 0;\n border-width: 0;\n box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.25);\n bottom: 0;\n overflow: hidden;\n }\n\n @media screen and (min-width: 768px) {\n .dialog-modal {\n z-index: 990;\n bottom: auto;\n top: 5rem;\n max-width: 45rem;\n border-radius: 1rem;\n }\n }\n`;\n\nexport const modalDialogBodyStyles = css`\n .dialog-modal-body {\n display: flex;\n flex-direction: column-reverse;\n }\n\n .dialog-modal-body__help,\n .dialog-modal-body__wallets {\n width: 100%;\n flex-basis: 100%;\n }\n\n .dialog-modal-body__help {\n padding: 1.5rem;\n }\n\n .dialog-modal-body__wallets {\n padding: 1.5rem;\n }\n\n .dialog-text-solid {\n font-size: 1rem;\n line-height: 1.25rem;\n }\n\n .dialog-text {\n font-size: 0.875rem;\n line-height: 1.125rem;\n }\n\n @media (prefers-color-scheme: light) {\n .dialog-modal-body__help {\n background-color: var(--modal-help-bg-color, #f8f8f8);\n border-top: 1px solid var(--modal-divider-color, rgba(0, 0, 0, 0.15));\n }\n\n @media screen and (min-width: 768px) {\n .dialog-modal-body__help {\n border-top: none;\n border-right: 1px solid var(--modal-divider-color, rgba(0, 0, 0, 0.15));\n }\n }\n\n .dialog-modal-body__wallets,\n .dialog-modal-body {\n background-color: var(--modal-bg-color, #fcfcfc);\n }\n\n .dialog-text-solid {\n color: var(--modal-solid-text-color, #000000);\n }\n\n .dialog-text {\n color: var(--modal-text-color, #181818);\n }\n }\n\n @media (prefers-color-scheme: dark) {\n .dialog-modal-body__help {\n background-color: var(--modal-help-bg-color, #1c1c1c);\n border-top: 1px solid var(--modal-divider-color, rgba(255, 255, 255, 0.15));\n }\n\n @media screen and (min-width: 768px) {\n .dialog-modal-body__help {\n border-top: none;\n border-right: 1px solid var(--modal-divider-color, rgba(255, 255, 255, 0.15));\n }\n }\n\n .dialog-modal-body__wallets,\n .dialog-modal-body {\n background-color: var(--modal-bg-color, #161616);\n }\n\n .dialog-text-solid {\n color: var(--modal-solid-text-color, #ededed);\n }\n\n .dialog-text {\n color: var(--modal-text-color, #a0a0a0);\n }\n }\n\n @media screen and (min-width: 768px) {\n .dialog-modal-body {\n flex-direction: row;\n }\n\n .dialog-modal-body__help,\n .dialog-modal-body__wallets {\n padding: 2rem;\n }\n }\n`;\n\nexport const modalHelpSection = css`\n .help-container {\n width: 100%;\n }\n\n .help-header {\n display: none;\n margin: 0 0 2rem 0;\n }\n\n .help-header__modal-title {\n font-size: 1.25rem;\n padding: 0;\n margin: 0;\n }\n\n .help__title,\n .help__text {\n text-align: center;\n }\n\n .help__title {\n font-weight: 400;\n margin-top: 0;\n margin-bottom: 0.5rem;\n }\n\n .help__text {\n max-width: 21rem;\n margin-left: auto;\n margin-right: auto;\n font-weight: 300;\n margin-top: 0;\n }\n\n .help__whats_stellar {\n display: none;\n }\n\n @media screen and (min-width: 768px) {\n .help-header {\n display: block;\n }\n\n .help__title,\n .help__text {\n text-align: left;\n margin-left: 0;\n }\n\n .help__whats_a_wallet {\n margin-bottom: 2rem;\n }\n\n .help__whats_stellar {\n display: block;\n }\n }\n`;\n\nexport const modalWalletsSection = css`\n .wallets-container {\n width: 100%;\n height: 100%;\n min-height: fit-content;\n display: flex;\n flex-direction: column;\n }\n\n .wallets-header {\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 1.5rem;\n }\n\n .wallets-header__modal-title {\n font-size: 1.25rem;\n padding: 0;\n margin: 0;\n }\n\n .wallets-header__button {\n background: none;\n border: none;\n cursor: pointer;\n }\n\n @media (prefers-color-scheme: light) {\n .wallets-header__button svg {\n fill: var(--modal-header-button-color, #8f8f8f);\n }\n }\n\n @media (prefers-color-scheme: dark) {\n .wallets-header__button svg {\n fill: var(--modal-header-button-color, #707070);\n }\n }\n\n .wallets-body {\n margin: 0;\n width: 100%;\n list-style: none;\n padding: 0 !important;\n }\n\n .wallets-body__item {\n display: flex;\n align-items: center;\n font-weight: 600;\n margin-bottom: 2rem;\n cursor: pointer;\n }\n\n .wallets-body__item img {\n margin-right: 1rem;\n width: 2rem;\n border-radius: 100%;\n overflow: hidden;\n }\n\n .wallets-body__item.not-available {\n cursor: alias;\n }\n\n .wallets-body__item .not-available {\n margin-left: auto;\n font-size: 10px;\n padding: 0.25rem 0.5rem;\n border-radius: 1rem;\n }\n\n @media (prefers-color-scheme: light) {\n .wallets-body__item .not-available {\n border: solid var(--modal-not-available-border-color, #e2e2e2) 1px;\n background-color: var(--modal-not-available-bg-color, #f3f3f3);\n color: var(--modal-not-available-text-color, #6f6f6f);\n }\n }\n\n @media (prefers-color-scheme: dark) {\n .wallets-body__item .not-available {\n border: solid var(--modal-not-available-border-color, #343434) 1px;\n background-color: var(--modal-not-available-bg-color, #232323);\n color: var(--modal-not-available-text-color, #a0a0a0);\n }\n }\n\n @media screen and (min-width: 768px) {\n }\n`;\n\nexport const backdropStyles = css`\n .dialog-modal[open] + .backdrop {\n background: rgba(0, 0, 0, 0.5);\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n`;\n\nexport const modalAnimations = css`\n .dialog-modal[open] {\n -webkit-animation: showModal 0.3s ease normal;\n }\n @-webkit-keyframes showModal {\n from {\n transform: translateY(25%);\n opacity: 0;\n }\n to {\n transform: translateY(0%);\n opacity: 1;\n }\n }\n\n .dialog-modal.closing {\n -webkit-animation: hideModal 0.3s ease normal !important;\n }\n @-webkit-keyframes hideModal {\n from {\n transform: translateY(0%);\n opacity: 1;\n }\n to {\n transform: translateY(25%);\n opacity: 0;\n }\n }\n\n .backdrop.closing {\n -webkit-animation: hideBackdrop 0.3s ease normal !important;\n }\n @-webkit-keyfram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