@metadaoproject/wallet-adapter-react-ui
Version:
766 lines (665 loc) • 16.8 kB
CSS
/* latin-ext */
@font-face {
font-family: 'DM Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/dmsans/v15/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6z9mXgjU0.woff2) format('woff2');
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'DM Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/dmsans/v15/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K6z9mXg.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'DM Sans';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(https://fonts.gstatic.com/s/dmsans/v15/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6z9mXgjU0.woff2) format('woff2');
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'DM Sans';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(https://fonts.gstatic.com/s/dmsans/v15/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K6z9mXg.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'DM Sans';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/dmsans/v15/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6z9mXgjU0.woff2) format('woff2');
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'DM Sans';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/dmsans/v15/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K6z9mXg.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.wallet-adapter-button {
background-color: transparent;
border: none;
color: #fff;
cursor: pointer;
display: flex;
align-items: center;
font-family: 'DM Sans', 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 16px;
font-weight: 600;
height: 48px;
line-height: 48px;
padding: 0 24px;
border-radius: 14px;
transition: transform 200ms ease;
}
.wallet-adapter-button-trigger {
background-color: #383838;
}
.wallet-adapter-button:not([disabled]):focus-visible {
outline-color: white;
}
.wallet-adapter-button:not([disabled]):hover {
background-color: #484848;
transform: scale(0.98);
}
.wallet-adapter-button[disabled] {
background: #686868;
color: #999;
cursor: not-allowed;
}
.wallet-adapter-button-end-icon,
.wallet-adapter-button-start-icon,
.wallet-adapter-button-end-icon img,
.wallet-adapter-button-start-icon img {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
}
.wallet-adapter-button-end-icon {
margin-left: 12px;
}
.wallet-adapter-button-start-icon {
margin-right: 12px;
}
.wallet-adapter-collapse {
width: 100%;
}
.wallet-adapter-dropdown {
position: relative;
display: inline-block;
}
.wallet-adapter-dropdown-list {
position: absolute;
z-index: 99;
display: grid;
grid-template-rows: 1fr;
grid-row-gap: 10px;
padding: 10px;
top: 100%;
right: -15px;
margin: 0;
list-style: none;
background: #2c2d30;
border-radius: 15px;
box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
opacity: 0;
visibility: hidden;
transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
font-family: 'DM Sans', 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.wallet-adapter-dropdown-list-active {
opacity: 1;
visibility: visible;
transform: translateY(10px);
}
.wallet-adapter-dropdown-list-item {
display: flex;
flex-direction: row;
justify-content: start;
align-items: center;
gap: 10px;
border: none;
outline: none;
cursor: pointer;
white-space: nowrap;
box-sizing: border-box;
padding: 0 20px;
width: 100%;
border-radius: 10px;
font-size: 14px;
font-weight: 600;
height: 37px;
color: #fff;
}
.wallet-adapter-dropdown-list-item:not([disabled]):hover {
background-color: #404040;
}
/* ... (existing styles) */
.wallet-adapter-public-key {
font-size: 0.75rem;
color: rgba(255, 255, 255, 1);
font-family: monospace;
opacity: 0;
transition: opacity 150ms ease-in-out;
}
.wallet-adapter-dropdown-list-active .wallet-adapter-public-key {
opacity: 1;
}
.wallet-adapter-copy-button {
position: relative;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
margin-left: 0.5rem;
background: none;
border: none;
cursor: pointer;
transition: transform 0.1s ease;
}
.wallet-adapter-copy-button:active {
transform: scale(0.95);
}
.wallet-adapter-copy-button:focus {
outline: none;
}
/* .wallet-adapter-copy-button-icon {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
} */
.wallet-adapter-copy-button-icon svg,
.wallet-adapter-dropdown-list-item svg {
transition: all 0.15s ease-in-out;
fill: rgba(255, 255, 255, 0.5);
}
.wallet-adapter-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
opacity: 0;
transition: opacity linear 150ms;
background: rgba(0, 0, 0, 0.5);
z-index: 1040;
overflow-y: auto;
}
.wallet-adapter-modal.wallet-adapter-modal-fade-in {
opacity: 1;
}
.wallet-adapter-modal-button-info {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 18px;
left: 18px;
cursor: pointer;
background: transparent;
border: none;
border-radius: 50%;
transition: background-color 200ms ease;
}
.wallet-adapter-modal-button-info svg {
fill: #777;
transition: fill 200ms ease 0s;
}
.wallet-adapter-modal-button-info:hover svg {
fill: #fff;
}
.wallet-adapter-modal-button-close,
.wallet-adapter-modal-button-info {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 18px;
cursor: pointer;
background: transparent;
border: none;
border-radius: 50%;
transition: background-color 200ms ease;
z-index: 10;
}
.wallet-adapter-modal-button-close {
right: 18px;
padding: 12px;
}
.wallet-adapter-modal-button-info {
left: 18px;
padding: 8px;
}
.wallet-adapter-modal-button-close:focus-visible,
.wallet-adapter-modal-button-info:focus-visible {
outline-color: white;
}
.wallet-adapter-modal-button-close:hover,
.wallet-adapter-modal-button-info:hover {
background: #333333;
}
.wallet-adapter-modal-button-close svg,
.wallet-adapter-modal-button-info svg {
fill: #777;
transition: fill 200ms ease 0s;
}
.wallet-adapter-modal-button-close:hover svg,
.wallet-adapter-modal-button-info:hover svg {
fill: #fff;
}
.wallet-adapter-modal-button-close svg {
width: 14px;
height: 14px;
}
.wallet-adapter-modal-button-info svg {
width: 16px;
height: 16px;
}
.wallet-adapter-modal-overlay {
background: rgba(0, 0, 0, 0.5);
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
.wallet-adapter-modal-container {
display: flex;
margin: 3rem;
min-height: calc(100vh - 6rem); /* 100vh - 2 * margin */
align-items: center;
justify-content: center;
}
@media (max-width: 480px) {
.wallet-adapter-modal-container {
margin: 1rem;
min-height: calc(100vh - 2rem); /* 100vh - 2 * margin */
}
}
.wallet-adapter-modal-wrapper {
box-sizing: border-box;
overflow: hidden;
position: relative;
display: flex;
align-items: center;
flex-direction: column;
z-index: 1050;
max-width: 360px;
border-radius: 20px;
background: #2B2B2B;
padding: 0 1rem;
box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
font-family: 'DM Sans', 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
flex: 1;
transition: width 200ms ease, height 200ms ease;
}
.wallet-adapter-modal-wrapper .wallet-adapter-button {
width: 100%;
}
/* Styles for the burner wallet in the modal list */
.wallet-adapter-modal-list .wallet-adapter-modal-burner-wallet {
background: #2b2b2b ;
color: #808080;
justify-content: center;
padding: 15px 0 ;
font-size: 15px;
line-height: 18px;
font-weight: 500;
transition: color 200ms, transform 100ms;
}
.wallet-adapter-modal-list .wallet-adapter-modal-burner-wallet:hover {
background: transparent;
color: #f57c00;
}
.wallet-adapter-modal-list .wallet-adapter-modal-burner-wallet .wallet-adapter-button-start-icon {
display: flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
margin-right: 6px;
}
.wallet-adapter-modal-list .wallet-adapter-modal-burner-wallet .wallet-adapter-button-start-icon img {
width: 100%;
height: 100%;
object-fit: contain;
}
.wallet-adapter-modal-list .wallet-adapter-modal-burner-wallet:hover .wallet-adapter-button-start-icon {
transition: transform 200ms ease;
}
.wallet-adapter-modal-list .wallet-adapter-modal-burner-wallet .wallet-adapter-button-start-icon path {
fill: #FFAE5A;
}
.wallet-adapter-modal-list .wallet-adapter-modal-burner-wallet span {
opacity: 1;
font-weight: bold;
margin-left: 0;
}
/* .wallet-adapter-modal-list .wallet-adapter-modal-burner-wallet .wallet-adapter-button-start-icon,
.wallet-adapter-modal-list .wallet-adapter-modal-burner-wallet .wallet-adapter-button-end-icon {
display: none;
} */
.wallet-adapter-modal-title {
font-weight: 500;
font-size: 18px;
line-height: 36px;
margin: 0;
padding: 20px 48px;
text-align: center;
color: #fff;
}
@media (max-width: 374px) {
.wallet-adapter-modal-title {
font-size: 18px;
}
}
.wallet-adapter-modal-list {
margin: 0 0 12px 0;
padding: 0;
width: 100%;
list-style: none;
}
.wallet-adapter-modal-list .wallet-adapter-button {
font-weight: 400;
border-radius: 15px;
padding: 30px 20px;
font-size: 18px;
margin-bottom: 0.5rem;
background: #383838;
}
.wallet-adapter-modal-list .wallet-adapter-button-end-icon,
.wallet-adapter-modal-list .wallet-adapter-button-start-icon,
.wallet-adapter-modal-list .wallet-adapter-button-end-icon img,
.wallet-adapter-modal-list .wallet-adapter-button-start-icon img {
width: 28px;
height: 28px;
}
.wallet-adapter-modal-list .wallet-adapter-button span {
margin-left: auto;
font-size: 14px;
opacity: .6;
}
.wallet-adapter-modal-list-more {
cursor: pointer;
border: none;
padding: 12px 24px 24px 12px;
align-self: flex-end;
display: flex;
align-items: center;
background-color: transparent;
color: #fff;
}
.wallet-adapter-modal-list-more svg {
transition: all 0.1s ease;
fill: rgba(255, 255, 255, 1);
margin-left: 0.5rem;
}
.wallet-adapter-modal-list-more-icon-rotate {
transform: rotate(180deg);
}
.wallet-adapter-modal-middle {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
padding: 0 12px;
box-sizing: border-box;
}
.wallet-adapter-modal-middle h1 {
color: #fff;
font-size: 18px;
font-weight: 700;
margin-top: 20px;
}
.wallet-adapter-modal-middle p {
color: gray;
font-size: 16px;
font-weight: 400;
line-height: 21px;
text-align: center;
margin-bottom: 20px;
}
.wallet-adapter-modal-middle svg {
width: 130px;
height: 130px;
}
.wallet-adapter-modal-middle-button {
display: block;
cursor: pointer;
margin-top: 48px;
width: 100%;
background-color: #512da8;
padding: 12px;
font-size: 18px;
border: none;
border-radius: 8px;
color: #fff;
}
/* WalletInfoModal styles */
.wallet-adapter-modal-info-title {
font-weight: 500;
font-size: 16px;
line-height: 36px;
margin: 0;
padding: 20px 48px;
text-align: center;
color: #fff;
}
.wallet-adapter-modal-info-content {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
.wallet-info-slider {
position: relative;
width: 90%;
height: 120px;
}
.wallet-info-step {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transform: scale(0.8);
transition: transform 200ms ease;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
.wallet-info-step.active {
opacity: 1;
transform: scale(1);
}
.wallet-info-step-title {
font-size: 18px;
font-weight: bold;
color: #fff;
}
.wallet-info-step-content {
font-size: 16px;
font-weight: 400;
line-height: 21px;
color: #808080;
}
.wallet-info-navigation {
justify-content: center;
background: #2b2b2b;
align-items: center;
height: 10px;
display: flex;
position: absolute;
padding: 10px;
}
.wallet-info-navigation-container,
.wallet-info-separator-container {
align-items: center;
justify-content: center;
display: flex;
position: relative;
width: 100%;
height: 30px;
}
.wallet-info-separator-container {
margin-bottom: 0;
}
.wallet-info-navigation-container {
margin-bottom: 10px;
}
.step-indicator {
cursor: pointer;
background-color: #444444;
border: none;
border-radius: 20%;
width: 6px;
height: 6px;
margin: 0 5px;
transition: all 200ms ease;
}
.step-indicator.active {
background-color: #4e44ce;
width: 30px;
}
.step-indicator.active:hover {
background-color: #685EEB;
width: 30px;
height: 10px;
}
.step-indicator:hover {
background-color: #575757;
height: 10px;
}
.wallet-info-separator {
width: 100%;
height: 1px;
position: absolute;
background: linear-gradient(to right, rgba(59, 59, 59, 0), rgb(87 87 87) 50%, rgba(59, 59, 59, 0));
}
.wallet-info-learn-more {
color: #fff;
cursor: pointer;
background-color: #444444;
border: none;
border-radius: 15px;
padding: 15px 20px;
margin-bottom: 17px;
font-size: 16px;
width: 100%;
transition: transform 200ms ease;
}
.wallet-info-learn-more:hover {
background-color: #3d35a5;
transform: scale(0.98);
}
.wallet-illustration-container {
display: flex;
justify-content: center;
position: relative;
width: 100%;
height: 200px;
max-width: 364px;
margin: 0 auto;
}
.wallet-illustration-background {
width: 100%;
height: 100%;
}
.wallet-illustration-new-background {
width: 90%;
height: 100%;
}
.wallet-illustration-svg {
z-index: 1;
width: 100px;
height: auto;
position: absolute;
top: 30%;
z-index: 1;
width: 100px;
height: auto;
}
.wallet-illustration-circles {
position: absolute;
top: 0;
bottom: 0;
width: 0;
}
.wallet-illustration-circles.left {
left: 0;
}
.wallet-illustration-circles.right {
right: 0;
}
.circle {
position: absolute;
width: 50px;
height: 50px;
border-radius: 50%;
opacity: 0.7;
}
.token-svg {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 2;
}
.token-svg.bitcoin {
width: 66px;
height: 66px;
}
.token-svg.ethereum {
width: 66px;
height: 66px;
}
.token-svg.solana {
width: 66px;
height: 66px;
}
.connected-text {
color: #fff;
z-index: 3;
font-size: 12px;
font-weight: 700;
position: absolute;
top: 48px;
left: 62%;
}
.wallet-adapter-terms-of-service {
display: flex;
gap: 8px;
padding-bottom: 16px;
}
.wallet-adapter-terms-of-service a {
color: #ff4848;
text-decoration: underline;
font-weight: 600;
}
.wallet-adapter-button.disabled {
opacity: 60%;
cursor: not-allowed;
}