Lucace's picture
fix(modal): portal modal to document.body, resolve mobile black screen, and add multiple visible back buttons
17f57f1
Raw History Blame Contribute Delete
12.8 kB
/* === Scanner Layout === */
.scanner-container {
background: #0e1117;
border: 1px solid rgba(102, 252, 241, 0.18);
border-radius: 12px;
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}
.scanner-status {
padding: 0.55rem 1.2rem;
border-bottom: 1px solid rgba(102, 252, 241, 0.1);
display: flex;
align-items: center;
gap: 0.6rem;
background: rgba(0, 0, 0, 0.35);
flex-shrink: 0;
}
.filter-badge {
background: rgba(192, 132, 252, 0.12);
border: 1px solid var(--accent-purple);
color: var(--accent-purple);
padding: 0.15rem 0.6rem;
border-radius: 20px;
font-size: 0.68rem;
font-weight: 800;
letter-spacing: 1px;
display: flex;
align-items: center;
}
.reset-list-btn {
margin-left: 15px;
background: rgba(255, 78, 100, 0.1);
border: 1px solid rgba(255, 78, 100, 0.3);
color: var(--accent-red);
padding: 0.15rem 0.6rem;
border-radius: 4px;
font-size: 0.68rem;
font-weight: 800;
cursor: pointer;
transition: all 0.15s;
}
.reset-list-btn:hover {
background: var(--accent-red);
color: #0b0c10;
box-shadow: 0 0 10px rgba(255, 78, 100, 0.4);
}
.status-dot {
width: 8px; height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.status-dot.active { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); animation: pulseDot 2s infinite; }
.status-dot.inactive { background: var(--accent-red); }
@keyframes pulseDot {
0%, 100% { box-shadow: 0 0 4px var(--accent-green); }
50% { box-shadow: 0 0 14px var(--accent-green); }
}
/* === Instruction Banner === */
.scanner-instruction-banner {
background: linear-gradient(90deg, rgba(102, 252, 241, 0.09) 0%, rgba(192, 132, 252, 0.06) 100%);
border-bottom: 1px solid rgba(102, 252, 241, 0.18);
padding: 0.45rem 1.2rem;
display: flex;
align-items: center;
gap: 0.6rem;
font-size: 0.72rem;
color: var(--text-bright);
flex-shrink: 0;
}
.instruction-icon {
font-size: 0.95rem;
flex-shrink: 0;
}
.instruction-text {
flex: 1;
letter-spacing: 0.3px;
}
.instruction-text strong {
color: var(--accent-cyan);
}
.instruction-pill {
background: rgba(102, 252, 241, 0.15);
border: 1px solid var(--accent-cyan);
color: var(--accent-cyan);
font-size: 0.6rem;
font-weight: 800;
letter-spacing: 0.5px;
padding: 2px 8px;
border-radius: 4px;
white-space: nowrap;
animation: pulseGlow 2.5s infinite;
}
@keyframes pulseGlow {
0%, 100% { box-shadow: 0 0 4px rgba(102, 252, 241, 0.2); }
50% { box-shadow: 0 0 10px rgba(102, 252, 241, 0.5); }
}
.token-list {
flex: 1;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
padding: 0.8rem;
}
.empty-state {
display: flex; flex-direction: column;
align-items: center; justify-content: center;
height: 100%; text-align: center; padding: 2rem;
}
/* === Token Card === */
.token-card {
background: rgba(255,255,255,0.02);
border: 1px solid rgba(255,255,255,0.07);
border-radius: 8px;
margin-bottom: 0.75rem;
overflow: hidden;
cursor: pointer !important;
position: relative;
-webkit-tap-highlight-color: transparent;
transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
background 0.2s ease;
}
.token-card:hover {
transform: translateY(-2px);
border-color: rgba(102, 252, 241, 0.45);
box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 16px rgba(102, 252, 241, 0.15);
background: rgba(255, 255, 255, 0.04);
}
.token-card:active {
transform: translateY(0);
}
.card-rejected { border-left: 3px solid var(--accent-red) !important; }
.card-passed { border-left: 3px solid var(--accent-green) !important; }
.card-pending { border-left: 3px solid #eab308 !important; }
.card-historical { opacity: 0.82; border-style: dashed !important; }
/* === Card Header === */
.card-header {
padding: 0.55rem 0.9rem;
border-bottom: 1px solid rgba(255,255,255,0.05);
background: rgba(0,0,0,0.2);
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.6rem;
}
.header-left {
display: flex; align-items: center; gap: 0.55rem;
min-width: 0;
}
.token-logo {
width: 30px; height: 30px;
border-radius: 50%;
border: 1px solid rgba(255,255,255,0.1);
object-fit: cover;
flex-shrink: 0;
}
.token-name {
font-size: 0.82rem; font-weight: 700;
color: var(--text-bright);
}
.token-symbol {
font-size: 0.75rem;
color: var(--accent-cyan);
font-weight: 600;
}
.token-addr {
font-size: 0.65rem; color: var(--text-muted);
font-family: 'Courier New', monospace;
margin-top: 1px;
}
.header-right {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 0.25rem;
flex-shrink: 0;
}
.header-meta-row {
display: flex;
align-items: center;
gap: 0.5rem;
}
.timestamp-badge {
font-size: 0.65rem; color: var(--text-muted);
font-family: 'Courier New', monospace;
white-space: nowrap;
}
.tx-link {
font-size: 0.7rem; font-weight: 700;
color: var(--accent-cyan); text-decoration: none;
}
.tx-link:hover { text-decoration: underline; }
.card-inspect-pill {
display: inline-flex;
align-items: center;
gap: 3px;
background: rgba(102, 252, 241, 0.1);
border: 1px solid rgba(102, 252, 241, 0.3);
color: var(--accent-cyan);
padding: 0.15rem 0.5rem;
border-radius: 5px;
font-size: 0.62rem;
font-weight: 800;
letter-spacing: 0.4px;
transition: all 0.2s ease;
cursor: pointer;
}
.pill-arrow {
transition: transform 0.2s ease;
}
.token-card:hover .card-inspect-pill {
background: var(--accent-cyan);
color: #0b0c10;
border-color: var(--accent-cyan);
box-shadow: 0 0 10px rgba(102, 252, 241, 0.4);
}
.token-card:hover .pill-arrow {
transform: translateX(2px);
}
/* === Phases Grid === */
.phases-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 1px;
background: rgba(255,255,255,0.04);
}
.phase-box {
background: rgba(10, 11, 15, 0.95);
padding: 0.7rem 0.85rem;
display: flex; flex-direction: column;
gap: 0;
}
.phase-title {
font-size: 0.65rem; font-weight: 800;
letter-spacing: 0.8px;
display: flex; align-items: center;
margin-bottom: 0.4rem;
text-transform: uppercase;
opacity: 0.85;
}
/* === Badges & Links === */
.social-badges {
display: flex; gap: 0.35rem; flex-wrap: wrap;
margin-bottom: 0.35rem;
}
.badge-link {
display: inline-flex; padding: 0.18rem 0.45rem;
border-radius: 4px; font-size: 0.65rem; font-weight: 800;
text-decoration: none; transition: opacity 0.15s;
}
.badge-link:hover { opacity: 0.8; }
.badge-green { background: rgba(0,255,135,0.12); color: var(--accent-green); border: 1px solid rgba(0,255,135,0.3); }
.badge-blue { background: rgba(100,149,237,0.15); color: #87CEEB; border: 1px solid rgba(100,149,237,0.3); }
.badge-cyan { background: rgba(102,252,241,0.1); color: var(--accent-cyan); border: 1px solid rgba(102,252,241,0.3); }
.link-row { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.5rem; }
.chip-link {
font-size: 0.65rem; font-weight: 700;
padding: 0.15rem 0.45rem;
border-radius: 4px; text-decoration: none;
transition: opacity 0.15s;
}
.chip-link:hover { opacity: 0.8; }
.chip-cyan { background: rgba(102,252,241,0.1); color: var(--accent-cyan); border: 1px solid rgba(102,252,241,0.25); }
.chip-muted { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid rgba(255,255,255,0.1); }
/* === Animation === */
@keyframes slideIn {
from { opacity: 0; transform: translateY(-6px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-slide-in { animation: slideIn 0.2s ease forwards; }
/* === Utilities === */
.font-mono { font-family: 'Courier New', monospace; }
.font-bold { font-weight: 700; }
.text-bright { color: var(--text-bright); }
.text-muted { color: var(--text-muted); }
.text-cyan { color: var(--accent-cyan); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-purple { color: var(--accent-purple); }
.text-yellow { color: #f9c74f; }
.text-xs { font-size: 0.7rem; }
.text-sm { font-size: 0.82rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mr-1 { margin-right: 0.2rem; }
.ml-auto { margin-left: auto; }
.hover-underline:hover { text-decoration: underline; }
.inline-icon { display: inline-block; vertical-align: middle; }
.pulse-icon { animation: pulseOpacity 2s infinite; }
.opacity-50 { opacity: 0.5; }
@keyframes pulseOpacity {
0%, 100% { opacity: 0.3; } 50% { opacity: 0.8; }
}
.card-action-bar {
border-top: 1px dashed rgba(102, 252, 241, 0.16);
padding: 0.42rem 0.95rem;
display: flex;
align-items: center;
justify-content: space-between;
background: rgba(102, 252, 241, 0.02);
transition: all 0.2s ease;
}
.token-card:hover .card-action-bar {
background: rgba(102, 252, 241, 0.08);
border-top-color: rgba(102, 252, 241, 0.35);
}
.action-bar-left {
display: flex;
align-items: center;
gap: 0.45rem;
min-width: 0;
}
.action-status-dot {
width: 6px;
height: 6px;
border-radius: 50%;
flex-shrink: 0;
}
.dot-good { background: var(--accent-green); box-shadow: 0 0 6px var(--accent-green); }
.dot-danger { background: var(--accent-red); box-shadow: 0 0 6px var(--accent-red); }
.dot-pending { background: #eab308; box-shadow: 0 0 6px #eab308; }
.action-text {
font-size: 0.63rem;
font-weight: 800;
color: var(--text-muted);
letter-spacing: 0.4px;
font-family: 'Courier New', monospace;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.token-card:hover .action-text {
color: var(--text-bright);
}
.action-bar-cta {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 0.64rem;
font-weight: 800;
color: var(--accent-cyan);
letter-spacing: 0.5px;
flex-shrink: 0;
text-transform: uppercase;
transition: all 0.15s ease;
}
.action-cta-arrow {
transition: transform 0.2s ease;
font-weight: 900;
}
.token-card:hover .action-bar-cta {
color: #ffffff;
text-shadow: 0 0 8px rgba(102, 252, 241, 0.8);
}
.token-card:hover .action-cta-arrow {
transform: translateX(3px);
}
/* === Responsive Scanner === */
@media (max-width: 768px) {
.scanner-instruction-banner {
padding: 0.35rem 0.65rem;
font-size: 0.64rem;
}
.instruction-pill {
display: none;
}
.scanner-status {
padding: 0.45rem 0.65rem;
flex-wrap: wrap;
gap: 0.35rem 0.6rem;
}
.scanner-status > span.font-mono {
font-size: 0.68rem;
}
.filter-badge {
font-size: 0.62rem;
padding: 0.12rem 0.45rem;
}
.reset-list-btn {
margin-left: auto;
font-size: 0.62rem;
padding: 0.12rem 0.5rem;
}
.scanner-status .ml-auto {
display: none;
}
.token-list {
padding: 0.45rem 0.35rem;
}
.card-header {
padding: 0.45rem 0.65rem;
gap: 0.4rem;
}
.token-logo {
width: 26px;
height: 26px;
}
.token-name {
font-size: 0.78rem;
max-width: 140px;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: bottom;
}
.token-symbol {
font-size: 0.7rem;
}
.token-addr {
font-size: 0.6rem;
}
.timestamp-badge {
font-size: 0.58rem;
}
.tx-link {
font-size: 0.65rem;
}
.card-inspect-pill {
font-size: 0.56rem;
padding: 0.1rem 0.38rem;
}
.phases-grid {
grid-template-columns: 1fr 1fr;
gap: 1px;
}
.phase-box {
padding: 0.45rem 0.55rem;
min-width: 0;
overflow: hidden;
word-break: break-word;
overflow-wrap: anywhere;
}
.phases-grid > .phase-box:last-child {
grid-column: span 2;
}
.phase-title {
font-size: 0.58rem;
margin-bottom: 0.25rem;
}
.action-bar-cta {
font-size: 0.58rem;
}
}
@media (max-width: 420px) {
.scanner-status {
padding: 0.35rem 0.5rem;
}
.token-list {
padding: 0.35rem 0.25rem;
}
.card-header {
flex-wrap: wrap;
gap: 0.35rem;
}
.header-right {
width: 100%;
flex-direction: row;
justify-content: space-between;
align-items: center;
margin-top: 0.2rem;
}
.card-inspect-pill {
margin-top: 0;
}
.token-name {
max-width: 105px;
}
.phase-box {
padding: 0.4rem 0.45rem;
}
.phase-title {
font-size: 0.54rem;
letter-spacing: 0.4px;
}
.badge-link {
padding: 0.12rem 0.32rem;
font-size: 0.58rem;
}
.chip-link {
padding: 0.12rem 0.35rem;
font-size: 0.58rem;
}
.card-action-bar {
padding: 0.35rem 0.5rem;
}
.action-text {
font-size: 0.56rem;
letter-spacing: 0.2px;
}
.action-bar-cta {
font-size: 0.52rem;
}
}