mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-07 03:29:19 +02:00
Remove five presentational classes from admin forms and replace with structural CSS selectors scoped to .admin-form: - .admin-form-row → .admin-form > div:not(.admin-submit-wrap) Grid layout (260px label col + 1fr input col) applied directly to div children of the form; submit-wrap div excluded via :not(). - .admin-label → .admin-form > div:not(.admin-submit-wrap) > label Scoped to the direct label child of each form row div; does not bleed into nested checkbox labels inside .admin-checkbox-list. - .admin-input / .admin-select / .admin-textarea → .admin-form input:not([type=checkbox|radio|file|hidden|submit]) → .admin-form select → .admin-form textarea Also extended to .admin-inline-form input/select (tags page) so the tags table inputs retain identical base styling and focus colour. Templates updated: add.php, edit.php, login.php, account.php, pages-edit.php, import.php, tags.php, templates/partials/form/jury-fieldset.php — all class= attributes for the five removed classes stripped. import.php: added 'admin-form' class alongside 'admin-import-area' so its single file-input row gets the grid row treatment; submit div was already using admin-submit-wrap so it is correctly excluded. No visual change — selectors target the same elements as before.
904 lines
18 KiB
CSS
904 lines
18 KiB
CSS
/* ============================================================
|
|
ADMIN SECTION
|
|
============================================================ */
|
|
|
|
:root {
|
|
--admin-bg: #1a1a1a;
|
|
--admin-bg-alt: #242424;
|
|
--admin-border: #555;
|
|
--admin-text: #e8e8e8;
|
|
--admin-text-muted: #969696;
|
|
--admin-purple: #9557b5;
|
|
--admin-input-bg: transparent;
|
|
}
|
|
|
|
.admin-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
/* background: var(--admin-bg); */
|
|
/* color: var(--admin-text); */
|
|
/* font-family inherited from common.css body */
|
|
}
|
|
|
|
/* Admin header / nav */
|
|
/* .admin-body header { */
|
|
/* flex-shrink: 0; */
|
|
/* } */
|
|
|
|
/* .admin-body header nav { */
|
|
/* background: linear-gradient( */
|
|
/* to bottom, */
|
|
/* var(--admin-purple) 0%, */
|
|
/* rgba(149, 87, 181, 0.0) 100% */
|
|
/* ); */
|
|
/* padding: 0.55rem 1.5rem; */
|
|
/* display: flex; */
|
|
/* align-items: center; */
|
|
/* gap: 2.5rem; */
|
|
/* } */
|
|
|
|
/* .admin-body header nav > a { */
|
|
/* font-size: 0.88rem; */
|
|
/* letter-spacing: 0.12em; */
|
|
/* text-transform: uppercase; */
|
|
/* color: rgba(255, 255, 255, 0.8); */
|
|
/* text-decoration: none; */
|
|
/* font-weight: 400; */
|
|
/* } */
|
|
|
|
/* .admin-body header nav ul { */
|
|
/* list-style: none; */
|
|
/* margin: 0 0 0 auto; */
|
|
/* padding: 0; */
|
|
/* display: flex; */
|
|
/* align-items: center; */
|
|
/* gap: 2.5rem; */
|
|
/* } */
|
|
|
|
/* .admin-body header nav ul a { */
|
|
/* font-size: 0.85rem; */
|
|
/* letter-spacing: 0.1em; */
|
|
/* text-transform: uppercase; */
|
|
/* color: rgba(255, 255, 255, 0.9); */
|
|
/* text-decoration: none; */
|
|
/* font-weight: 400; */
|
|
/* transition: opacity 0.15s; */
|
|
/* } */
|
|
|
|
/* .admin-body header nav ul a:hover, */
|
|
/* .admin-body header nav ul a[aria-current="page"] { */
|
|
/* opacity: 1; */
|
|
/* color: #fff; */
|
|
/* } */
|
|
|
|
/* .admin-body header nav ul a[aria-current="page"] { */
|
|
/* border-bottom: 1px solid rgba(255, 255, 255, 0.6); */
|
|
/* padding-bottom: 1px; */
|
|
/* } */
|
|
|
|
/* Logout — visually subdued */
|
|
.admin-body header nav ul [data-nav-logout] a {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.admin-body header nav ul [data-nav-logout] a:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Main content area */
|
|
.admin-body main {
|
|
flex: 1;
|
|
padding: 2.5rem 2rem 4rem;
|
|
max-width: 1100px;
|
|
width: 100%;
|
|
}
|
|
|
|
.admin-body main > h1 {
|
|
font-size: 1.8rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--admin-text);
|
|
margin: 0 0 2.5rem 0;
|
|
}
|
|
|
|
/* ---- Forms ---- */
|
|
.admin-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
|
|
.admin-form > div:not(.admin-submit-wrap) {
|
|
display: grid;
|
|
grid-template-columns: 260px 1fr;
|
|
align-items: start;
|
|
border-top: 1px solid var(--admin-border);
|
|
padding: 0.75rem 0;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.admin-form > div:not(.admin-submit-wrap):last-of-type {
|
|
border-bottom: 1px solid var(--admin-border);
|
|
}
|
|
|
|
.admin-form > div:not(.admin-submit-wrap) > label {
|
|
font-size: 0.92rem;
|
|
color: var(--admin-text);
|
|
padding-top: 0.5rem;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.admin-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]),
|
|
.admin-form select,
|
|
.admin-form textarea,
|
|
.admin-inline-form input[type="text"],
|
|
.admin-inline-form input[type="number"],
|
|
.admin-inline-form select {
|
|
width: 100%;
|
|
background: var(--admin-input-bg);
|
|
border: none;
|
|
border-bottom: 1px solid var(--admin-border);
|
|
color: var(--admin-text);
|
|
font-size: 0.92rem;
|
|
font-family: inherit;
|
|
padding: 0.4rem 0;
|
|
border-radius: 0;
|
|
transition: border-color 0.15s;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
}
|
|
|
|
.admin-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):focus,
|
|
.admin-form select:focus,
|
|
.admin-form textarea:focus,
|
|
.admin-inline-form input:focus,
|
|
.admin-inline-form select:focus {
|
|
border-bottom-color: var(--admin-purple);
|
|
}
|
|
|
|
.admin-form input::placeholder,
|
|
.admin-form textarea::placeholder {
|
|
color: var(--admin-text-muted);
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
.admin-form textarea {
|
|
resize: vertical;
|
|
min-height: 100px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* Select custom arrow */
|
|
.admin-form select,
|
|
.admin-inline-form select {
|
|
cursor: pointer;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 0 center;
|
|
padding-right: 1.2rem;
|
|
}
|
|
|
|
.admin-form select option,
|
|
.admin-inline-form select option {
|
|
background: var(--admin-bg);
|
|
color: var(--admin-text);
|
|
}
|
|
|
|
/* File inputs */
|
|
.admin-file-input {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.admin-file-input input[type="file"] {
|
|
font-size: 0.85rem;
|
|
color: var(--admin-text-muted);
|
|
background: transparent;
|
|
border: 1px dashed var(--admin-border);
|
|
padding: 0.4rem 0.6rem;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.admin-file-input input[type="file"]:hover {
|
|
border-color: var(--admin-purple);
|
|
}
|
|
|
|
.admin-body form small {
|
|
font-size: 0.78rem;
|
|
color: var(--admin-text-muted);
|
|
margin-top: 0.15rem;
|
|
display: block;
|
|
}
|
|
|
|
/* Checkboxes & radios */
|
|
.admin-checkbox-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
padding-top: 0.3rem;
|
|
}
|
|
|
|
.admin-checkbox-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.9rem;
|
|
color: var(--admin-text);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.admin-checkbox-label input[type="checkbox"] {
|
|
accent-color: var(--admin-purple);
|
|
width: 14px;
|
|
height: 14px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Submit button */
|
|
.admin-submit-wrap {
|
|
margin-top: 2rem;
|
|
padding-top: 1.5rem;
|
|
}
|
|
|
|
.admin-btn {
|
|
padding: 0.65rem 2.5rem;
|
|
background: var(--admin-purple);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 3px;
|
|
font-size: 0.92rem;
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
letter-spacing: 0.04em;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.admin-btn:hover {
|
|
background: #7b3fa0;
|
|
}
|
|
|
|
.admin-btn-secondary {
|
|
padding: 0.5rem 1.5rem;
|
|
background: transparent;
|
|
color: var(--admin-text-muted);
|
|
border: 1px solid var(--admin-border);
|
|
border-radius: 3px;
|
|
font-size: 0.88rem;
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
letter-spacing: 0.04em;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.admin-btn-secondary:hover {
|
|
border-color: var(--admin-text-muted);
|
|
color: var(--admin-text);
|
|
}
|
|
|
|
/* ---- Alert Messages ---- */
|
|
[role="alert"],
|
|
[role="status"] {
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 3px;
|
|
font-size: 0.9rem;
|
|
margin-bottom: 1.5rem;
|
|
border-left: 3px solid;
|
|
}
|
|
|
|
[role="alert"][data-type="error"] {
|
|
background: rgba(200, 0, 0, 0.1);
|
|
border-color: #c00;
|
|
color: #ff6b6b;
|
|
}
|
|
|
|
[role="status"][data-type="success"] {
|
|
background: rgba(0, 150, 80, 0.1);
|
|
border-color: #0a0;
|
|
color: #4caf50;
|
|
}
|
|
|
|
/* ---- Stats cards ---- */
|
|
.admin-stats {
|
|
display: flex;
|
|
gap: 1rem;
|
|
margin-bottom: 2rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.admin-stat {
|
|
background: var(--admin-bg-alt);
|
|
border: 1px solid var(--admin-border);
|
|
border-radius: 4px;
|
|
padding: 1rem 1.5rem;
|
|
min-width: 140px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.admin-stat__number {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: var(--admin-purple);
|
|
line-height: 1;
|
|
order: 1; /* visually first despite dt/dd semantic order */
|
|
margin: 0;
|
|
}
|
|
|
|
.admin-stat__label {
|
|
font-size: 0.82rem;
|
|
color: var(--admin-text-muted);
|
|
margin-top: 0.25rem;
|
|
order: 2; /* visually second */
|
|
}
|
|
|
|
/* ---- Filters bar ---- */
|
|
.admin-filters {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
margin-bottom: 1.5rem;
|
|
flex-wrap: wrap;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.admin-filters input[type="text"],
|
|
.admin-filters select {
|
|
background: var(--admin-bg-alt);
|
|
border: 1px solid var(--admin-border);
|
|
border-radius: 3px;
|
|
color: var(--admin-text);
|
|
font-size: 0.88rem;
|
|
font-family: inherit;
|
|
padding: 0.45rem 0.75rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.admin-filters input[type="text"]:focus,
|
|
.admin-filters select:focus {
|
|
border-color: var(--admin-purple);
|
|
}
|
|
|
|
.admin-filters-btn {
|
|
padding: 0.45rem 1rem;
|
|
background: var(--admin-purple);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 3px;
|
|
font-size: 0.88rem;
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.admin-filters-reset {
|
|
font-size: 0.88rem;
|
|
color: var(--admin-text-muted);
|
|
text-decoration: underline;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* ---- Table ---- */
|
|
.admin-body table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
/* margin-top for the tags table (only table not immediately after stats/filters) */
|
|
.admin-body main > table {
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.admin-body table th {
|
|
text-align: left;
|
|
font-size: 0.75rem;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--admin-text-muted);
|
|
padding: 0.5rem 0.75rem;
|
|
border-bottom: 1px solid var(--admin-border);
|
|
font-weight: 400;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.admin-body table td {
|
|
padding: 0.65rem 0.75rem;
|
|
border-bottom: 1px solid var(--admin-border);
|
|
color: var(--admin-text);
|
|
vertical-align: top;
|
|
}
|
|
|
|
.admin-body table tr:hover td {
|
|
background: var(--admin-bg-alt);
|
|
}
|
|
|
|
.admin-body table .thesis-title {
|
|
font-weight: 500;
|
|
color: var(--admin-text);
|
|
}
|
|
|
|
.admin-body table .thesis-subtitle {
|
|
font-size: 0.82rem;
|
|
color: var(--admin-text-muted);
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Status badges */
|
|
.status-badge {
|
|
display: inline-block;
|
|
padding: 0.2rem 0.5rem;
|
|
border-radius: 3px;
|
|
font-size: 0.78rem;
|
|
font-weight: 500;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.status-published {
|
|
background: rgba(0, 150, 80, 0.15);
|
|
color: #4caf50;
|
|
}
|
|
|
|
.status-pending {
|
|
background: rgba(255, 200, 0, 0.12);
|
|
color: #ffc107;
|
|
}
|
|
|
|
/* Action buttons in table */
|
|
.admin-actions {
|
|
display: flex;
|
|
gap: 0.4rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.admin-btn-sm {
|
|
padding: 0.25rem 0.6rem;
|
|
border-radius: 3px;
|
|
font-size: 0.78rem;
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
border: 1px solid transparent;
|
|
transition: all 0.15s;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.admin-btn-view {
|
|
background: rgba(65, 173, 255, 0.15);
|
|
color: #41adff;
|
|
border-color: rgba(65, 173, 255, 0.3);
|
|
}
|
|
|
|
.admin-btn-view:hover {
|
|
background: rgba(65, 173, 255, 0.25);
|
|
}
|
|
|
|
.admin-btn-edit {
|
|
background: rgba(243, 156, 18, 0.15);
|
|
color: #f39c12;
|
|
border-color: rgba(243, 156, 18, 0.3);
|
|
}
|
|
|
|
.admin-btn-edit:hover {
|
|
background: rgba(243, 156, 18, 0.25);
|
|
}
|
|
|
|
.admin-btn-publish {
|
|
background: rgba(0, 150, 80, 0.15);
|
|
color: #4caf50;
|
|
border-color: rgba(0, 150, 80, 0.3);
|
|
border: 1px solid rgba(0, 150, 80, 0.3);
|
|
}
|
|
|
|
.admin-btn-publish:hover {
|
|
background: rgba(0, 150, 80, 0.25);
|
|
}
|
|
|
|
.admin-btn-unpublish {
|
|
background: rgba(149, 165, 166, 0.15);
|
|
color: #95a5a6;
|
|
border-color: rgba(149, 165, 166, 0.3);
|
|
border: 1px solid rgba(149, 165, 166, 0.3);
|
|
}
|
|
|
|
.admin-btn-unpublish:hover {
|
|
background: rgba(149, 165, 166, 0.25);
|
|
}
|
|
|
|
.publish-form {
|
|
display: inline;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Bulk actions */
|
|
.admin-bulk-actions {
|
|
display: none;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 0.6rem 1rem;
|
|
background: var(--admin-bg-alt);
|
|
border: 1px solid var(--admin-border);
|
|
border-radius: 4px;
|
|
margin-bottom: 1rem;
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
.admin-bulk-btns {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Thesis info sections (thanks page) */
|
|
.admin-body main > section {
|
|
border: 1px solid var(--admin-border);
|
|
border-radius: 6px;
|
|
padding: 1.5rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.admin-body main > section h2 {
|
|
margin: 0 0 1rem;
|
|
font-size: 1.2rem;
|
|
border-bottom: 1px solid var(--admin-border);
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
.admin-body main > section dl {
|
|
display: grid;
|
|
grid-template-columns: 180px 1fr;
|
|
gap: 0.4rem 1rem;
|
|
}
|
|
|
|
.admin-body main > section dt {
|
|
font-weight: 600;
|
|
font-size: 0.88rem;
|
|
color: var(--admin-text-muted);
|
|
}
|
|
|
|
.admin-body main > section dd {
|
|
margin: 0;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Info/error messages */
|
|
.info-message {
|
|
background: var(--admin-bg-alt);
|
|
border: 1px solid var(--admin-border);
|
|
border-radius: 4px;
|
|
padding: 1rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.info-message pre {
|
|
margin: 0;
|
|
font-size: 0.85rem;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Login page */
|
|
.admin-login-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: calc(100vh - 60px);
|
|
}
|
|
|
|
.admin-login-box {
|
|
background: var(--admin-bg-alt);
|
|
border: 1px solid var(--admin-border);
|
|
border-radius: 6px;
|
|
padding: 2rem;
|
|
width: 100%;
|
|
max-width: 380px;
|
|
}
|
|
|
|
.admin-login-box h2 {
|
|
margin: 0 0 1.5rem;
|
|
font-size: 1.1rem;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
}
|
|
|
|
.admin-login-box .admin-form > div:not(.admin-submit-wrap) {
|
|
grid-template-columns: 1fr;
|
|
border: none;
|
|
padding: 0.4rem 0;
|
|
}
|
|
|
|
.admin-login-box .admin-form > div:not(.admin-submit-wrap) > label {
|
|
font-size: 0.82rem;
|
|
color: var(--admin-text-muted);
|
|
padding: 0;
|
|
margin-bottom: 0.2rem;
|
|
}
|
|
|
|
.admin-login-box .admin-submit-wrap {
|
|
margin-top: 1rem;
|
|
padding-top: 0.5rem;
|
|
}
|
|
|
|
.admin-login-box .admin-btn {
|
|
width: 100%;
|
|
}
|
|
|
|
/* Import page */
|
|
.admin-import-area {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
/* Jury fieldset */
|
|
.admin-body fieldset {
|
|
border: 1px solid #333;
|
|
border-radius: 4px;
|
|
padding: 1rem 1.25rem;
|
|
margin: 0.5rem 0 1rem;
|
|
background: rgba(255, 255, 255, 0.02);
|
|
}
|
|
|
|
.admin-body legend {
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
color: var(--admin-text-muted);
|
|
padding: 0 0.5rem;
|
|
}
|
|
|
|
.admin-jury-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.admin-jury-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.admin-jury-entry {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.admin-jury-ext {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.admin-btn-remove {
|
|
background: none;
|
|
border: 1px solid #555;
|
|
color: var(--admin-text-muted);
|
|
border-radius: 3px;
|
|
padding: 0.2rem 0.45rem;
|
|
font-size: 0.8rem;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
}
|
|
.admin-btn-remove:hover {
|
|
border-color: #e55;
|
|
color: #e55;
|
|
}
|
|
|
|
/* Inline form actions (tags page) */
|
|
.admin-inline-form {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.admin-input--inline,
|
|
.admin-inline-form input[type="text"] {
|
|
padding: 0.28rem 0.5rem;
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.admin-select--inline,
|
|
.admin-inline-form select {
|
|
padding: 0.28rem 0.5rem;
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.admin-btn--sm {
|
|
padding: 0.28rem 0.65rem;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.admin-btn--warning {
|
|
background: #7a5400;
|
|
border-color: #b87a00;
|
|
}
|
|
.admin-btn--warning:hover {
|
|
background: #9a6a00;
|
|
}
|
|
|
|
.admin-btn--danger {
|
|
background: #6b1a1a;
|
|
border-color: #a03030;
|
|
}
|
|
.admin-btn--danger:hover {
|
|
background: #8a2020;
|
|
}
|
|
|
|
/* Maintenance mode bar */
|
|
.admin-maintenance-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
background: #1a1a2e;
|
|
border: 1px solid #333;
|
|
border-radius: 4px;
|
|
padding: 0.65rem 1rem;
|
|
margin-bottom: 1.5rem;
|
|
font-size: 0.88rem;
|
|
color: var(--admin-text-muted);
|
|
}
|
|
|
|
.admin-maintenance-bar--active {
|
|
background: #2a1a00;
|
|
border-color: #7a5400;
|
|
color: #e0a030;
|
|
}
|
|
|
|
/* Visibility / access badges */
|
|
.status-access {
|
|
display: inline-block;
|
|
font-size: 0.7rem;
|
|
padding: 0.1rem 0.4rem;
|
|
border-radius: 3px;
|
|
margin-top: 0.2rem;
|
|
background: #333;
|
|
color: #aaa;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.status-access--Libre,
|
|
.status-access--libre {
|
|
background: #0a2a0a;
|
|
color: #6fbe6f;
|
|
border: 1px solid #2a5a2a;
|
|
}
|
|
|
|
.status-access--Interne,
|
|
.status-access--interne {
|
|
background: #1a1a2a;
|
|
color: #7a8fcc;
|
|
border: 1px solid #3a4a8a;
|
|
}
|
|
|
|
.status-access--Interdit,
|
|
.status-access--interdit {
|
|
background: #2a0a0a;
|
|
color: #cc6060;
|
|
border: 1px solid #7a2020;
|
|
}
|
|
|
|
/* ---- Account page ---- */
|
|
.admin-account-status {
|
|
background: var(--admin-bg-alt);
|
|
border: 1px solid var(--admin-border);
|
|
border-radius: 4px;
|
|
padding: 1.25rem 1.5rem;
|
|
margin-bottom: 2.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.admin-account-status__row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.admin-account-status__label {
|
|
color: var(--admin-text-muted);
|
|
min-width: 220px;
|
|
}
|
|
|
|
.admin-account-status__code {
|
|
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
|
font-size: 0.82rem;
|
|
background: var(--admin-bg);
|
|
border: 1px solid var(--admin-border);
|
|
border-radius: 3px;
|
|
padding: 0.1rem 0.4rem;
|
|
color: var(--admin-text-muted);
|
|
}
|
|
|
|
.admin-account-status__note {
|
|
font-size: 0.88rem;
|
|
color: #ffc107;
|
|
margin: 0.25rem 0 0;
|
|
}
|
|
|
|
.admin-section-title {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.07em;
|
|
text-transform: uppercase;
|
|
color: var(--admin-text-muted);
|
|
margin: 0 0 1.25rem;
|
|
padding-bottom: 0.5rem;
|
|
border-bottom: 1px solid var(--admin-border);
|
|
}
|
|
|
|
/* .admin-field-hint replaced by .admin-body form small */
|
|
|
|
.admin-danger-zone {
|
|
background: rgba(180, 0, 0, 0.07);
|
|
border: 1px solid rgba(200, 60, 60, 0.3);
|
|
border-radius: 4px;
|
|
padding: 1.25rem 1.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.admin-danger-zone__description {
|
|
font-size: 0.9rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.admin-danger-zone__description small {
|
|
color: var(--admin-text-muted);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.admin-section-title--danger {
|
|
margin-top: 3rem;
|
|
}
|
|
|
|
/* Banner image preview in edit form */
|
|
.admin-banner-preview {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.admin-banner-preview img {
|
|
max-width: 320px;
|
|
max-height: 100px;
|
|
object-fit: cover;
|
|
border: 1px solid #444;
|
|
display: block;
|
|
}
|
|
|
|
.admin-banner-preview .admin-checkbox-label {
|
|
margin-top: 0.35rem;
|
|
display: block;
|
|
}
|
|
|
|
/* Cancel / secondary action link in submit row */
|
|
.admin-cancel-link {
|
|
margin-left: 0.75rem;
|
|
}
|
|
|
|
/* Add-jury button below list */
|
|
.admin-add-jury-btn {
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
/* ============================================================
|
|
ACCESSIBILITY UTILITIES
|
|
============================================================ */
|
|
|
|
/* Admin-specific focus outline colour override */
|
|
:focus-visible {
|
|
outline-color: var(--admin-purple);
|
|
}
|