Packages

Full-stack framework for AI products — agents, memory, real-time UI, and admin in Elixir

Current section

Files

Jump to
sigil priv templates sigil.new priv static css app.css
Raw

priv/templates/sigil.new/priv/static/css/app.css

/* =============================================
My App — Design System
============================================= */
:root {
--bg: #121110;
--sidebar: #171513;
--main: #141210;
--text: #f1eadf;
--muted: #b7aea2;
--line: #2b2723;
--soft: #1d1a17;
--chip: #1b1815;
--accent: #f5efe4;
--green: #4ade80;
--red: #f87171;
--blue: #60a5fa;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; scroll-behavior: smooth; }
body {
background: var(--bg);
color: var(--text);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
line-height: 1.7;
-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
/* =============================================
Public Layout
============================================= */
.layout {
display: grid;
grid-template-columns: minmax(300px, 34vw) 1fr;
min-height: 100vh;
}
.sidebar {
position: sticky;
top: 0;
height: 100vh;
background: var(--sidebar);
border-right: 1px solid var(--line);
overflow: auto;
padding: 28px 24px 40px;
}
.masthead {
padding-bottom: 22px;
border-bottom: 1px solid var(--line);
}
.brand h1 {
font-family: "EB Garamond", Georgia, serif;
font-size: clamp(2rem, 4vw, 2.8rem);
line-height: 0.95;
letter-spacing: -0.03em;
font-weight: 600;
}
.brand p {
margin-top: 6px;
color: var(--muted);
font-size: 0.95rem;
}
.sidebar-section {
padding: 24px 0;
border-bottom: 1px solid var(--line);
}
.sidebar-section:last-child { border-bottom: none; }
h2 {
margin-bottom: 14px;
color: var(--muted);
font-size: 0.78rem;
letter-spacing: 0.12em;
text-transform: uppercase;
font-weight: 600;
}
.intro, .about {
color: var(--muted);
font-size: 0.96rem;
}
.tags {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.tag {
display: inline-flex;
align-items: center;
padding: 7px 12px;
border-radius: 999px;
border: 1px solid var(--line);
background: var(--chip);
color: var(--muted);
font-size: 0.9rem;
}
.agent-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.agent-link {
display: block;
padding: 10px 14px;
border: 1px solid var(--line);
border-radius: 12px;
background: rgba(255,255,255,0.01);
color: var(--text);
font-size: 0.95rem;
transition: background 0.2s, border-color 0.2s;
}
.agent-link:hover {
background: rgba(255,255,255,0.04);
border-color: #3a3530;
}
/* Main content */
.main {
background: var(--main);
min-width: 0;
}
.journal-feed {
max-width: 780px;
margin: 0 auto;
padding: 40px 28px 80px;
}
.feed-label {
margin-bottom: 26px;
color: var(--muted);
font-size: 0.82rem;
letter-spacing: 0.12em;
text-transform: uppercase;
font-weight: 600;
}
.entry {
padding-bottom: 42px;
margin-bottom: 42px;
border-bottom: 1px solid var(--line);
}
.entry:last-child { border-bottom: none; }
.entry-meta {
margin-bottom: 14px;
color: var(--muted);
font-size: 0.92rem;
}
.entry h3 {
font-family: "EB Garamond", Georgia, serif;
font-size: clamp(2.2rem, 5vw, 3.2rem);
line-height: 0.95;
font-weight: 500;
letter-spacing: -0.03em;
margin-bottom: 18px;
}
.entry h3 a { transition: opacity 0.2s; }
.entry h3 a:hover { opacity: 0.7; }
.entry p {
color: #ddd4c8;
font-size: 1.06rem;
max-width: 42rem;
margin-bottom: 1em;
}
.entry-tags {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 18px;
}
.entry-tag {
color: var(--muted);
font-size: 0.9rem;
}
/* =============================================
Single Entry Page
============================================= */
.entry-page {
max-width: 780px;
margin: 0 auto;
padding: 40px 28px 80px;
}
.back-link {
display: inline-block;
color: var(--muted);
font-size: 0.92rem;
margin-bottom: 32px;
transition: color 0.2s;
}
.back-link:hover { color: var(--text); }
.entry-full h1 {
font-family: "EB Garamond", Georgia, serif;
font-size: clamp(2.4rem, 5vw, 3.8rem);
line-height: 0.95;
font-weight: 500;
letter-spacing: -0.03em;
margin-bottom: 28px;
}
.entry-full p {
color: #ddd4c8;
font-size: 1.1rem;
line-height: 1.8;
max-width: 42rem;
margin-bottom: 1.2em;
}
/* =============================================
Chat Page
============================================= */
.chat-page {
display: grid;
grid-template-columns: 240px 1fr;
min-height: 100vh;
}
.chat-sidebar {
background: var(--sidebar);
border-right: 1px solid var(--line);
padding: 24px;
}
.chat-sidebar h2 {
margin-top: 24px;
}
.agent-tabs {
display: flex;
flex-direction: column;
gap: 4px;
}
.agent-tab {
display: block;
padding: 8px 12px;
border-radius: 8px;
color: var(--muted);
font-size: 0.92rem;
transition: background 0.2s;
}
.agent-tab:hover { background: rgba(255,255,255,0.04); }
.agent-tab.active { background: rgba(255,255,255,0.06); color: var(--text); }
.chat-main {
display: flex;
flex-direction: column;
height: 100vh;
}
.chat-header {
padding: 24px 28px;
border-bottom: 1px solid var(--line);
}
.chat-header h1 {
font-family: "EB Garamond", Georgia, serif;
font-size: 1.8rem;
font-weight: 500;
}
.chat-description {
color: var(--muted);
font-size: 0.92rem;
margin-top: 4px;
}
.chat-log {
flex: 1;
overflow-y: auto;
padding: 24px 28px;
display: flex;
flex-direction: column;
gap: 12px;
}
.message {
max-width: 80%;
padding: 12px 16px;
border-radius: 14px;
font-size: 0.95rem;
white-space: pre-wrap;
line-height: 1.6;
}
.message.ai {
background: #181512;
border: 1px solid #26211d;
align-self: flex-start;
}
.message.user {
background: #211d19;
align-self: flex-end;
}
.message.loading {
color: var(--muted);
animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 0.5; }
50% { opacity: 1; }
}
.chat-form {
display: grid;
grid-template-columns: 1fr auto;
gap: 10px;
padding: 16px 28px;
border-top: 1px solid var(--line);
background: rgba(0,0,0,0.2);
}
.chat-form input {
padding: 14px 16px;
border-radius: 14px;
border: 1px solid var(--line);
background: var(--bg);
color: var(--text);
font: inherit;
font-size: 0.95rem;
outline: none;
}
.chat-form input::placeholder { color: #9f9588; }
.chat-form input:focus { border-color: #3a3530; }
.chat-form button {
padding: 0 24px;
border-radius: 14px;
border: 1px solid var(--line);
background: var(--accent);
color: #161310;
font: inherit;
font-weight: 600;
cursor: pointer;
transition: opacity 0.2s;
}
.chat-form button:hover { opacity: 0.85; }
/* =============================================
Login Page
============================================= */
.login-page {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
.login-card {
width: 100%;
max-width: 380px;
padding: 40px 32px;
background: var(--sidebar);
border: 1px solid var(--line);
border-radius: 20px;
}
.login-card h1 {
font-family: "EB Garamond", Georgia, serif;
font-size: 2rem;
margin-bottom: 4px;
}
.login-subtitle {
color: var(--muted);
font-size: 0.92rem;
margin-bottom: 24px;
}
.login-card label {
display: block;
color: var(--muted);
font-size: 0.85rem;
font-weight: 500;
margin-bottom: 6px;
margin-top: 16px;
}
.login-card input {
width: 100%;
padding: 12px 14px;
border-radius: 10px;
border: 1px solid var(--line);
background: var(--bg);
color: var(--text);
font: inherit;
outline: none;
}
.login-card input:focus { border-color: #3a3530; }
.login-card button {
width: 100%;
margin-top: 24px;
padding: 14px;
border-radius: 12px;
border: none;
background: var(--accent);
color: #161310;
font: inherit;
font-weight: 600;
cursor: pointer;
}
.login-error {
color: var(--red);
font-size: 0.9rem;
margin-bottom: 8px;
}
.login-back {
display: block;
text-align: center;
margin-top: 20px;
color: var(--muted);
font-size: 0.9rem;
}
/* =============================================
Admin
============================================= */
body.admin {
background: #0e0d0c;
}
.admin-nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 28px;
border-bottom: 1px solid var(--line);
background: var(--sidebar);
}
.admin-logo {
font-weight: 600;
font-size: 1.05rem;
}
.admin-links {
display: flex;
align-items: center;
gap: 20px;
}
.admin-links a {
color: var(--muted);
font-size: 0.92rem;
transition: color 0.2s;
}
.admin-links a:hover { color: var(--text); }
.admin-logout {
background: none;
border: 1px solid var(--line);
color: var(--muted);
padding: 6px 14px;
border-radius: 8px;
font: inherit;
font-size: 0.85rem;
cursor: pointer;
}
.admin-main {
max-width: 960px;
margin: 0 auto;
padding: 32px 28px 80px;
}
/* Dashboard */
.dashboard h1 {
font-size: 1.5rem;
margin-bottom: 24px;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
margin-bottom: 36px;
}
.stat-card {
background: var(--sidebar);
border: 1px solid var(--line);
border-radius: 14px;
padding: 20px;
text-align: center;
}
.stat-number {
font-size: 2.2rem;
font-weight: 600;
line-height: 1;
margin-bottom: 6px;
}
.stat-label {
color: var(--muted);
font-size: 0.82rem;
text-transform: uppercase;
letter-spacing: 0.06em;
}
/* Section */
.section { margin-bottom: 36px; }
.section-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
}
.section-header h1, .section-header h2 {
font-size: 1.3rem;
color: var(--text);
text-transform: none;
letter-spacing: 0;
}
/* Admin Table */
.admin-table {
width: 100%;
border-collapse: collapse;
}
.admin-table th {
text-align: left;
padding: 10px 12px;
color: var(--muted);
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.08em;
border-bottom: 1px solid var(--line);
}
.admin-table td {
padding: 12px;
border-bottom: 1px solid var(--line);
font-size: 0.95rem;
}
.admin-table a { color: var(--blue); }
.admin-table a:hover { text-decoration: underline; }
.admin-table code {
background: rgba(255,255,255,0.05);
padding: 2px 6px;
border-radius: 4px;
font-size: 0.85rem;
}
.status {
display: inline-block;
padding: 3px 10px;
border-radius: 999px;
font-size: 0.8rem;
font-weight: 500;
}
.status.published { background: rgba(74,222,128,0.15); color: var(--green); }
.status.draft { background: rgba(255,255,255,0.05); color: var(--muted); }
/* Buttons */
.btn {
display: inline-block;
padding: 8px 18px;
border-radius: 10px;
border: 1px solid var(--line);
background: transparent;
color: var(--text);
font: inherit;
font-size: 0.9rem;
cursor: pointer;
text-decoration: none;
transition: background 0.2s;
}
.btn:hover { background: rgba(255,255,255,0.04); }
.btn-primary {
background: var(--accent);
color: #161310;
border-color: transparent;
font-weight: 600;
}
.btn-primary:hover { opacity: 0.85; background: var(--accent); }
.btn-small { padding: 4px 12px; font-size: 0.82rem; }
.btn-danger {
border-color: var(--red);
color: var(--red);
}
.btn-danger:hover { background: rgba(248,113,113,0.1); }
/* Admin Form */
.admin-form {
max-width: 640px;
}
.admin-form h1 {
font-size: 1.5rem;
margin-bottom: 24px;
}
.admin-form label {
display: block;
color: var(--muted);
font-size: 0.85rem;
font-weight: 500;
margin-bottom: 6px;
margin-top: 20px;
}
.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form textarea,
.admin-form select {
width: 100%;
padding: 12px 14px;
border-radius: 10px;
border: 1px solid var(--line);
background: var(--sidebar);
color: var(--text);
font: inherit;
font-size: 0.95rem;
outline: none;
resize: vertical;
}
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
border-color: #3a3530;
}
.admin-form select {
appearance: none;
cursor: pointer;
}
.form-row {
margin-top: 20px;
}
.checkbox-label {
display: flex;
align-items: center;
gap: 8px;
color: var(--text) !important;
font-size: 0.95rem !important;
cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
width: 18px;
height: 18px;
accent-color: var(--green);
}
.form-actions {
display: flex;
align-items: center;
gap: 12px;
margin-top: 28px;
justify-content: flex-end;
}
.success-msg {
color: var(--green);
font-size: 0.92rem;
margin-bottom: 16px;
padding: 10px 14px;
background: rgba(74,222,128,0.08);
border: 1px solid rgba(74,222,128,0.2);
border-radius: 10px;
}
.error-msg {
color: var(--red);
font-size: 0.92rem;
margin-bottom: 16px;
padding: 10px 14px;
background: rgba(248,113,113,0.08);
border: 1px solid rgba(248,113,113,0.2);
border-radius: 10px;
}
/* =============================================
Responsive
============================================= */
@media (max-width: 900px) {
.layout {
grid-template-columns: 1fr;
}
.sidebar {
position: relative;
height: auto;
border-right: none;
border-bottom: 1px solid var(--line);
}
.chat-page {
grid-template-columns: 1fr;
}
.chat-sidebar {
border-right: none;
border-bottom: 1px solid var(--line);
padding: 16px;
}
.agent-tabs {
flex-direction: row;
flex-wrap: wrap;
}
.stats-grid {
grid-template-columns: repeat(2, 1fr);
}
}