feat : page /books et section livres accueil (v1.6.26)
- #99 : page publique /books — catalogue des books avec ≥1 article publié - #100 : section « Livres » sur la homepage (max 6, après redécouvertes) - CSS : .book-grid, .book-home-card*, .home-section-more - .htaccess : règle RewriteRule ^books/?$ Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1844,6 +1844,68 @@ main { transition: max-width .22s ease; }
|
||||
|
||||
/* ─── Livres ─────────────────────────────────────────────────────── */
|
||||
|
||||
/* Grille catalogue /books + section accueil */
|
||||
.book-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
.book-home-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-radius: var(--vl-radius);
|
||||
overflow: hidden;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
background: var(--vl-card-bg, var(--bs-body-bg));
|
||||
box-shadow: var(--vl-shadow-sm, 0 1px 3px rgba(0,0,0,.08));
|
||||
transition: transform .15s, box-shadow .15s;
|
||||
}
|
||||
.book-home-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--vl-shadow-md, 0 4px 12px rgba(0,0,0,.14));
|
||||
color: inherit;
|
||||
}
|
||||
.book-home-card-cover {
|
||||
height: 120px;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.book-home-card-body {
|
||||
padding: .7rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: .2rem;
|
||||
flex: 1;
|
||||
}
|
||||
.book-home-card-title {
|
||||
font-weight: 600;
|
||||
font-size: .9rem;
|
||||
line-height: 1.3;
|
||||
}
|
||||
.book-home-card-desc {
|
||||
font-size: .78rem;
|
||||
color: var(--vl-muted);
|
||||
line-height: 1.4;
|
||||
}
|
||||
.book-home-card-meta {
|
||||
font-size: .72rem;
|
||||
color: var(--vl-muted);
|
||||
margin-top: auto;
|
||||
padding-top: .3rem;
|
||||
}
|
||||
.home-section-more {
|
||||
font-size: .75rem;
|
||||
font-weight: 400;
|
||||
margin-left: .5rem;
|
||||
color: var(--vl-accent);
|
||||
text-decoration: none;
|
||||
letter-spacing: 0;
|
||||
text-transform: none;
|
||||
}
|
||||
.home-section-more:hover { text-decoration: underline; }
|
||||
|
||||
/* Bandeau dans un article appartenant à un livre */
|
||||
.book-article-banner {
|
||||
border-radius: var(--vl-radius);
|
||||
|
||||
Reference in New Issue
Block a user