Files
Ngino/src/ReverseLlama.Server/wwwroot/admin/app.css
T
lucretia 2357957eb1
Build & Deploy / build (push) Successful in 2m24s
fix(clients): fixes models list way too wide
2026-07-17 20:15:07 +02:00

535 lines
7.7 KiB
CSS

:root {
color-scheme: light;
--bg: #f5f7f9;
--panel: #ffffff;
--panel-alt: #eef2f6;
--text: #18212f;
--muted: #667085;
--line: #d9e0e7;
--line-strong: #b8c3cf;
--blue: #2f6fed;
--blue-dark: #1f4fb7;
--green: #117a55;
--red: #b42318;
--amber: #9a6500;
--shadow: 0 12px 30px rgba(24, 33, 47, 0.08);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: var(--bg);
color: var(--text);
font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
font-size: 14px;
}
button,
input,
select,
textarea {
font: inherit;
}
.app-shell {
display: grid;
grid-template-columns: 248px minmax(0, 1fr);
min-height: 100vh;
}
.sidebar {
display: flex;
flex-direction: column;
gap: 20px;
padding: 20px 16px;
background: #151b24;
color: #f8fafc;
}
.brand {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.brand-mark {
display: grid;
place-items: center;
width: 34px;
height: 34px;
border: 1px solid #4c5d74;
border-radius: 6px;
background: #223044;
color: #c8f2df;
font-weight: 800;
letter-spacing: 0;
}
.brand strong,
.brand small {
display: block;
overflow-wrap: anywhere;
}
.brand small {
color: #aeb8c6;
margin-top: 2px;
}
.nav {
display: grid;
gap: 6px;
}
.nav a {
color: #d8dee8;
text-decoration: none;
padding: 9px 10px;
border-radius: 6px;
}
.nav a.active,
.nav a:hover {
background: #263449;
color: #ffffff;
}
.sidebar-meta {
margin-top: auto;
padding-top: 16px;
border-top: 1px solid #344154;
color: #b8c3cf;
font-size: 12px;
line-height: 1.5;
overflow-wrap: anywhere;
}
.main {
min-width: 0;
padding: 22px;
}
.topbar {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
margin-bottom: 16px;
}
.topbar h1 {
margin: 0;
font-size: 24px;
line-height: 1.2;
letter-spacing: 0;
}
.topbar p {
margin: 6px 0 0;
color: var(--muted);
}
.topbar-actions {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.content {
display: grid;
gap: 14px;
}
.toolbar {
display: flex;
align-items: end;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.form-row {
display: flex;
align-items: end;
gap: 8px;
flex-wrap: wrap;
}
.field {
display: grid;
gap: 5px;
}
.field label {
color: var(--muted);
font-size: 12px;
font-weight: 600;
}
.input,
.select,
.textarea {
width: 100%;
min-height: 36px;
border: 1px solid var(--line-strong);
border-radius: 6px;
background: #ffffff;
color: var(--text);
padding: 8px 10px;
}
.textarea {
min-height: 72px;
resize: vertical;
}
.input:focus,
.select:focus,
.textarea:focus {
outline: 2px solid rgba(47, 111, 237, 0.25);
border-color: var(--blue);
}
.button {
min-height: 36px;
border: 1px solid var(--blue);
border-radius: 6px;
background: var(--blue);
color: #ffffff;
padding: 8px 12px;
font-weight: 700;
cursor: pointer;
white-space: nowrap;
}
.button:hover {
background: var(--blue-dark);
border-color: var(--blue-dark);
}
.button.secondary {
background: #ffffff;
border-color: var(--line-strong);
color: var(--text);
}
.button.secondary:hover {
background: var(--panel-alt);
}
.button.danger {
background: #ffffff;
border-color: #e5aaa4;
color: var(--red);
}
.button.danger:hover {
background: #fff1f0;
}
.button.warning {
background: #ffffff;
border-color: #e4c37c;
color: var(--amber);
}
.button.warning:hover {
background: #fff8e5;
}
.button:disabled {
cursor: not-allowed;
opacity: 0.55;
}
.panel {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 8px;
box-shadow: var(--shadow);
}
.panel-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 14px 16px;
border-bottom: 1px solid var(--line);
}
.panel-header h2 {
margin: 0;
font-size: 15px;
letter-spacing: 0;
}
.panel-body {
padding: 14px 16px;
}
.table-wrap {
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
min-width: 900px;
}
th,
td {
padding: 10px 12px;
border-bottom: 1px solid var(--line);
text-align: left;
vertical-align: top;
}
.col-models {
max-width: 40%;
overflow-wrap: anywhere;
}
th {
color: var(--muted);
font-size: 12px;
font-weight: 800;
text-transform: uppercase;
}
tr:last-child td {
border-bottom: 0;
}
.cell-main {
font-weight: 800;
overflow-wrap: anywhere;
}
.cell-sub {
margin-top: 3px;
color: var(--muted);
font-size: 12px;
overflow-wrap: anywhere;
}
.actions {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.badge-row {
display: flex;
gap: 5px;
flex-wrap: wrap;
}
.badge {
display: inline-flex;
align-items: center;
min-height: 24px;
border: 1px solid var(--line);
border-radius: 999px;
padding: 3px 8px;
background: var(--panel-alt);
color: var(--text);
font-size: 12px;
font-weight: 700;
white-space: nowrap;
}
.badge.good {
border-color: #9bd7bd;
background: #eaf8f1;
color: var(--green);
}
.badge.bad {
border-color: #efb2ad;
background: #fff1f0;
color: var(--red);
}
.badge.warn {
border-color: #ead09a;
background: #fff8e5;
color: var(--amber);
}
.badge[href] {
text-decoration: none;
cursor: pointer;
}
.badge[href]:hover {
border-color: var(--blue);
background: #edf4ff;
color: var(--blue);
}
.metric-grid {
display: grid;
grid-template-columns: repeat(4, minmax(120px, 1fr));
gap: 10px;
}
.metric {
padding: 12px;
border: 1px solid var(--line);
border-radius: 8px;
background: #ffffff;
}
.metric strong {
display: block;
font-size: 22px;
letter-spacing: 0;
}
.metric span {
display: block;
margin-top: 4px;
color: var(--muted);
font-size: 12px;
}
.notice {
margin-bottom: 12px;
padding: 10px 12px;
border: 1px solid #bad2ff;
border-radius: 8px;
background: #edf4ff;
color: #163d85;
}
.notice.error {
border-color: #efb2ad;
background: #fff1f0;
color: var(--red);
}
.empty {
padding: 28px 16px;
color: var(--muted);
text-align: center;
}
.pre {
max-height: 460px;
overflow: auto;
padding: 12px;
border: 1px solid var(--line);
border-radius: 8px;
background: #101820;
color: #e9eef5;
font-family: "Cascadia Mono", Consolas, monospace;
font-size: 12px;
line-height: 1.45;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.new-key {
display: grid;
gap: 8px;
padding: 12px;
border: 1px solid #9bd7bd;
border-radius: 8px;
background: #eaf8f1;
}
.new-key code {
display: block;
padding: 10px;
border: 1px solid #9bd7bd;
border-radius: 6px;
background: #ffffff;
color: var(--text);
overflow-wrap: anywhere;
}
.group-link {
color: var(--blue);
text-decoration: none;
font-weight: 800;
overflow-wrap: anywhere;
}
.group-link:hover {
text-decoration: underline;
}
.code-inline {
font-family: "Cascadia Mono", Consolas, monospace;
font-size: 12px;
background: var(--panel-alt);
border: 1px solid var(--line);
border-radius: 4px;
padding: 2px 6px;
display: inline-block;
overflow-wrap: anywhere;
}
@media (max-width: 860px) {
.app-shell {
grid-template-columns: 1fr;
}
.sidebar {
position: sticky;
top: 0;
z-index: 2;
display: grid;
grid-template-columns: 1fr;
gap: 12px;
}
.nav {
grid-template-columns: repeat(4, 1fr);
}
.nav a {
text-align: center;
}
.sidebar-meta {
display: none;
}
.main {
padding: 16px;
}
.topbar {
display: grid;
}
.metric-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 520px) {
.nav {
grid-template-columns: 1fr;
}
.metric-grid {
grid-template-columns: 1fr;
}
.button,
.input,
.select {
width: 100%;
}
}