Files
memind_adm/src/ops/ops.css
T
john 13485558b5 feat(ops): add plaza post management page
List published and hidden posts with category filters, pagination, and
inline hide/restore actions for the operations console.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 19:27:21 +08:00

769 lines
13 KiB
CSS

:root {
color-scheme: dark;
color: #e9efe9;
background:
radial-gradient(circle at top left, rgba(78, 168, 120, 0.16), transparent 36%),
radial-gradient(circle at top right, rgba(34, 197, 94, 0.1), transparent 32%),
linear-gradient(180deg, #08120f 0%, #0f1714 100%);
font-family:
'Avenir Next',
'PingFang SC',
'Noto Sans SC',
'Helvetica Neue',
system-ui,
sans-serif;
font-size: 15px;
line-height: 1.5;
font-weight: 400;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
--ops-bg: #08120f;
--ops-surface: rgba(14, 24, 21, 0.88);
--ops-surface-strong: rgba(18, 30, 26, 0.98);
--ops-surface-soft: rgba(255, 255, 255, 0.04);
--ops-border: rgba(170, 196, 182, 0.16);
--ops-border-strong: rgba(170, 196, 182, 0.28);
--ops-text: #edf5ef;
--ops-text-muted: #a5b6ab;
--ops-text-soft: #7f9386;
--ops-accent: #66c79b;
--ops-accent-strong: #3f9b73;
--ops-danger: #ff6d5e;
--ops-warn: #f7b955;
--ops-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}
* {
box-sizing: border-box;
}
html {
background: var(--ops-bg);
}
body {
margin: 0;
min-height: 100vh;
color: var(--ops-text);
background:
radial-gradient(circle at top left, rgba(102, 199, 155, 0.14), transparent 24%),
radial-gradient(circle at 80% 0%, rgba(90, 140, 120, 0.12), transparent 22%),
var(--ops-bg);
}
a {
color: inherit;
text-decoration: none;
}
button,
input,
select,
textarea {
font: inherit;
}
button {
border: 0;
transition:
transform 160ms ease,
background-color 160ms ease,
border-color 160ms ease,
color 160ms ease,
box-shadow 160ms ease;
}
button:hover:not(:disabled) {
transform: translateY(-1px);
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
outline: 2px solid rgba(102, 199, 155, 0.9);
outline-offset: 2px;
}
.layout {
position: relative;
max-width: 1280px;
margin: 0 auto;
padding: 28px 18px 56px;
}
.layout::before {
content: '';
position: fixed;
inset: 0;
pointer-events: none;
background:
linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
background-size: 48px 48px;
mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 82%);
opacity: 0.35;
}
.page-header {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding: 22px 24px;
margin-bottom: 18px;
border: 1px solid var(--ops-border);
border-radius: 24px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
var(--ops-surface);
box-shadow: var(--ops-shadow);
backdrop-filter: blur(14px);
}
.page-title {
margin: 0;
font-size: clamp(1.8rem, 2vw, 2.4rem);
line-height: 1.1;
letter-spacing: -0.03em;
}
.page-subtitle,
.muted {
color: var(--ops-text-muted);
}
.caption {
font-size: 12px;
line-height: 1.4;
}
.page-subtitle {
margin: 8px 0 0;
}
.page-kicker {
display: inline-flex;
align-items: center;
gap: 8px;
margin-bottom: 12px;
padding: 5px 10px;
border: 1px solid rgba(102, 199, 155, 0.2);
border-radius: 999px;
background: rgba(102, 199, 155, 0.08);
color: #c7eadb;
font-size: 12px;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.account-line {
margin: 10px 0 0;
font-size: 13px;
}
.ops-shell {
display: grid;
grid-template-columns: 280px minmax(0, 1fr);
gap: 18px;
align-items: start;
}
.ops-sidebar {
position: sticky;
top: 18px;
display: grid;
gap: 16px;
align-self: start;
padding: 18px;
border: 1px solid var(--ops-border);
border-radius: 24px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
var(--ops-surface);
box-shadow: var(--ops-shadow);
backdrop-filter: blur(14px);
}
.ops-brand {
padding-bottom: 2px;
}
.ops-brand-title {
margin: 8px 0 0;
font-size: 28px;
line-height: 1.05;
letter-spacing: -0.04em;
}
.ops-brand-subtitle {
margin: 10px 0 0;
color: var(--ops-text-muted);
font-size: 13px;
}
.ops-identity {
display: grid;
gap: 4px;
padding: 14px;
background: var(--ops-surface-strong);
}
.ops-identity-label,
.ops-topbar-kicker {
font-size: 12px;
color: var(--ops-text-soft);
letter-spacing: 0.12em;
text-transform: uppercase;
}
.ops-identity-name {
font-size: 18px;
font-weight: 700;
letter-spacing: -0.02em;
}
.ops-identity-meta {
color: var(--ops-text-muted);
font-size: 13px;
}
.ops-nav {
display: flex;
flex-direction: column;
gap: 8px;
padding: 2px 0;
}
.ops-nav-section {
display: grid;
gap: 8px;
}
.ops-nav-section + .ops-nav-section {
margin-top: 8px;
}
.ops-nav-section-label {
padding: 0 2px;
font-size: 11px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--ops-text-soft);
}
.ops-nav-section-items {
display: grid;
gap: 8px;
}
.ops-nav-link {
display: flex;
align-items: center;
min-height: 48px;
padding: 0 14px;
border: 1px solid var(--ops-border);
border-radius: 16px;
color: var(--ops-text-muted);
background: rgba(255, 255, 255, 0.03);
}
.ops-nav-link:hover {
color: var(--ops-text);
border-color: var(--ops-border-strong);
background: rgba(255, 255, 255, 0.06);
}
.ops-nav-link.active {
color: #08120f;
border-color: transparent;
background: linear-gradient(180deg, #7ce2b3, #5dc590);
box-shadow: 0 12px 24px rgba(61, 168, 117, 0.18);
}
.ops-sidebar-footer {
display: grid;
gap: 10px;
}
.ops-back-link {
justify-content: center;
}
.ops-back-link.active {
color: var(--ops-text);
border-color: var(--ops-border-strong);
background: rgba(255, 255, 255, 0.08);
}
.ops-main {
min-width: 0;
display: grid;
gap: 16px;
}
.ops-topbar {
display: flex;
align-items: end;
justify-content: space-between;
gap: 16px;
padding: 18px 22px;
border: 1px solid var(--ops-border);
border-radius: 24px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
var(--ops-surface);
box-shadow: var(--ops-shadow);
backdrop-filter: blur(14px);
}
.ops-topbar-title {
margin: 6px 0 0;
font-size: 22px;
letter-spacing: -0.03em;
}
.ops-topbar-note {
margin: 0;
color: var(--ops-text-muted);
font-size: 13px;
}
.ops-toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
}
.ops-toolbar .search-input {
flex: 1 1 280px;
min-width: 220px;
}
.ops-table-wrap {
overflow: auto;
border: 1px solid var(--ops-border);
border-radius: 18px;
background: rgba(255, 255, 255, 0.02);
}
.ops-table {
width: 100%;
border-collapse: collapse;
min-width: 920px;
}
.ops-table th,
.ops-table td {
padding: 14px 16px;
border-bottom: 1px solid rgba(170, 196, 182, 0.09);
vertical-align: top;
text-align: left;
}
.ops-table thead th {
position: sticky;
top: 0;
z-index: 1;
background: rgba(10, 17, 14, 0.96);
color: var(--ops-text-muted);
font-size: 12px;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.ops-table tbody tr:hover {
background: rgba(255, 255, 255, 0.03);
}
.ops-table-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.ops-cell-muted {
color: var(--ops-text-muted);
}
.ops-stack-mini {
display: grid;
gap: 6px;
}
.ops-checkbox-cell {
width: 42px;
}
.ops-status-chip {
display: inline-flex;
align-items: center;
padding: 6px 10px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.05);
color: var(--ops-text);
font-size: 12px;
font-weight: 700;
}
.ops-status-chip.warn {
background: rgba(247, 185, 85, 0.12);
color: #ffd895;
}
.ops-summary-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: space-between;
align-items: center;
}
.grid {
display: grid;
gap: 16px;
}
.card {
border: 1px solid var(--ops-border);
border-radius: 20px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
var(--ops-surface);
box-shadow: var(--ops-shadow);
backdrop-filter: blur(14px);
padding: 18px;
}
.card h1,
.card h2,
.card h3,
.card h4,
.card p {
margin-top: 0;
}
.card h3 {
margin-bottom: 10px;
font-size: 18px;
letter-spacing: -0.02em;
}
.card p {
color: var(--ops-text);
}
.card strong {
color: #f9fbf9;
}
.card ul {
margin: 0;
padding-left: 18px;
color: var(--ops-text-muted);
}
.card li + li {
margin-top: 10px;
}
.toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
}
.toolbar > * {
min-width: 0;
}
.search-input {
flex: 1 1 240px;
min-width: 200px;
}
.stack {
display: grid;
gap: 12px;
}
.split {
display: flex;
justify-content: space-between;
gap: 14px;
}
.split > div {
min-width: 0;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 42px;
padding: 0 16px;
border-radius: 999px;
border: 1px solid transparent;
background: linear-gradient(180deg, var(--ops-accent), var(--ops-accent-strong));
color: #07110d;
font-weight: 700;
cursor: pointer;
box-shadow: 0 10px 22px rgba(61, 168, 117, 0.22);
}
.btn:hover:not(:disabled) {
box-shadow: 0 14px 28px rgba(61, 168, 117, 0.28);
}
.btn.secondary {
border-color: var(--ops-border-strong);
background: rgba(255, 255, 255, 0.04);
color: var(--ops-text);
box-shadow: none;
}
.btn.secondary:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.08);
}
.btn.danger {
border-color: rgba(255, 109, 94, 0.22);
background: linear-gradient(180deg, #ff8578, #ff6251);
color: #180a08;
box-shadow: 0 10px 22px rgba(255, 109, 94, 0.18);
}
.btn:disabled {
cursor: not-allowed;
opacity: 0.45;
transform: none;
box-shadow: none;
}
.ghost-btn,
.ghost-btn.secondary {
border: 1px solid var(--ops-border-strong);
background: rgba(255, 255, 255, 0.03);
color: var(--ops-text);
box-shadow: none;
}
.ghost-btn:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.08);
}
.logout-btn {
min-width: 96px;
}
input,
select,
textarea {
width: 100%;
min-height: 42px;
border: 1px solid var(--ops-border);
border-radius: 14px;
padding: 0 14px;
color: var(--ops-text);
background: rgba(255, 255, 255, 0.04);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
textarea {
min-height: 108px;
padding: 12px 14px;
resize: vertical;
}
input::placeholder,
textarea::placeholder {
color: var(--ops-text-soft);
}
input:focus,
select:focus,
textarea:focus {
border-color: rgba(102, 199, 155, 0.55);
box-shadow: 0 0 0 4px rgba(102, 199, 155, 0.16);
}
input[type='checkbox'] {
width: 18px;
height: 18px;
min-height: 18px;
padding: 0;
accent-color: var(--ops-accent);
}
.warn,
.alert {
display: inline-flex;
align-items: center;
gap: 8px;
margin: 0;
padding: 8px 12px;
border-radius: 999px;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.01em;
}
.warn {
border: 1px solid rgba(247, 185, 85, 0.22);
background: rgba(247, 185, 85, 0.1);
color: #ffd895;
}
.alert {
border: 1px solid rgba(255, 109, 94, 0.22);
background: rgba(255, 109, 94, 0.1);
color: #ffc1ba;
}
.metrics {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 14px;
}
.metric {
padding: 16px;
border: 1px solid var(--ops-border);
border-radius: 18px;
background: rgba(255, 255, 255, 0.03);
}
.metric p {
margin-bottom: 6px;
color: var(--ops-text-muted);
font-size: 13px;
}
.metric strong {
display: block;
font-size: 30px;
line-height: 1;
letter-spacing: -0.04em;
}
.section-title {
margin: 0 0 8px;
font-size: 14px;
color: var(--ops-text-muted);
text-transform: uppercase;
letter-spacing: 0.08em;
}
.empty-state {
display: grid;
place-items: center;
min-height: 180px;
color: var(--ops-text-muted);
text-align: center;
}
.link-button {
color: var(--ops-accent);
}
@media (max-width: 860px) {
.layout {
padding: 18px 14px 36px;
}
.ops-shell {
grid-template-columns: 1fr;
}
.ops-sidebar {
position: static;
}
.page-header,
.card {
padding: 16px;
border-radius: 18px;
}
.ops-topbar {
align-items: flex-start;
flex-direction: column;
}
.ops-table {
min-width: 760px;
}
.split {
flex-direction: column;
}
.toolbar {
align-items: stretch;
}
}
.ops-filter-row {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: flex-start;
}
.ops-filter-label {
flex: 0 0 auto;
padding-top: 8px;
font-size: 13px;
color: var(--ops-muted);
}
.ops-chip-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
flex: 1;
}
.ops-chip {
border: 1px solid rgba(255, 255, 255, 0.08);
background: rgba(255, 255, 255, 0.03);
color: var(--ops-text);
border-radius: 999px;
padding: 6px 12px;
font-size: 13px;
cursor: pointer;
}
.ops-chip.active {
border-color: rgba(120, 170, 255, 0.45);
background: rgba(120, 170, 255, 0.14);
}
.ops-title-row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
}
.ops-inline-action {
padding: 4px 10px;
font-size: 12px;
}
.ops-pagination {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
justify-content: flex-end;
padding: 16px;
border-top: 1px solid rgba(255, 255, 255, 0.06);
}