« Modèle:RecentArticlesButtons/styles.css » : différence entre les versions
De Nefald
Autres actions
Page créée avec « →Recent Articles Buttons - Style Sheet : →Container : .ext-recent-articles { display: flex; flex-wrap: wrap; gap: 0.6em; margin: 1.5em 0; padding: 0.8em; background-color: #f8f9fa; border-radius: 8px; justify-content: flex-start; } .ext-recent-articles ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6em; width: 100%; } →Button : .ext-recent-articles__button... » |
compact |
||
| Ligne 60 : | Ligne 60 : | ||
max-width: 220px; | max-width: 220px; | ||
} | } | ||
} | |||
.ext-recent-articles--compact .ext-recent-articles__button { | |||
padding: 0.3em 0.8em; | |||
min-width: 100px; | |||
font-size: 0.9em; | |||
} | } | ||
Version du 8 novembre 2025 à 10:00
/* Recent Articles Buttons - Style Sheet */
/* Container */
.ext-recent-articles {
display: flex;
flex-wrap: wrap;
gap: 0.6em;
margin: 1.5em 0;
padding: 0.8em;
background-color: #f8f9fa;
border-radius: 8px;
justify-content: flex-start;
}
.ext-recent-articles ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
gap: 0.6em;
width: 100%;
}
/* Button */
.ext-recent-articles__button {
display: block;
background-color: #ffffff;
color: #202122;
padding: 0.5em 1em;
border-radius: 6px;
font-weight: 500;
text-decoration: none;
transition: all 0.2s ease;
border: 1px solid #a2a9b1;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
min-width: 140px;
text-align: center;
line-height: 1.4;
}
.ext-recent-articles__button:hover {
background-color: #36c;
color: white;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
border-color: #36c;
}
.ext-recent-articles__button:active {
transform: translateY(0);
}
/* Mobile */
@media (max-width: 600px) {
.ext-recent-articles {
justify-content: center;
}
.ext-recent-articles__button {
width: 100%;
max-width: 220px;
}
}
.ext-recent-articles--compact .ext-recent-articles__button {
padding: 0.3em 0.8em;
min-width: 100px;
font-size: 0.9em;
}