fix: NCWF-4 Token Issues (#8)
Co-authored-by: Lala, Shahd <Shahd.Lala@sybit.de> Co-authored-by: shahdlala66 <shahd.lala66@gmail.com> Reviewed-on: #8
This commit was merged in pull request #8.
This commit is contained in:
@@ -0,0 +1,163 @@
|
||||
:host {
|
||||
--nc-neon: #ff45c8;
|
||||
--nc-bg: #06060d;
|
||||
--nc-surface: rgba(20, 17, 42, 0.6);
|
||||
--nc-text: #fff;
|
||||
--nc-text-muted: rgba(255, 255, 255, 0.65);
|
||||
--nc-text-dim: rgba(255, 255, 255, 0.45);
|
||||
--nc-border: rgba(255, 255, 255, 0.08);
|
||||
--nc-border-strong: rgba(255, 255, 255, 0.15);
|
||||
--nc-success: #5ee5a1;
|
||||
--nc-danger: #ff7a7a;
|
||||
--nc-warn: #ffd166;
|
||||
--nc-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
|
||||
display: block;
|
||||
min-height: 100vh;
|
||||
background: var(--nc-bg);
|
||||
font-family: var(--nc-sans);
|
||||
color: var(--nc-text);
|
||||
}
|
||||
|
||||
:host-context(html:not([data-theme='dark'])) {
|
||||
--nc-neon: #c026d3;
|
||||
--nc-bg: #f5f0fc;
|
||||
--nc-surface: rgba(255, 255, 255, 0.88);
|
||||
--nc-text: #0f0022;
|
||||
--nc-text-muted: rgba(15, 0, 34, 0.65);
|
||||
--nc-text-dim: rgba(15, 0, 34, 0.4);
|
||||
--nc-border: rgba(15, 0, 34, 0.1);
|
||||
--nc-border-strong: rgba(15, 0, 34, 0.2);
|
||||
--nc-success: #16a34a;
|
||||
--nc-danger: #dc2626;
|
||||
--nc-warn: #b45309;
|
||||
}
|
||||
|
||||
.b-shell { padding-top: 72px; min-height: 100vh; }
|
||||
.page { max-width: 680px; margin: 0 auto; padding: 32px 20px 64px; }
|
||||
|
||||
.crumb { display: flex; align-items: center; gap: 8px; margin-bottom: 28px;
|
||||
font-size: 11px; color: var(--nc-text-dim); letter-spacing: 0.06em; }
|
||||
.crumb-link { display: inline-flex; align-items: center; gap: 4px;
|
||||
color: var(--nc-text-dim); text-decoration: none; transition: color 0.15s; }
|
||||
.crumb-link:hover { color: var(--nc-neon); }
|
||||
.crumb-sep { opacity: 0.35; }
|
||||
.crumb-current { color: var(--nc-text-muted); }
|
||||
|
||||
.page-header { margin-bottom: 24px; }
|
||||
.title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
|
||||
.page-title { font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
|
||||
.page-sub { font-size: 13px; color: var(--nc-text-muted); margin: 0; line-height: 1.5; }
|
||||
|
||||
.btn-new {
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
padding: 7px 14px; border-radius: 8px; border: none;
|
||||
background: var(--nc-neon); color: #fff;
|
||||
font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity 0.15s;
|
||||
}
|
||||
.btn-new:hover { opacity: 0.85; }
|
||||
|
||||
/* Create panel */
|
||||
.create-panel {
|
||||
border: 1px solid var(--nc-border-strong); border-radius: 12px;
|
||||
background: var(--nc-surface); padding: 16px; margin-bottom: 20px;
|
||||
}
|
||||
.create-inner { display: flex; flex-direction: column; gap: 10px; }
|
||||
.field-label { font-size: 11px; font-weight: 600; text-transform: uppercase;
|
||||
letter-spacing: 0.06em; color: var(--nc-text-muted); }
|
||||
.create-row { display: flex; gap: 8px; align-items: center; }
|
||||
.text-input {
|
||||
flex: 1; padding: 8px 12px; border-radius: 8px;
|
||||
border: 1px solid var(--nc-border-strong);
|
||||
background: rgba(255,255,255,0.04); color: var(--nc-text); font-size: 14px;
|
||||
}
|
||||
.text-input:focus { outline: 2px solid var(--nc-neon); outline-offset: 1px; border-color: transparent; }
|
||||
.text-input:disabled { opacity: 0.5; }
|
||||
.error-text { font-size: 12px; color: var(--nc-danger); margin: 0; }
|
||||
|
||||
/* Buttons */
|
||||
.btn-primary {
|
||||
padding: 8px 16px; border-radius: 8px; border: none;
|
||||
background: var(--nc-neon); color: #fff; font-size: 13px; font-weight: 600;
|
||||
cursor: pointer; white-space: nowrap; transition: opacity 0.15s;
|
||||
}
|
||||
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
.btn-ghost {
|
||||
padding: 8px 14px; border-radius: 8px; border: 1px solid var(--nc-border-strong);
|
||||
background: transparent; color: var(--nc-text-muted); font-size: 13px; cursor: pointer;
|
||||
}
|
||||
.btn-ghost:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
|
||||
/* States */
|
||||
.state-msg { display: flex; align-items: center; gap: 10px;
|
||||
padding: 24px 0; color: var(--nc-text-muted); font-size: 13px; }
|
||||
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--nc-neon);
|
||||
flex-shrink: 0; animation: pulse 1.4s ease-in-out infinite; }
|
||||
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.85); } }
|
||||
|
||||
.empty-state { display: flex; flex-direction: column; align-items: center;
|
||||
gap: 8px; padding: 64px 0; text-align: center; }
|
||||
.empty-icon { color: var(--nc-text-dim); margin-bottom: 4px; }
|
||||
.empty-title { font-size: 15px; font-weight: 600; margin: 0; }
|
||||
.empty-sub { font-size: 13px; color: var(--nc-text-muted); margin: 0; }
|
||||
|
||||
/* Bot list */
|
||||
.bot-list { display: flex; flex-direction: column; gap: 8px; }
|
||||
.bot-card {
|
||||
border: 1px solid var(--nc-border); border-radius: 12px;
|
||||
background: var(--nc-surface); overflow: hidden;
|
||||
}
|
||||
.bot-main {
|
||||
display: flex; align-items: center; gap: 12px;
|
||||
padding: 14px 16px;
|
||||
}
|
||||
.bot-avatar {
|
||||
width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
|
||||
background: var(--nc-neon); color: #fff;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 16px; font-weight: 700;
|
||||
}
|
||||
.bot-info { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
|
||||
.bot-name { font-size: 14px; font-weight: 600; }
|
||||
.bot-meta { font-size: 11px; color: var(--nc-text-muted); }
|
||||
.bot-actions { display: flex; gap: 8px; flex-shrink: 0; }
|
||||
|
||||
.btn-token {
|
||||
display: inline-flex; align-items: center; gap: 5px;
|
||||
padding: 6px 12px; border-radius: 7px; border: 1px solid var(--nc-border-strong);
|
||||
background: transparent; color: var(--nc-text-muted); font-size: 12px; cursor: pointer;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
}
|
||||
.btn-token:hover, .btn-token.active { background: rgba(255,69,200,0.1); color: var(--nc-neon); border-color: var(--nc-neon); }
|
||||
.btn-token:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
.btn-danger {
|
||||
padding: 6px 12px; border-radius: 7px; border: 1px solid rgba(255,122,122,0.3);
|
||||
background: transparent; color: var(--nc-danger); font-size: 12px; cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
.btn-danger:hover { background: rgba(255,122,122,0.1); }
|
||||
.btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
|
||||
/* Token panel */
|
||||
.token-panel {
|
||||
border-top: 1px solid var(--nc-border); padding: 12px 16px;
|
||||
display: flex; flex-direction: column; gap: 10px;
|
||||
}
|
||||
.token-warning {
|
||||
display: flex; align-items: flex-start; gap: 8px;
|
||||
font-size: 12px; color: var(--nc-warn);
|
||||
}
|
||||
.token-row { display: flex; align-items: center; gap: 8px; }
|
||||
.token-value {
|
||||
flex: 1; font-family: monospace; font-size: 11px;
|
||||
background: rgba(0,0,0,0.2); border-radius: 6px;
|
||||
padding: 8px 10px; word-break: break-all;
|
||||
color: var(--nc-text-muted); border: 1px solid var(--nc-border);
|
||||
}
|
||||
.btn-copy {
|
||||
padding: 6px 12px; border-radius: 7px; border: 1px solid var(--nc-border-strong);
|
||||
background: transparent; color: var(--nc-text-muted); font-size: 12px;
|
||||
cursor: pointer; white-space: nowrap; transition: color 0.15s;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.btn-copy:hover { color: var(--nc-success); }
|
||||
Reference in New Issue
Block a user