pagination curseur, layout 3 colonnes article, sidebar fixe
This commit is contained in:
+433
-4
@@ -115,13 +115,35 @@ body {
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830%2C41%2C59%2C0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
|
||||
}
|
||||
|
||||
/* ─── Category nav in navbar ─────────────── */
|
||||
.navbar-cats {
|
||||
gap: 0.15rem;
|
||||
}
|
||||
|
||||
.nav-cat {
|
||||
font-size: 0.8rem !important;
|
||||
padding: 0.25rem 0.6rem !important;
|
||||
border-radius: 2rem !important;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.nav-cat.active {
|
||||
background-color: var(--vl-accent) !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
/* ─── Main ───────────────────────────────── */
|
||||
main.container {
|
||||
max-width: 980px;
|
||||
main.container,
|
||||
main.container-xl,
|
||||
main.container-fluid {
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 3rem;
|
||||
}
|
||||
|
||||
main.container {
|
||||
max-width: 980px;
|
||||
}
|
||||
|
||||
/* ─── Headings ───────────────────────────── */
|
||||
h1 {
|
||||
font-weight: 700;
|
||||
@@ -170,6 +192,139 @@ a:hover {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.article-cover--gradient {
|
||||
height: 160px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Hero : titre sur l'image */
|
||||
.article-cover--hero {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.article-cover--hero img {
|
||||
height: clamp(260px, 45vw, 480px);
|
||||
}
|
||||
|
||||
.article-cover--hero.article-cover--gradient {
|
||||
height: clamp(200px, 35vw, 340px);
|
||||
}
|
||||
|
||||
.article-hero-text {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
padding: 0.9rem 1.4rem 1.25rem;
|
||||
background: linear-gradient(
|
||||
to top,
|
||||
rgba(0,0,0,.80) 0%,
|
||||
rgba(0,0,0,.32) 50%,
|
||||
transparent 100%
|
||||
);
|
||||
}
|
||||
|
||||
.article-hero-top {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 0.4rem;
|
||||
align-items: flex-start;
|
||||
min-height: 2rem;
|
||||
}
|
||||
|
||||
.article-hero-bottom {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.article-hero-left { flex: 1; min-width: 0; }
|
||||
|
||||
.article-hero-right {
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.article-hero-text .cover-category {
|
||||
position: static;
|
||||
align-self: flex-start;
|
||||
margin-bottom: 0.55rem;
|
||||
}
|
||||
|
||||
.article-hero-text .article-title {
|
||||
color: #fff;
|
||||
text-shadow: 0 1px 8px rgba(0,0,0,.5);
|
||||
margin-bottom: 0.3rem;
|
||||
}
|
||||
|
||||
.article-hero-meta {
|
||||
font-size: 0.82rem;
|
||||
color: rgba(255,255,255,.72);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Boutons glass sur le hero */
|
||||
.hero-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
padding: 0.28rem 0.75rem;
|
||||
font-size: 0.73rem;
|
||||
font-weight: 600;
|
||||
color: #fff !important;
|
||||
background: rgba(0,0,0,.35);
|
||||
border: 1px solid rgba(255,255,255,.22);
|
||||
border-radius: 999px;
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
text-decoration: none !important;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
white-space: nowrap;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.hero-btn:hover { background: rgba(0,0,0,.58); color: #fff !important; }
|
||||
.hero-btn--danger { border-color: rgba(239,68,68,.5); }
|
||||
.hero-btn--danger:hover { background: rgba(180,30,30,.65); }
|
||||
|
||||
/* Score de notation dans le hero */
|
||||
.hero-rating-score {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
color: rgba(255,255,255,.88);
|
||||
}
|
||||
|
||||
/* Étoiles sur fond sombre */
|
||||
.star-rating--hero label { color: rgba(255,255,255,.4); font-size: 1.1rem; }
|
||||
.star-rating--hero input:checked ~ label,
|
||||
.star-rating--hero label:hover,
|
||||
.star-rating--hero label:hover ~ label { color: #f5c842; }
|
||||
|
||||
.card-cover {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.cover-category {
|
||||
position: absolute;
|
||||
bottom: 0.6rem;
|
||||
left: 0.75rem;
|
||||
font-size: 0.65rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
color: #fff;
|
||||
background: rgba(0, 0, 0, 0.28);
|
||||
padding: 0.2rem 0.55rem;
|
||||
border-radius: 999px;
|
||||
backdrop-filter: blur(6px);
|
||||
-webkit-backdrop-filter: blur(6px);
|
||||
}
|
||||
|
||||
.card {
|
||||
border: 1px solid var(--vl-border) !important;
|
||||
border-radius: var(--vl-radius) !important;
|
||||
@@ -195,6 +350,15 @@ a:hover {
|
||||
color: var(--vl-text);
|
||||
}
|
||||
|
||||
.article-title {
|
||||
font-weight: 800;
|
||||
font-size: clamp(1.6rem, 4vw, 2.4rem);
|
||||
line-height: 1.2;
|
||||
letter-spacing: -0.5px;
|
||||
color: var(--vl-text);
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
/* Override la couleur text-primary Bootstrap sur les card-title */
|
||||
.card-title.text-primary {
|
||||
color: var(--vl-text) !important;
|
||||
@@ -226,7 +390,8 @@ a:hover {
|
||||
|
||||
/* ─── Ribbons (brouillon / avant-première) ── */
|
||||
.draft-ribbon,
|
||||
.premiere-ribbon {
|
||||
.premiere-ribbon,
|
||||
.private-ribbon {
|
||||
position: absolute;
|
||||
top: 26px;
|
||||
right: -34px;
|
||||
@@ -244,8 +409,9 @@ a:hover {
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,.18);
|
||||
}
|
||||
|
||||
.draft-ribbon { background: #f59e0b; }
|
||||
.draft-ribbon { background: #f59e0b; }
|
||||
.premiere-ribbon { background: #6366f1; }
|
||||
.private-ribbon { background: #64748b; }
|
||||
|
||||
/* ─── Buttons ─────────────────────────────── */
|
||||
.btn {
|
||||
@@ -349,6 +515,195 @@ textarea.form-control {
|
||||
color: #991b1b;
|
||||
}
|
||||
|
||||
/* ─── Left category sidebar ──────────────── */
|
||||
.left-sidebar {
|
||||
position: sticky;
|
||||
top: 1.5rem;
|
||||
}
|
||||
|
||||
.left-sidebar-section {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.left-sidebar-cat {
|
||||
display: block;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: .08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--vl-muted);
|
||||
text-decoration: none;
|
||||
margin-bottom: 0.4rem;
|
||||
padding: 0.2rem 0.5rem;
|
||||
border-radius: 0.4rem;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
}
|
||||
|
||||
.left-sidebar-cat:hover {
|
||||
background: var(--vl-accent-soft);
|
||||
color: var(--vl-accent);
|
||||
}
|
||||
|
||||
.left-sidebar-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.left-sidebar-list li {
|
||||
border-left: 2px solid var(--vl-border);
|
||||
padding-left: 0.6rem;
|
||||
margin-bottom: 0.3rem;
|
||||
}
|
||||
|
||||
.left-sidebar-list li a {
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.35;
|
||||
color: var(--vl-text);
|
||||
text-decoration: none;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
transition: color 0.15s;
|
||||
}
|
||||
|
||||
.left-sidebar-list li a:hover {
|
||||
color: var(--vl-accent);
|
||||
}
|
||||
|
||||
/* ─── Related articles sidebar ───────────── */
|
||||
.related-sidebar {
|
||||
position: sticky;
|
||||
top: 1.5rem;
|
||||
}
|
||||
|
||||
/* ─── Post layout: colonnes sidebar fixe + article flexible ── */
|
||||
@media (min-width: 992px) {
|
||||
.post-sidebar-col {
|
||||
flex: 0 0 260px;
|
||||
width: 260px;
|
||||
max-width: 260px;
|
||||
}
|
||||
}
|
||||
|
||||
.related-sidebar-title {
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: .08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--vl-muted);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.related-card {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
align-items: flex-start;
|
||||
text-decoration: none;
|
||||
color: var(--vl-text);
|
||||
padding: 0.65rem;
|
||||
border-radius: var(--vl-radius);
|
||||
transition: background 0.15s;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.related-card:hover {
|
||||
background: var(--vl-accent-soft);
|
||||
color: var(--vl-accent);
|
||||
}
|
||||
|
||||
.related-card-thumb {
|
||||
width: 64px;
|
||||
height: 52px;
|
||||
border-radius: 0.5rem;
|
||||
flex-shrink: 0;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
.related-card-body {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.related-card-title {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.35;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.related-card-date {
|
||||
font-size: 0.75rem;
|
||||
color: var(--vl-muted);
|
||||
margin-top: 0.2rem;
|
||||
}
|
||||
|
||||
/* ─── Source / attachment cards (sidebar) ── */
|
||||
.source-card {
|
||||
display: flex;
|
||||
gap: 0.65rem;
|
||||
align-items: flex-start;
|
||||
text-decoration: none;
|
||||
color: var(--vl-text);
|
||||
padding: 0.5rem 0.65rem;
|
||||
border-radius: var(--vl-radius);
|
||||
border: 1px solid var(--vl-border);
|
||||
background: var(--vl-surface);
|
||||
transition: border-color 0.15s, box-shadow 0.15s;
|
||||
}
|
||||
|
||||
.source-card:hover {
|
||||
border-color: var(--vl-accent);
|
||||
box-shadow: 0 0 0 3px rgba(79,70,229,.08);
|
||||
color: var(--vl-accent);
|
||||
}
|
||||
|
||||
.source-card-thumb {
|
||||
width: 52px;
|
||||
height: 42px;
|
||||
border-radius: 0.4rem;
|
||||
flex-shrink: 0;
|
||||
background-color: var(--vl-accent-soft);
|
||||
}
|
||||
|
||||
.source-card-thumb--pdf,
|
||||
.source-card-thumb--link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1.2rem;
|
||||
color: var(--vl-accent);
|
||||
}
|
||||
|
||||
.source-card-body {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.source-card-title {
|
||||
font-size: 0.82rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.3;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.source-card-meta {
|
||||
font-size: 0.72rem;
|
||||
color: var(--vl-muted);
|
||||
margin-top: 0.2rem;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
/* ─── Post content (Markdown rendu) ──────── */
|
||||
.post-content {
|
||||
font-size: 1rem;
|
||||
@@ -554,6 +909,56 @@ footer {
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
/* ─── Pagination ─────────────────────────── */
|
||||
.pagination-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.3rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.pagination-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 2.2rem;
|
||||
height: 2.2rem;
|
||||
padding: 0 0.5rem;
|
||||
border-radius: 0.5rem;
|
||||
border: 1px solid var(--vl-border);
|
||||
background: var(--vl-surface);
|
||||
color: var(--vl-text);
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
text-decoration: none;
|
||||
transition: border-color 0.15s, background 0.15s, color 0.15s;
|
||||
}
|
||||
|
||||
.pagination-btn:hover:not(.disabled):not(.active) {
|
||||
border-color: var(--vl-accent);
|
||||
color: var(--vl-accent);
|
||||
background: var(--vl-accent-soft);
|
||||
}
|
||||
|
||||
.pagination-btn.active {
|
||||
background: var(--vl-accent);
|
||||
border-color: var(--vl-accent);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.pagination-btn.disabled {
|
||||
opacity: 0.35;
|
||||
cursor: default;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.pagination-ellipsis {
|
||||
padding: 0 0.25rem;
|
||||
color: var(--vl-muted);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
/* ─── Footer 2 colonnes ──────────────────── */
|
||||
footer {
|
||||
border-top: 1px solid var(--vl-border);
|
||||
@@ -639,3 +1044,27 @@ footer {
|
||||
.text-primary {
|
||||
color: var(--vl-accent) !important;
|
||||
}
|
||||
|
||||
/* ─── Widget étoiles ──────────────────────── */
|
||||
.star-rating {
|
||||
display: inline-flex;
|
||||
flex-direction: row-reverse;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.star-rating input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.star-rating label {
|
||||
font-size: 1.4rem;
|
||||
color: #ccc;
|
||||
cursor: pointer;
|
||||
transition: color 0.1s;
|
||||
}
|
||||
|
||||
.star-rating input:checked ~ label,
|
||||
.star-rating label:hover,
|
||||
.star-rating label:hover ~ label {
|
||||
color: #f5a623;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user