Modèle:RecentArticlesButtons/styles.css
De Nefald
Autres actions
/* ===== RECENT ARTICLES BUTTONS (Citizen Theme Adaptation) ===== */
/* Conteneur principal - Sans fond ni bordure */
.dpl-boutons-articles {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin: 1.5rem 0;
padding: 0;
background-color: transparent;
border: none;
border-radius: 0;
justify-content: flex-start;
width: 100%;
}
/* Style des boutons (compatible Citizen) */
.dpl-bouton-article {
display: inline-block;
padding: 0.5rem 1rem;
border: 1px solid var(--border-color-base);
border-radius: 2px;
background-color: var(--color-surface-1);
color: var(--color-base);
text-decoration: none !important;
font-size: 0.9rem;
transition:
background-color 0.2s ease,
border-color 0.2s ease,
color 0.2s ease;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 200px;
}
/* Effet de survol */
.dpl-bouton-article:hover {
background-color: var(--color-surface-3);
border-color: var(--color-progressive);
color: var(--color-progressive);
cursor: pointer;
}
/* Bouton actif (page courante) */
.dpl-bouton-article.active {
background-color: var(--color-progressive);
border-color: var(--color-progressive);
color: white;
}
/* Date de modification (style subtil) */
.dpl-bouton-article .date {
display: block;
font-size: 0.75rem;
color: var(--color-subtle);
margin-top: 0.25rem;
}
/* Adaptation pour les cartes (si variante "carte" utilisée) */
.dpl-bouton-article.carte {
min-width: 120px;
text-align: center;
padding: 0.75rem;
border-radius: 4px;
box-shadow: var(--box-shadow-card);
}
/* Responsive: Empiler les boutons sur mobile */
@media (max-width: 720px) {
.dpl-boutons-articles {
justify-content: center;
}
.dpl-bouton-article {
max-width: 150px;
font-size: 0.85rem;
}
}