mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
- Add baseline input[type="checkbox"] and input[type="radio"] styling in common.css (accent-color, size, cursor, flex-shrink) - Give select a solid background (var(--bg-primary)) and its own focus rule - Remove now-redundant checkbox accent-color/size from .admin-checkbox-label (form.css) and .param-checkbox (admin.css) - Simplify .search-filter-select (repertoire.css) to inherit common select defaults (border, background, arrow icon) - Keep all layout-specific classes in form.css and admin.css intact - Add baseline input[type="checkbox"] and input[type="radio"] styling in common.css (accent-color, size, cursor, flex-shrink) - Give select its own rule block with same shape as text inputs (transparent background, same padding/border/radius/focus) - Remove now-redundant checkbox accent-color/size from .admin-checkbox-label (form.css) and .param-checkbox (admin.css) - Simplify .search-filter-select (repertoire.css) to inherit common select defaults - Keep all layout-specific classes in form.css and admin.css intact - Remove bottom-border/border-radius:0 overrides from .admin-form, .admin-inline-form, .param-form, and .param-grid inputs/selects - Change required-field indicator from border-bottom-style to border-style: dashed to work with full-border approach - Update param-grid aria-invalid from border-bottom-color to border-color - All text inputs, selects, and textareas now inherit the full-border style from common.css (border, border-radius, padding, focus ring) - .password-gate input[password]: remove redundant padding override - .retry-email-form input[email]: remove redundant border/border-radius/ padding/box-sizing, keep only font-size (larger) and width - .tfe-access-request-form input/textarea: remove broken references to undefined vars (--border, --background, --accent), now inherit from common.css. Remove redundant focus rule. - .fhb-name-input: strip redundant padding/border/radius/font-size/font - .admin-inline-form input/select: strip redundant font-size - .param-checkbox: remove font-size (inherits from body) - .param-checkbox small: remove redundant color + font-size (common.css small already sets both) - .param-note: remove font-size - .param-account-status: remove font-size - .param-smtp-test-row label: remove display:block + font-size (common.css label) - .param-smtp-status: remove font-size - .param-grid label: remove font-size - Remove .param-form legend padding override (now inherits common.css legend) - Remove .param-danger-zone legend padding override - Remove .param-export-zone legend padding override - Remove .param-fieldset-inline legend entirely (only rule was padding) - Remove .licence-explanation legend entirely (all properties identical to common.css legend) - All fieldsets now consistently use common.css fieldset padding (0 var(--space-m) var(--space-m) var(--space-m)) - The common.css fieldset has padding-top: 0, which leaves checkboxes and other content tight against the legend. Add var(--space-s) top padding so the first content row has proper spacing from the legend.
319 lines
6.2 KiB
CSS
319 lines
6.2 KiB
CSS
/* ============================================================
|
|
TFE INDIVIDUAL PAGE (tfe.php)
|
|
============================================================ */
|
|
|
|
@import url("./variables.css");
|
|
|
|
.tfe-main {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
padding: var(--space-l) var(--space-m) var(--space-xl);
|
|
}
|
|
|
|
/* Two-column article layout */
|
|
.tfe-layout {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1.4fr;
|
|
gap: var(--space-xl);
|
|
width: 100%;
|
|
align-items: start;
|
|
}
|
|
|
|
/* Left column — article header */
|
|
.tfe-left {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-m);
|
|
}
|
|
|
|
/* Author (p) — above title */
|
|
.tfe-author {
|
|
font-family: var(--font-display);
|
|
font-size: var(--step-1);
|
|
font-weight: 400;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
/* Title (h1) — inherits global scale from common.css */
|
|
.tfe-title {
|
|
margin: 0;
|
|
}
|
|
|
|
/* Metadata description list — target <dl> directly inside article > header */
|
|
article dl {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-3xs);
|
|
font-size: var(--step--1);
|
|
line-height: 1.4;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Each dt/dd pair grouped in a <div> inside <dl> */
|
|
article dl > div {
|
|
display: flex;
|
|
gap: var(--space-3xs);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
article dl dt {
|
|
color: var(--text-primary);
|
|
font-weight: 400;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
article dl dd {
|
|
color: var(--text-primary);
|
|
font-weight: 700;
|
|
margin: 0;
|
|
}
|
|
|
|
article dl dd a {
|
|
color: inherit;
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
}
|
|
|
|
/* Note field: align dt/dd to top, value in italics */
|
|
.tfe-meta-note {
|
|
align-items: start;
|
|
}
|
|
|
|
.tfe-note-value {
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Synopsis paragraph */
|
|
.tfe-synopsis-text {
|
|
font-size: var(--step--1);
|
|
line-height: 1.7;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
}
|
|
|
|
/* Right column — aside (supplementary media) */
|
|
.tfe-right {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-m);
|
|
}
|
|
|
|
/* Each file display unit — target <figure> directly inside <aside> */
|
|
aside figure {
|
|
overflow: hidden;
|
|
margin: 0;
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
aside figure img {
|
|
width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
aside figure embed,
|
|
aside figure video {
|
|
width: 100%;
|
|
display: block;
|
|
border: none;
|
|
}
|
|
|
|
aside figure video {
|
|
max-height: 500px;
|
|
}
|
|
|
|
aside figure embed {
|
|
height: clamp(300px, 80vh, 700px);
|
|
}
|
|
|
|
/* figcaption under media — target <figcaption> inside <aside> */
|
|
aside figcaption {
|
|
font-size: var(--step--2);
|
|
color: var(--text-secondary);
|
|
margin: var(--space-3xs) 0 0;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* PDF fallback download link */
|
|
.tfe-pdf-fallback {
|
|
font-size: var(--step--1);
|
|
margin: var(--space-3xs) 0 0;
|
|
}
|
|
|
|
/* Audio player */
|
|
.tfe-audio {
|
|
width: 100%;
|
|
margin: 0;
|
|
display: block;
|
|
}
|
|
|
|
/* Download-only files */
|
|
.tfe-download-file {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
padding: var(--space-s) var(--space-m);
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: var(--radius);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.tfe-download-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
font-size: var(--step--1);
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.tfe-download-link:hover {
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.tfe-download-icon {
|
|
font-size: 1.3rem;
|
|
line-height: 1;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.tfe-download-size {
|
|
font-size: var(--step--2);
|
|
color: var(--text-tertiary);
|
|
margin-left: auto;
|
|
}
|
|
|
|
.tfe-pdf-fallback a {
|
|
color: var(--text-primary);
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
}
|
|
|
|
/* "Not available" and "no files" notices */
|
|
.tfe-restricted,
|
|
.tfe-no-files {
|
|
font-size: var(--step--1);
|
|
color: var(--text-secondary);
|
|
font-style: italic;
|
|
padding: var(--space-s) 0;
|
|
margin: 0;
|
|
}
|
|
|
|
/* ============================================================
|
|
RESTRICTED ACCESS UI
|
|
============================================================ */
|
|
.tfe-restricted-access {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: var(--space-m);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-m);
|
|
}
|
|
|
|
.tfe-restricted-message {
|
|
font-size: var(--step--1);
|
|
color: var(--text-secondary);
|
|
line-height: 1.6;
|
|
margin: 0;
|
|
}
|
|
|
|
.tfe-restricted-message strong {
|
|
color: var(--text-primary);
|
|
display: block;
|
|
margin-bottom: var(--space-3xs);
|
|
font-size: var(--step-0);
|
|
}
|
|
|
|
.tfe-access-request-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-s);
|
|
}
|
|
|
|
.tfe-access-request-form .form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-3xs);
|
|
}
|
|
|
|
.tfe-access-request-form label {
|
|
font-size: var(--step--1);
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.tfe-access-request-form input[type="email"],
|
|
.tfe-access-request-form textarea {
|
|
padding: var(--space-2xs) var(--space-3xs);
|
|
}
|
|
|
|
.tfe-btn-request-access {
|
|
/* deprecated alias for .btn--primary; kept for backward-compat */
|
|
margin-top: var(--space-3xs);
|
|
}
|
|
|
|
.tfe-btn-request-access:hover:not(:disabled) {
|
|
/* handled by .btn--primary */
|
|
}
|
|
|
|
.tfe-btn-request-access:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.tfe-access-message {
|
|
font-size: var(--step--1);
|
|
padding: var(--space-2xs);
|
|
border-radius: var(--radius);
|
|
margin-top: var(--space-3xs);
|
|
}
|
|
|
|
.tfe-access-success {
|
|
background: #f0fff4;
|
|
border: 1px solid #48bb78;
|
|
color: #22543d;
|
|
}
|
|
|
|
.tfe-access-error {
|
|
background: #fff5f5;
|
|
border: 1px solid #fc8181;
|
|
color: #742a2a;
|
|
}
|
|
|
|
.tfe-access-request-form input.input-error {
|
|
border-color: #fc8181;
|
|
outline-color: #fc8181;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 900px) {
|
|
.tfe-layout {
|
|
grid-template-columns: 1fr;
|
|
gap: var(--space-l);
|
|
}
|
|
|
|
.tfe-title {
|
|
font-size: var(--step-2);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.tfe-main {
|
|
padding: var(--space-m) var(--space-s) var(--space-l);
|
|
}
|
|
|
|
.tfe-title {
|
|
font-size: var(--step-1);
|
|
}
|
|
}
|