Files
tyx_AI_xhs/apps/web/src/admin-users.css
T

251 lines
4.2 KiB
CSS

.admin-users-page {
min-height: 100vh;
color: #111111;
background: #f6f6f4;
}
.admin-product-header {
display: flex;
min-height: 64px;
align-items: stretch;
justify-content: space-between;
padding: 0 max(3vw, 32px);
border-bottom: 1px solid #8c8c86;
background: #111111;
}
.admin-product-header > a,
.admin-product-header nav a {
display: flex;
align-items: center;
color: #ffffff;
font-weight: 900;
text-decoration: none;
}
.admin-product-header nav {
display: flex;
}
.admin-product-header nav a {
min-width: 84px;
justify-content: center;
}
.admin-product-header nav a[aria-current="page"] {
color: #111111;
background: #f2f500;
}
.admin-users-page > main {
width: min(1180px, calc(100% - 64px));
margin: 0 auto;
padding: 42px 0 80px;
}
.admin-users-heading {
display: flex;
align-items: end;
justify-content: space-between;
gap: 24px;
padding-bottom: 22px;
border-bottom: 1px solid #999993;
}
.admin-users-heading p {
margin: 0 0 4px;
font-family: Consolas, monospace;
font-size: 11px;
font-weight: 700;
}
.admin-users-heading h1 {
margin: 0;
font-size: 36px;
}
.admin-users-heading button,
.adjustment-actions button {
min-height: 44px;
padding: 9px 16px;
border: 1px solid #111111;
border-radius: 0;
background: #f2f500;
font-weight: 800;
}
.admin-credit-summary {
display: grid;
grid-template-columns: 1.6fr 1fr 1fr;
margin-top: 28px;
border-block: 1px solid #85857f;
background: #ffffff;
}
.admin-credit-summary > div {
display: grid;
min-width: 0;
min-height: 140px;
align-content: center;
gap: 8px;
padding: 22px;
border-right: 1px solid #b3b3ad;
}
.admin-credit-summary > div:last-child {
border-right: 0;
}
.admin-credit-summary span {
color: #65655f;
font-size: 12px;
}
.admin-credit-summary strong {
font-family: Arial Black, "Segoe UI", sans-serif;
font-size: 38px;
}
.admin-credit-summary code {
overflow-wrap: anywhere;
}
.admin-users-empty,
.admin-users-error,
.admin-users-notice {
padding: 18px;
border-left: 5px solid #85857f;
background: #ffffff;
}
.admin-users-error {
border-color: #d14a3b;
background: #fff1ef;
}
.admin-users-notice {
border-color: #287b45;
background: #edf8f0;
font-weight: 700;
}
.credit-adjustment-overlay {
position: fixed;
z-index: 50;
inset: 0;
display: grid;
place-items: center;
padding: 24px;
background: rgb(17 17 17 / 62%);
}
.credit-adjustment-dialog {
width: min(560px, 100%);
padding: 28px;
border: 2px solid #111111;
background: #ffffff;
box-shadow: 10px 10px 0 #f2f500;
}
.credit-adjustment-dialog > p {
margin: 0 0 6px;
font-family: Consolas, monospace;
font-size: 11px;
font-weight: 700;
}
.credit-adjustment-dialog h2 {
margin: 0 0 18px;
}
.adjustment-direction {
display: grid;
grid-template-columns: 1fr 1fr;
margin-bottom: 16px;
}
.adjustment-direction label {
display: flex;
min-height: 44px;
align-items: center;
justify-content: center;
gap: 8px;
border: 1px solid #85857f;
font-weight: 800;
}
.adjustment-direction label + label {
border-left: 0;
}
.credit-adjustment-dialog form {
display: grid;
gap: 8px;
}
.credit-adjustment-dialog form > label {
margin-top: 6px;
font-weight: 800;
}
.credit-adjustment-dialog input[type="number"],
.credit-adjustment-dialog textarea {
min-height: 44px;
padding: 10px;
border: 1px solid #85857f;
border-radius: 0;
}
.credit-adjustment-dialog textarea {
min-height: 92px;
resize: vertical;
}
.adjustment-preview {
display: grid;
gap: 4px;
margin-top: 10px;
padding: 14px;
border-left: 5px solid #111111;
background: #e7e7e2;
}
.adjustment-actions {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
margin-top: 12px;
}
.adjustment-actions button:last-child {
background: #ffffff;
}
.adjustment-actions button:disabled {
color: #777770;
background: #dfdfda;
cursor: not-allowed;
}
.is-negative {
color: #a52e24;
}
@media (max-width: 680px) {
.admin-users-page > main {
width: 100%;
padding-right: 16px;
padding-left: 16px;
}
.admin-credit-summary,
.adjustment-actions {
grid-template-columns: 1fr;
}
.admin-credit-summary > div {
border-right: 0;
border-bottom: 1px solid #b3b3ad;
}
}