@hot-labs/near-connect
Version:

263 lines (232 loc) • 4.84 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.css = void 0;
const css = (id) => /*css*/ `
${id} * {
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
-ms-overflow-style: none;
scrollbar-width: none;
color: #fff;
}
${id} *::-webkit-scrollbar {
display: none;
}
${id} p,
${id} h1,
${id} h2,
${id} h3,
${id} h4,
${id} h5,
${id} h6 {
margin: 0;
}
${id} .modal-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 100000000;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
transition: opacity 0.2s ease-in-out;
}
@media (max-width: 600px) {
${id} .modal-container {
justify-content: flex-end;
}
}
${id} .modal-content {
display: flex;
flex-direction: column;
align-items: center;
max-width: 420px;
max-height: 615px;
width: 100%;
border-radius: 24px;
background: #0d0d0d;
border: 1.5px solid rgba(255, 255, 255, 0.1);
transition: transform 0.2s ease-in-out;
}
@media (max-width: 600px) {
${id} .modal-content {
max-width: 100%;
width: 100%;
max-height: 80%;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
border: none;
border-top: 1.5px solid rgba(255, 255, 255, 0.1);
}
}
${id} .modal-header {
display: flex;
padding: 16px;
gap: 16px;
align-self: stretch;
align-items: center;
justify-content: center;
position: relative;
}
${id} .modal-header button {
position: absolute;
right: 16px;
top: 16px;
width: 32px;
height: 32px;
border-radius: 12px;
cursor: pointer;
transition: background 0.2s ease-in-out;
border: none;
background: none;
display: flex;
align-items: center;
justify-content: center;
}
${id} .modal-header button:hover {
background: rgba(255, 255, 255, 0.04);
}
${id} .modal-header p {
color: #fff;
text-align: center;
font-size: 24px;
font-style: normal;
font-weight: 600;
line-height: normal;
margin: 0;
}
${id} .modal-body {
display: flex;
padding: 16px;
flex-direction: column;
align-items: flex-start;
text-align: center;
gap: 8px;
overflow: auto;
border-radius: 24px;
background: rgba(255, 255, 255, 0.08);
width: 100%;
flex: 1;
}
${id} .modal-body textarea {
width: 100%;
padding: 12px;
border-radius: 12px;
background: #0d0d0d;
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.1);
outline: none;
font-size: 16px;
transition: background 0.2s ease-in-out;
font-family: monospace;
font-size: 12px;
}
${id} .modal-body button {
width: 100%;
padding: 12px;
border-radius: 12px;
background: #fff;
color: #000;
border: none;
cursor: pointer;
font-size: 16px;
transition: background 0.2s ease-in-out;
margin-top: 16px;
}
${id} .footer {
width: 100%;
display: flex;
align-items: center;
justify-content: flex-start;
padding: 16px 24px;
color: #fff;
gap: 12px;
}
${id} .modal-body p {
color: rgba(255, 255, 255, 0.9);
text-align: center;
font-size: 16px;
font-style: normal;
font-weight: 500;
line-height: normal;
letter-spacing: -0.8px;
}
${id} .footer img {
width: 24px;
height: 24px;
border-radius: 50%;
object-fit: cover;
}
${id} .get-wallet-link {
color: rgba(255, 255, 255, 0.5);
text-align: center;
font-size: 16px;
font-style: normal;
font-weight: 500;
margin-left: auto;
text-decoration: none;
transition: color 0.2s ease-in-out;
cursor: pointer;
}
${id} .get-wallet-link:hover {
color: rgba(255, 255, 255, 1);
}
${id} .connect-item {
display: flex;
padding: 8px;
align-items: center;
gap: 12px;
align-self: stretch;
cursor: pointer;
transition: background 0.2s ease-in-out;
border-radius: 24px;
}
${id} .connect-item img {
width: 48px;
height: 48px;
border-radius: 16px;
object-fit: cover;
flex-shrink: 0;
}
${id} .connect-item-info {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 4px;
text-align: left;
flex: 1;
margin-top: -2px;
}
${id} .connect-item-info .wallet-address {
color: rgba(255, 255, 255, 0.5);
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: normal;
}
${id} .connect-item:hover {
background: rgba(255, 255, 255, 0.04);
}
${id} .connect-item img {
width: 48px;
height: 48px;
border-radius: 16px;
object-fit: cover;
}
${id} .connect-item p {
color: rgba(255, 255, 255, 0.9);
text-align: center;
font-size: 18px;
font-style: normal;
font-weight: 600;
line-height: normal;
letter-spacing: -0.36px;
margin: 0;
}
`;
exports.css = css;
//# sourceMappingURL=styles.js.map