mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
chore: vendor all CDN assets locally; reorganise assets into css/ and js/
All third-party assets are now self-hosted — zero external requests at runtime.
CSS (assets/css/):
- modern-normalize.min.css (was assets/)
- common.css, admin.css, main.css, search.css, tfe.css, apropos.css (was assets/)
- easymde.min.css 2.20.0 (was cdn.jsdelivr.net)
- font-awesome.min.css 4.7.0 (was maxcdn.bootstrapcdn.com; injected at runtime by EasyMDE)
JS (assets/js/):
- easymde.min.js 2.20.0 (was cdn.jsdelivr.net)
Fonts (assets/fonts/fontawesome/):
- fontawesome-webfont.{eot,woff2,woff,ttf,svg}, FontAwesome.otf 4.7.0
Path fixes:
- common.css @font-face: ./fonts/ -> ../fonts/ (one level deeper)
- font-awesome.min.css @font-face: ../fonts/ -> ../fonts/fontawesome/ (dedicated subdir)
- pages-edit.php: autoDownloadFontAwesome:false added to EasyMDE init to
suppress the runtime CDN injection that was still present inside easymde.min.js
Reference updates (all now absolute /assets/css/* or /assets/js/*):
- templates/public/head.php: modern-normalize + common
- templates/admin/head.php: modern-normalize + admin
- public/admin/login.php: modern-normalize + admin (standalone head)
- public/index.php, tfe.php, search.php, apropos.php, licence.php: extraCss paths
- public/admin/pages-edit.php: extraCss + extraJs (font-awesome, easymde CSS/JS)
Nginx static-file location already covers .css/.js/.woff/.woff2/.ttf/.otf with
30-day cache headers — no nginx config change needed.
This commit is contained in:
876
public/assets/css/admin.css
Normal file
876
public/assets/css/admin.css
Normal file
@@ -0,0 +1,876 @@
|
||||
/* ============================================================
|
||||
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;
|
||||
}
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.admin-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
background: var(--admin-bg);
|
||||
color: var(--admin-text);
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
||||
"Helvetica Neue", Arial, sans-serif;
|
||||
}
|
||||
|
||||
/* Admin nav (dark version of site-nav) */
|
||||
.admin-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;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.admin-nav__logo {
|
||||
font-size: 0.88rem;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
text-decoration: none;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/* Nav link list */
|
||||
.admin-nav__list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2.5rem;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.admin-nav__list 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-nav__list a:hover,
|
||||
.admin-nav__list a[aria-current="page"] {
|
||||
opacity: 1;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.admin-nav__list a[aria-current="page"] {
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.6);
|
||||
padding-bottom: 1px;
|
||||
}
|
||||
|
||||
/* Logout link pushed to the far right */
|
||||
.admin-nav__logout {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.admin-nav__logout a {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.admin-nav__logout a:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Main content area */
|
||||
.admin-main {
|
||||
flex: 1;
|
||||
padding: 2.5rem 2rem 4rem;
|
||||
max-width: 1100px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.admin-page-title {
|
||||
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-row {
|
||||
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-row:last-of-type {
|
||||
border-bottom: 1px solid var(--admin-border);
|
||||
}
|
||||
|
||||
.admin-label {
|
||||
font-size: 0.92rem;
|
||||
color: var(--admin-text);
|
||||
padding-top: 0.5rem;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.admin-input,
|
||||
.admin-select,
|
||||
.admin-textarea {
|
||||
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-input:focus,
|
||||
.admin-select:focus,
|
||||
.admin-textarea:focus {
|
||||
border-bottom-color: var(--admin-purple);
|
||||
}
|
||||
|
||||
.admin-input::placeholder,
|
||||
.admin-textarea::placeholder {
|
||||
color: var(--admin-text-muted);
|
||||
font-size: 0.88rem;
|
||||
}
|
||||
|
||||
.admin-textarea {
|
||||
resize: vertical;
|
||||
min-height: 100px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* Select custom arrow */
|
||||
.admin-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-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-hint {
|
||||
font-size: 0.78rem;
|
||||
color: var(--admin-text-muted);
|
||||
margin-top: 0.15rem;
|
||||
}
|
||||
|
||||
/* 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 ---- */
|
||||
.admin-alert {
|
||||
padding: 0.75rem 1rem;
|
||||
border-radius: 3px;
|
||||
font-size: 0.9rem;
|
||||
margin-bottom: 1.5rem;
|
||||
border-left: 3px solid;
|
||||
}
|
||||
|
||||
.admin-alert--error {
|
||||
background: rgba(200, 0, 0, 0.1);
|
||||
border-color: #c00;
|
||||
color: #ff6b6b;
|
||||
}
|
||||
|
||||
.admin-alert--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;
|
||||
}
|
||||
|
||||
.admin-stat__number {
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
color: var(--admin-purple);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.admin-stat__label {
|
||||
font-size: 0.82rem;
|
||||
color: var(--admin-text-muted);
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
/* ---- 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-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.88rem;
|
||||
}
|
||||
|
||||
.admin-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-table td {
|
||||
padding: 0.65rem 0.75rem;
|
||||
border-bottom: 1px solid var(--admin-border);
|
||||
color: var(--admin-text);
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.admin-table tr:hover td {
|
||||
background: var(--admin-bg-alt);
|
||||
}
|
||||
|
||||
.admin-table .thesis-title {
|
||||
font-weight: 500;
|
||||
color: var(--admin-text);
|
||||
}
|
||||
|
||||
.admin-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 (thanks page) */
|
||||
.admin-thesis-info {
|
||||
border: 1px solid var(--admin-border);
|
||||
border-radius: 6px;
|
||||
padding: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.admin-thesis-info h2 {
|
||||
margin: 0 0 1rem;
|
||||
font-size: 1.2rem;
|
||||
border-bottom: 1px solid var(--admin-border);
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.admin-thesis-info dl {
|
||||
display: grid;
|
||||
grid-template-columns: 180px 1fr;
|
||||
gap: 0.4rem 1rem;
|
||||
}
|
||||
|
||||
.admin-thesis-info dt {
|
||||
font-weight: 600;
|
||||
font-size: 0.88rem;
|
||||
color: var(--admin-text-muted);
|
||||
}
|
||||
|
||||
.admin-thesis-info 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-row {
|
||||
grid-template-columns: 1fr;
|
||||
border: none;
|
||||
padding: 0.4rem 0;
|
||||
}
|
||||
|
||||
.admin-login-box .admin-label {
|
||||
font-size: 0.82rem;
|
||||
color: var(--admin-text-muted);
|
||||
padding: 0;
|
||||
margin-bottom: 0.2rem;
|
||||
}
|
||||
|
||||
/* Import page */
|
||||
.admin-import-area {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
/* Jury fieldset */
|
||||
.admin-fieldset {
|
||||
border: 1px solid #333;
|
||||
border-radius: 4px;
|
||||
padding: 1rem 1.25rem;
|
||||
margin: .5rem 0 1rem;
|
||||
background: rgba(255,255,255,.02);
|
||||
}
|
||||
|
||||
.admin-fieldset-legend {
|
||||
font-size: .82rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: .04em;
|
||||
text-transform: uppercase;
|
||||
color: var(--admin-text-muted);
|
||||
padding: 0 .5rem;
|
||||
}
|
||||
|
||||
.admin-jury-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: .75rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.admin-jury-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: .5rem;
|
||||
}
|
||||
|
||||
.admin-jury-entry {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: .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: .2rem .45rem;
|
||||
font-size: .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: .4rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.admin-input--inline {
|
||||
padding: .28rem .5rem;
|
||||
font-size: .82rem;
|
||||
}
|
||||
|
||||
.admin-select--inline {
|
||||
padding: .28rem .5rem;
|
||||
font-size: .82rem;
|
||||
}
|
||||
|
||||
.admin-btn--sm {
|
||||
padding: .28rem .65rem;
|
||||
font-size: .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: .65rem 1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
font-size: .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: .7rem;
|
||||
padding: .1rem .4rem;
|
||||
border-radius: 3px;
|
||||
margin-top: .2rem;
|
||||
background: #333;
|
||||
color: #aaa;
|
||||
letter-spacing: .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 {
|
||||
font-size: 0.8rem;
|
||||
color: var(--admin-text-muted);
|
||||
margin: 0.3rem 0 0;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
ACCESSIBILITY UTILITIES
|
||||
============================================================ */
|
||||
|
||||
/* Consistent keyboard-focus outline for admin interactive elements */
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--admin-purple);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Skip-to-admin-content link */
|
||||
.skip-link {
|
||||
position: absolute;
|
||||
top: -999px;
|
||||
left: 1rem;
|
||||
z-index: 9999;
|
||||
padding: 0.5rem 1rem;
|
||||
background: var(--admin-purple);
|
||||
color: #fff;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
border-radius: 0 0 4px 4px;
|
||||
}
|
||||
|
||||
.skip-link:focus {
|
||||
top: 0;
|
||||
}
|
||||
|
||||
/* Respect user motion preferences */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
transition-duration: 0.01ms !important;
|
||||
animation-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
187
public/assets/css/apropos.css
Normal file
187
public/assets/css/apropos.css
Normal file
@@ -0,0 +1,187 @@
|
||||
/* ============================================================
|
||||
À PROPOS PAGE (apropos.php) + LICENCE PAGE (licence.php)
|
||||
============================================================ */
|
||||
|
||||
.apropos-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
background: var(--white);
|
||||
}
|
||||
|
||||
.apropos-main {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 2.5rem 1.5rem 4rem;
|
||||
}
|
||||
|
||||
/* Two-column layout */
|
||||
.apropos-layout {
|
||||
display: grid;
|
||||
grid-template-columns: 1.4fr 1fr;
|
||||
gap: 4rem;
|
||||
max-width: 1200px;
|
||||
}
|
||||
|
||||
/* Single-column layout — used by licence.php (no right column) */
|
||||
.apropos-single {
|
||||
max-width: 720px;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
/* Main prose column — Markdown-rendered content */
|
||||
/* ------------------------------------------------------------------ */
|
||||
|
||||
.prose {
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
font-size: 1.55rem;
|
||||
line-height: 1.45;
|
||||
color: var(--black);
|
||||
font-weight: 400;
|
||||
margin: 0 0 2rem 0;
|
||||
}
|
||||
|
||||
.prose p {
|
||||
margin: 0 0 1.2em 0;
|
||||
}
|
||||
|
||||
.prose h1,
|
||||
.prose h2,
|
||||
.prose h3 {
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
font-weight: 400;
|
||||
margin: 1.5em 0 0.5em 0;
|
||||
}
|
||||
|
||||
.prose h1 { font-size: 1.55rem; }
|
||||
.prose h2 { font-size: 1.3rem; }
|
||||
.prose h3 { font-size: 1.1rem; }
|
||||
|
||||
.prose a {
|
||||
color: var(--purple);
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
.prose ul,
|
||||
.prose ol {
|
||||
padding-left: 1.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.prose li {
|
||||
margin-bottom: .3em;
|
||||
}
|
||||
|
||||
.prose strong { font-weight: 700; }
|
||||
.prose em { font-style: italic; }
|
||||
|
||||
.prose code {
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
font-size: 0.9em;
|
||||
background: rgba(0,0,0,.06);
|
||||
padding: .1em .3em;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
/* Right aside — links, contacts, credits */
|
||||
/* ------------------------------------------------------------------ */
|
||||
|
||||
.apropos-aside {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.apropos-section-title {
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
font-size: 1.55rem;
|
||||
font-weight: 400;
|
||||
color: var(--black);
|
||||
margin: 0 0 0.5rem 0;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.apropos-section-title a {
|
||||
color: inherit;
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 3px;
|
||||
}
|
||||
|
||||
/* Contact entries — <address> elements */
|
||||
.apropos-aside address {
|
||||
margin-bottom: 1rem;
|
||||
font-style: normal; /* override browser italic default for <address> */
|
||||
}
|
||||
|
||||
.apropos-aside address strong {
|
||||
font-weight: 700;
|
||||
font-size: 0.95rem;
|
||||
color: var(--black);
|
||||
display: block;
|
||||
margin-bottom: 0.15rem;
|
||||
}
|
||||
|
||||
.apropos-aside address span,
|
||||
.apropos-aside address a {
|
||||
font-size: 0.9rem;
|
||||
color: var(--black);
|
||||
line-height: 1.4;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.apropos-aside address a {
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
.apropos-credits-text {
|
||||
font-size: 0.9rem;
|
||||
color: var(--black);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Licences section (legacy) */
|
||||
.apropos-licences {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.apropos-licences h2 {
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
font-size: 1.55rem;
|
||||
font-weight: 400;
|
||||
margin: 0 0 0.75rem 0;
|
||||
}
|
||||
|
||||
.apropos-licences p {
|
||||
font-size: 0.9rem;
|
||||
color: var(--black);
|
||||
line-height: 1.6;
|
||||
margin: 0 0 0.75rem 0;
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 900px) {
|
||||
.apropos-layout {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.prose {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.apropos-section-title {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.apropos-main {
|
||||
padding: 1.5rem 1rem 3rem;
|
||||
}
|
||||
|
||||
.prose {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
185
public/assets/css/common.css
Normal file
185
public/assets/css/common.css
Normal file
@@ -0,0 +1,185 @@
|
||||
@font-face {
|
||||
font-family: "police1";
|
||||
src: url("../fonts/Combinedd.otf");
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
SHARED VARIABLES & RESET
|
||||
============================================================ */
|
||||
:root {
|
||||
--purple: #9557b5;
|
||||
--purple-dark: #7b3fa0;
|
||||
--purple-light: rgba(149, 87, 181, 0.12);
|
||||
--black: #111;
|
||||
--white: #fff;
|
||||
--grey-light: #f5f5f5;
|
||||
--border-color: #ddd;
|
||||
--text-muted: #666;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
||||
"Helvetica Neue", Arial, sans-serif;
|
||||
background: var(--white);
|
||||
color: var(--black);
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
NAV BAR (shared across all public pages)
|
||||
============================================================ */
|
||||
.site-nav {
|
||||
background: linear-gradient(to bottom, var(--purple) 0%, rgba(149, 87, 181, 0.0) 100%);
|
||||
padding: 0.55rem 1.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.site-nav__logo {
|
||||
font-family: "police1", sans-serif;
|
||||
font-size: 0.95rem;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
color: var(--white);
|
||||
text-decoration: none;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.site-nav ul {
|
||||
display: flex;
|
||||
gap: 3rem;
|
||||
align-items: center;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.site-nav ul a {
|
||||
font-size: 0.85rem;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
color: var(--white);
|
||||
text-decoration: none;
|
||||
font-weight: 400;
|
||||
transition: opacity 0.15s;
|
||||
}
|
||||
|
||||
.site-nav ul a:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.site-nav ul a[aria-current="page"] {
|
||||
opacity: 1;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.6);
|
||||
padding-bottom: 1px;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
SEARCH BAR (shared)
|
||||
============================================================ */
|
||||
.site-search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.5rem 1.5rem;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
background: var(--white);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.site-search__icon {
|
||||
color: var(--text-muted);
|
||||
flex-shrink: 0;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.site-search__input {
|
||||
flex: 1;
|
||||
border: none;
|
||||
font-size: 0.95rem;
|
||||
color: var(--black);
|
||||
background: transparent;
|
||||
padding: 0.15rem 0;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.site-search__input::placeholder {
|
||||
color: #767676;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
ACCESSIBILITY UTILITIES
|
||||
============================================================ */
|
||||
|
||||
/* Visually-hidden but screen-reader-accessible */
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/* Skip-to-content link (visible only on keyboard focus) */
|
||||
.skip-link {
|
||||
position: absolute;
|
||||
top: -999px;
|
||||
left: 1rem;
|
||||
z-index: 9999;
|
||||
padding: 0.5rem 1rem;
|
||||
background: var(--purple);
|
||||
color: var(--white);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
border-radius: 0 0 4px 4px;
|
||||
}
|
||||
|
||||
.skip-link:focus {
|
||||
top: 0;
|
||||
}
|
||||
|
||||
/* Consistent keyboard-focus outline for all interactive elements */
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--purple);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Respect user motion preferences */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
transition-duration: 0.01ms !important;
|
||||
animation-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
7
public/assets/css/easymde.min.css
vendored
Normal file
7
public/assets/css/easymde.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
240
public/assets/css/main.css
Normal file
240
public/assets/css/main.css
Normal file
@@ -0,0 +1,240 @@
|
||||
/* ============================================================
|
||||
HOME PAGE (index.php)
|
||||
============================================================ */
|
||||
|
||||
.home-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
background: var(--white);
|
||||
}
|
||||
|
||||
/* Cards grid — scrollable main area */
|
||||
.home-main {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.cards-container {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||||
gap: 0;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
@media (min-width: 1400px) {
|
||||
.cards-container {
|
||||
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.cards-container {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
/* Each card = list item containing a block <a> link */
|
||||
.card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
background: var(--white);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.card > a {
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
/* card__media is a <figure> (with image) or <div> (gradient placeholder) */
|
||||
.card__media {
|
||||
width: 100%;
|
||||
aspect-ratio: 4/3;
|
||||
overflow: hidden;
|
||||
background: #e8e8e8;
|
||||
position: relative;
|
||||
margin: 0; /* reset <figure> default margin */
|
||||
}
|
||||
|
||||
.card__media img,
|
||||
.card__media video {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.card:hover .card__media img,
|
||||
.card:hover .card__media video {
|
||||
transform: scale(1.02);
|
||||
}
|
||||
|
||||
.card__media--placeholder {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #aaa;
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.card__media--gradient {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 1rem;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.card__gradient-author {
|
||||
color: #fff;
|
||||
font-size: 0.75rem;
|
||||
opacity: .85;
|
||||
margin-bottom: .25rem;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.card__gradient-title {
|
||||
color: #fff;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Latest-year label */
|
||||
.home-latest-label {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Card caption — <p> directly inside the <a>, below the media */
|
||||
.card__caption {
|
||||
padding: 0.55rem 0.5rem 0.65rem;
|
||||
font-size: 0.88rem;
|
||||
line-height: 1.35;
|
||||
color: var(--black);
|
||||
margin: 0;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/* Empty-state message shown when no cards exist */
|
||||
.cards-empty {
|
||||
padding: 2rem;
|
||||
color: #6b6b6b;
|
||||
font-size: 0.9rem;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
/* Filter info */
|
||||
.filter-info {
|
||||
background: var(--purple-light);
|
||||
color: var(--purple-dark);
|
||||
padding: 0.4rem 1.5rem;
|
||||
font-size: 0.85rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.clear-filter {
|
||||
color: var(--purple-dark);
|
||||
text-decoration: none;
|
||||
padding: 0.15rem 0.6rem;
|
||||
background: rgba(149, 87, 181, 0.12);
|
||||
border-radius: 3px;
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
|
||||
.clear-filter:hover {
|
||||
background: rgba(149, 87, 181, 0.22);
|
||||
}
|
||||
|
||||
/* Pagination */
|
||||
.pagination-wrap {
|
||||
border-top: 1px solid var(--border-color);
|
||||
background: var(--white);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.pagination-wrap ul {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 1rem;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.pagination-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 2rem;
|
||||
height: 2rem;
|
||||
padding: 0 0.5rem;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 3px;
|
||||
color: var(--black);
|
||||
font-size: 0.9rem;
|
||||
text-decoration: none;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
|
||||
.pagination-btn:hover:not(.disabled) {
|
||||
border-color: var(--purple);
|
||||
color: var(--purple);
|
||||
}
|
||||
|
||||
.pagination-btn.disabled {
|
||||
opacity: 0.3;
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.pagination-info {
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-muted);
|
||||
padding: 0 0.5rem;
|
||||
}
|
||||
|
||||
.page-current {
|
||||
font-weight: 600;
|
||||
color: var(--black);
|
||||
}
|
||||
|
||||
/* Suppress card hover scale for users who prefer reduced motion */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.card__media img,
|
||||
.card__media video {
|
||||
transition: none;
|
||||
}
|
||||
.card:hover .card__media img,
|
||||
.card:hover .card__media video {
|
||||
transform: none;
|
||||
}
|
||||
.card__media--gradient {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
9
public/assets/css/modern-normalize.min.css
vendored
Normal file
9
public/assets/css/modern-normalize.min.css
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Minified by jsDelivr using clean-css v5.3.3.
|
||||
* Original file: /npm/modern-normalize@3.0.1/modern-normalize.css
|
||||
*
|
||||
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
|
||||
*/
|
||||
/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
|
||||
*,::after,::before{box-sizing:border-box}html{font-family:system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';line-height:1.15;-webkit-text-size-adjust:100%;tab-size:4}body{margin:0}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-color:currentcolor}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}
|
||||
/*# sourceMappingURL=/sm/d2d8cd206fb9f42f071e97460f3ad9c875edb5e7a4b10f900a83cdf8401c53a9.map */
|
||||
314
public/assets/css/search.css
Normal file
314
public/assets/css/search.css
Normal file
@@ -0,0 +1,314 @@
|
||||
/* ============================================================
|
||||
RÉPERTOIRE / SEARCH PAGE (search.php)
|
||||
============================================================ */
|
||||
|
||||
.search-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
background: var(--white);
|
||||
}
|
||||
|
||||
.search-main {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/* ---- 4-column index layout ---- */
|
||||
.repertoire-index {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 2fr 2fr 1.5fr;
|
||||
gap: 0;
|
||||
padding: 0 1.5rem;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.repertoire-index {
|
||||
grid-template-columns: 1fr;
|
||||
padding: 0 1rem;
|
||||
min-height: auto;
|
||||
}
|
||||
|
||||
.repertoire-col {
|
||||
border-right: none;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
padding: 1rem 0 1.25rem;
|
||||
}
|
||||
|
||||
.repertoire-col:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
|
||||
.repertoire-col {
|
||||
padding: 0.75rem 0.5rem 2rem;
|
||||
border-right: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.repertoire-col:last-child {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.repertoire-col > h2 {
|
||||
font-size: 0.72rem;
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
color: var(--text-muted);
|
||||
font-weight: 400;
|
||||
margin: 0 0 0.5rem 0;
|
||||
padding-bottom: 0.4rem;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
/* Strip list chrome inside repertoire columns */
|
||||
.repertoire-col ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Years column - big bold numbers */
|
||||
.repertoire-col:first-child ul a {
|
||||
display: block;
|
||||
font-size: 2.2rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.1;
|
||||
color: var(--black);
|
||||
text-decoration: none;
|
||||
padding: 0.1rem 0;
|
||||
transition: color 0.15s;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.repertoire-col:first-child ul a:hover,
|
||||
.repertoire-col:first-child ul a[aria-current] {
|
||||
color: var(--purple);
|
||||
}
|
||||
|
||||
/* Categories column */
|
||||
.cat-index-label {
|
||||
font-size: 0.72rem;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--text-muted);
|
||||
font-weight: 400;
|
||||
display: block;
|
||||
margin-bottom: 0.15rem;
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
/* Categories, students, keywords columns — shared link style */
|
||||
.repertoire-col:not(:first-child) ul a {
|
||||
display: block;
|
||||
font-size: 0.95rem;
|
||||
color: var(--black);
|
||||
text-decoration: none;
|
||||
padding: 0.1rem 0;
|
||||
line-height: 1.4;
|
||||
transition: color 0.15s;
|
||||
}
|
||||
|
||||
.repertoire-col:not(:first-child) ul a:hover,
|
||||
.repertoire-col:not(:first-child) ul a[aria-current] {
|
||||
color: var(--purple);
|
||||
}
|
||||
|
||||
/* ---- Search results view (grid) ---- */
|
||||
.search-results-header {
|
||||
display: block;
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-muted);
|
||||
margin: 1rem 1.5rem 0.5rem;
|
||||
}
|
||||
|
||||
.results-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
gap: 1.5rem;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0.5rem 1.5rem 1.5rem;
|
||||
}
|
||||
|
||||
.result-card {
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.result-card__authors {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
color: var(--black);
|
||||
}
|
||||
|
||||
.result-card__title {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.35;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.result-card__meta {
|
||||
font-size: 0.78rem;
|
||||
color: var(--purple);
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
/* Toggle button (index/results) */
|
||||
.view-toggle {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.view-toggle__btn {
|
||||
padding: 0.25rem 0.75rem;
|
||||
font-size: 0.78rem;
|
||||
background: var(--white);
|
||||
color: var(--text-muted);
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
|
||||
.view-toggle__btn.active,
|
||||
.view-toggle__btn:hover {
|
||||
background: var(--purple);
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
/* Search controls bar */
|
||||
.search-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 0.4rem 1.5rem;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
flex-shrink: 0;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* label now wraps the select directly — flex aligns label text + select */
|
||||
.search-filter-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
font-size: 0.78rem;
|
||||
color: var(--text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
white-space: nowrap;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.search-filter-select {
|
||||
font-size: 0.82rem;
|
||||
border: 1px solid #949494;
|
||||
border-radius: 3px;
|
||||
padding: 0.2rem 0.5rem;
|
||||
background: var(--white);
|
||||
color: var(--black);
|
||||
font-family: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.search-filter-select:focus {
|
||||
border-color: var(--purple);
|
||||
}
|
||||
|
||||
.search-apply-btn {
|
||||
font-size: 0.82rem;
|
||||
padding: 0.2rem 0.8rem;
|
||||
background: var(--purple);
|
||||
color: var(--white);
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.search-apply-btn:hover {
|
||||
background: var(--purple-dark);
|
||||
}
|
||||
|
||||
.search-reset-link {
|
||||
font-size: 0.82rem;
|
||||
color: var(--text-muted);
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Search results pagination — reuses same token names as main.css */
|
||||
.pagination-wrap {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 1.5rem 0;
|
||||
}
|
||||
|
||||
.pagination-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 2rem;
|
||||
height: 2rem;
|
||||
padding: 0 0.5rem;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 3px;
|
||||
color: var(--black);
|
||||
font-size: 0.9rem;
|
||||
text-decoration: none;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
|
||||
.pagination-btn:hover:not(.disabled) {
|
||||
border-color: var(--purple);
|
||||
color: var(--purple);
|
||||
}
|
||||
|
||||
.pagination-btn.disabled {
|
||||
opacity: 0.3;
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.pagination-info {
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-muted);
|
||||
padding: 0 0.5rem;
|
||||
}
|
||||
|
||||
.search-empty {
|
||||
padding: 3rem 1.5rem;
|
||||
color: var(--text-muted);
|
||||
font-size: 1rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Error message */
|
||||
.search-error {
|
||||
background: #fff0f0;
|
||||
border-left: 3px solid #c00;
|
||||
color: #c00;
|
||||
padding: 0.5rem 1rem;
|
||||
font-size: 0.88rem;
|
||||
margin: 0.5rem 1.5rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
205
public/assets/css/tfe.css
Normal file
205
public/assets/css/tfe.css
Normal file
@@ -0,0 +1,205 @@
|
||||
/* ============================================================
|
||||
TFE INDIVIDUAL PAGE (tfe.php)
|
||||
============================================================ */
|
||||
|
||||
.tfe-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
background: var(--white);
|
||||
}
|
||||
|
||||
.tfe-main {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 2rem 1.5rem 3rem;
|
||||
}
|
||||
|
||||
/* Two-column article layout */
|
||||
.tfe-layout {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1.4fr;
|
||||
gap: 3rem;
|
||||
max-width: 1200px;
|
||||
}
|
||||
|
||||
/* Left column — article header */
|
||||
.tfe-left {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
/* Back link — top of left column */
|
||||
.tfe-back-link {
|
||||
font-size: .88rem;
|
||||
color: #666;
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Title (h1) — primary heading, very large */
|
||||
.tfe-title {
|
||||
font-size: 2.2rem;
|
||||
font-weight: 400;
|
||||
color: var(--black);
|
||||
margin: 0;
|
||||
line-height: 1.15;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
/* Author (p) — large but secondary */
|
||||
.tfe-author {
|
||||
font-size: 1.9rem;
|
||||
font-weight: 400;
|
||||
color: var(--black);
|
||||
margin: 0;
|
||||
line-height: 1.15;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
/* Metadata description list */
|
||||
.tfe-meta-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.45rem;
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.4;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Each dt/dd pair grouped in a <div> inside <dl> */
|
||||
.tfe-meta-list > div {
|
||||
display: flex;
|
||||
gap: 0.4rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.tfe-meta-list dt {
|
||||
color: var(--black);
|
||||
font-weight: 400;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.tfe-meta-list dd {
|
||||
color: var(--black);
|
||||
font-weight: 700;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.tfe-meta-list 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: 0.95rem;
|
||||
line-height: 1.7;
|
||||
color: var(--black);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Right column — aside (supplementary media) */
|
||||
.tfe-right {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
/* Each file display unit */
|
||||
.tfe-media-block {
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.tfe-media-block img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.tfe-media-block embed,
|
||||
.tfe-media-block video {
|
||||
width: 100%;
|
||||
display: block;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.tfe-media-block video {
|
||||
max-height: 500px;
|
||||
}
|
||||
|
||||
.tfe-media-block embed {
|
||||
height: clamp(300px, 80vh, 700px);
|
||||
}
|
||||
|
||||
/* figcaption under media */
|
||||
.tfe-file-caption {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-muted);
|
||||
margin: 0.3rem 0 0;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* PDF fallback download link */
|
||||
.tfe-pdf-fallback {
|
||||
font-size: 0.85rem;
|
||||
margin: 0.4rem 0 0;
|
||||
}
|
||||
|
||||
.tfe-pdf-fallback a {
|
||||
color: var(--black);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
/* "Not available" and "no files" notices */
|
||||
.tfe-restricted,
|
||||
.tfe-no-files {
|
||||
font-size: 0.95rem;
|
||||
color: var(--text-muted);
|
||||
font-style: italic;
|
||||
padding: 1rem 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 900px) {
|
||||
.tfe-layout {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.tfe-title {
|
||||
font-size: 1.7rem;
|
||||
}
|
||||
|
||||
.tfe-author {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.tfe-main {
|
||||
padding: 1.5rem 1rem 2rem;
|
||||
}
|
||||
|
||||
.tfe-title {
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
.tfe-author {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user