Files
siti-plugin-repo/src/App.css

624 lines
9.6 KiB
CSS

:root {
color-scheme: light dark;
}
.app {
min-height: 100vh;
background: radial-gradient(circle at top, #f5f7ff, #ffffff 45%);
color: #0f172a;
font-family: "Inter", system-ui, sans-serif;
padding: 48px 8vw 64px;
}
.site-nav {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-bottom: 32px;
flex-wrap: wrap;
}
.nav-logo {
font-weight: 700;
color: inherit;
text-decoration: none;
font-size: 1.1rem;
}
.nav-links {
display: flex;
gap: 12px;
}
.nav-user {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.9rem;
color: #475569;
}
.nav-user-name {
font-weight: 600;
}
.nav-user-guest {
color: #94a3b8;
font-size: 0.85rem;
}
.nav-link {
padding: 8px 16px;
border-radius: 999px;
border: 1px solid transparent;
text-decoration: none;
color: #475569;
font-weight: 600;
}
.nav-link.active {
background: #eef2ff;
color: #4338ca;
border-color: #c7d2fe;
}
.page {
display: flex;
flex-direction: column;
gap: 32px;
}
.hero {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
margin-bottom: 48px;
flex-wrap: wrap;
}
.eyebrow {
text-transform: uppercase;
letter-spacing: 0.2em;
font-size: 12px;
color: #6366f1;
font-weight: 600;
margin: 0 0 8px;
}
.hero h1 {
font-size: clamp(2.4rem, 4vw, 3.4rem);
margin: 0 0 8px;
}
.subtitle {
margin: 0;
font-size: 1.1rem;
color: #475569;
max-width: 520px;
}
.hint {
margin: 8px 0 0;
font-size: 0.9rem;
color: #64748b;
}
.cta {
background: #4f46e5;
color: #fff;
padding: 12px 20px;
border-radius: 999px;
text-decoration: none;
font-weight: 600;
box-shadow: 0 8px 24px rgba(79, 70, 229, 0.2);
transition: transform 0.2s ease, box-shadow 0.2s ease;
display: inline-flex;
align-items: center;
justify-content: center;
border: none;
cursor: pointer;
}
.cta:hover {
transform: translateY(-2px);
box-shadow: 0 12px 30px rgba(79, 70, 229, 0.3);
}
.ghost {
border: 1px solid #c7d2fe;
color: #4338ca;
padding: 8px 14px;
border-radius: 999px;
text-decoration: none;
font-weight: 600;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
background: transparent;
cursor: pointer;
}
.ghost-small {
padding: 6px 12px;
font-size: 0.85rem;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 20px;
}
.actions {
display: flex;
align-items: center;
gap: 12px;
margin-top: auto;
}
.card {
background: #fff;
border-radius: 20px;
padding: 24px;
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
display: flex;
flex-direction: column;
gap: 12px;
}
.card-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.card h2 {
margin: 0;
font-size: 1.3rem;
}
.card p {
margin: 0;
color: #475569;
}
.pill {
background: #eef2ff;
color: #4338ca;
font-size: 0.75rem;
font-weight: 600;
padding: 4px 10px;
border-radius: 999px;
}
.meta {
display: flex;
gap: 12px;
font-size: 0.9rem;
color: #64748b;
}
.topics {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.topic {
background: #f1f5f9;
color: #475569;
font-size: 0.75rem;
padding: 4px 8px;
border-radius: 999px;
}
.link {
color: #4f46e5;
font-weight: 600;
text-decoration: none;
}
.state {
background: #fff;
border-radius: 16px;
padding: 20px;
box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
color: #475569;
}
.state.error {
background: #fee2e2;
color: #b91c1c;
}
.state.success {
background: #dcfce7;
color: #166534;
}
.state.inline {
margin-top: 16px;
padding: 16px;
}
.footer {
margin-top: 48px;
color: #94a3b8;
font-size: 0.9rem;
}
.detail-hero {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
flex-wrap: wrap;
}
.detail-actions {
display: flex;
align-items: center;
gap: 12px;
}
.detail-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.detail-list {
display: grid;
gap: 12px;
margin: 16px 0;
}
.detail-list div {
display: flex;
flex-direction: column;
gap: 4px;
color: #64748b;
}
.detail-list strong {
color: inherit;
}
.list {
list-style: none;
padding: 0;
margin: 12px 0 0;
display: grid;
gap: 12px;
}
.list li {
display: flex;
justify-content: space-between;
gap: 12px;
color: #64748b;
}
.list a {
color: #4f46e5;
text-decoration: none;
font-weight: 600;
}
.license-meta-bar {
display: flex;
gap: 24px;
flex-wrap: wrap;
color: #64748b;
font-size: 0.95rem;
}
.license-forms {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.form-grid {
display: flex;
flex-direction: column;
gap: 16px;
}
.field {
display: flex;
flex-direction: column;
gap: 8px;
font-size: 0.9rem;
color: #475569;
}
.field input,
.field select,
.field textarea {
border-radius: 12px;
border: 1px solid #e2e8f0;
padding: 10px 14px;
font-size: 1rem;
font-family: inherit;
background: #fff;
color: inherit;
}
.license-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.license-card-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
}
.license-card h3 {
margin: 0;
}
.license-subtitle {
margin: 4px 0 0;
color: #94a3b8;
font-size: 0.9rem;
}
.license-note {
margin-top: 4px;
font-size: 0.95rem;
color: #475569;
}
.license-detail-list {
margin-top: 0;
}
.host-list ul {
list-style: none;
padding: 0;
margin: 8px 0 0;
display: flex;
flex-direction: column;
gap: 8px;
}
.host-list li {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
font-size: 0.9rem;
color: #64748b;
}
.host-list li strong {
color: inherit;
}
.license-links {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 12px;
margin-top: auto;
}
.ghost-pill {
border: 1px solid #cbd5f5;
border-radius: 999px;
padding: 4px 10px;
font-size: 0.85rem;
color: #475569;
}
.auth-card {
gap: 16px;
}
.auth-tabs {
display: flex;
gap: 8px;
}
.auth-tab {
flex: 1;
border-radius: 999px;
border: 1px solid #e2e8f0;
background: #f8fafc;
padding: 8px 12px;
font-weight: 600;
cursor: pointer;
color: #475569;
}
.auth-tab.active {
background: #eef2ff;
border-color: #c7d2fe;
color: #4338ca;
}
.inline-field {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.9rem;
}
.inline-field select {
border-radius: 12px;
border: 1px solid #e2e8f0;
padding: 6px 10px;
font-size: 0.9rem;
}
.checkbox-field {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.9rem;
color: #475569;
}
@media (max-width: 600px) {
.app {
padding: 40px 6vw 56px;
}
.hero {
align-items: flex-start;
}
}
@media (prefers-color-scheme: dark) {
.app {
background: radial-gradient(circle at top, #1e1b4b, #0b1120 50%);
color: #e2e8f0;
}
.site-nav {
border-color: rgba(99, 102, 241, 0.4);
}
.nav-link {
color: #cbd5f5;
}
.nav-link.active {
background: rgba(79, 70, 229, 0.2);
border-color: rgba(79, 70, 229, 0.4);
color: #faf5ff;
}
.nav-user {
color: #cbd5f5;
}
.nav-user-guest {
color: #94a3b8;
}
.subtitle {
color: #cbd5f5;
}
.card {
background: #0f172a;
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
}
.card p {
color: #cbd5f5;
}
.pill {
background: #312e81;
color: #e0e7ff;
}
.meta {
color: #94a3b8;
}
.topic {
background: #1e293b;
color: #cbd5f5;
}
.link {
color: #a5b4fc;
}
.ghost {
border-color: #4f46e5;
color: #e0e7ff;
}
.auth-tab {
border-color: #312e81;
background: #1e1b4b;
color: #cbd5f5;
}
.auth-tab.active {
background: rgba(79, 70, 229, 0.2);
border-color: rgba(79, 70, 229, 0.6);
color: #faf5ff;
}
.hint,
.license-meta-bar,
.license-note {
color: #cbd5f5;
}
.inline-field select {
background: #1e1b4b;
border-color: #312e81;
color: #e2e8f0;
}
.checkbox-field {
color: #cbd5f5;
}
.field input,
.field select,
.field textarea {
background: #1e1b4b;
border-color: #312e81;
color: #e2e8f0;
}
.host-list li {
color: #cbd5f5;
}
.detail-list div {
color: #cbd5f5;
}
.list li {
color: #cbd5f5;
}
.list a {
color: #a5b4fc;
}
.state {
background: #0f172a;
color: #cbd5f5;
box-shadow: 0 10px 20px rgba(15, 23, 42, 0.4);
}
.state.error {
background: #7f1d1d;
color: #fee2e2;
}
.state.success {
background: #14532d;
color: #bbf7d0;
}
.ghost-pill {
border-color: #4f46e5;
color: #cbd5f5;
}
.footer {
color: #94a3b8;
}
}