« Modèle:Carte logiciel/styles.css » : différence entre les versions
De Infothèque
Autres actions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| (Une version intermédiaire par le même utilisateur non affichée) | |||
| Ligne 7 : | Ligne 7 : | ||
.ith-card { | .ith-card { | ||
position: relative; | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
align-items: center; | align-items: center; | ||
text-align: center; | text-align: center; | ||
background: | background: var(--background-color-neutral-subtle); | ||
border: 1px solid | border: 1px solid var(--border-color-base); | ||
border-radius: 10px; | border-radius: 10px; | ||
padding: 18px 12px; | padding: 18px 12px; | ||
transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; | transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; | ||
} | } | ||
| Ligne 24 : | Ligne 23 : | ||
box-shadow: 0 6px 16px rgba(0,0,0,.10); | box-shadow: 0 6px 16px rgba(0,0,0,.10); | ||
border-color: #008080; | border-color: #008080; | ||
} | } | ||
| Ligne 48 : | Ligne 45 : | ||
font-size: .95em; | font-size: .95em; | ||
line-height: 1.3; | line-height: 1.3; | ||
} | |||
.ith-card__title a { | |||
color: inherit; | |||
text-decoration: none; | |||
} | |||
.ith-card__title a::after { | |||
content: ""; | |||
position: absolute; | |||
inset: 0; | |||
} | |||
.ith-card:hover .ith-card__title a { | |||
color: #008080; | |||
text-decoration: underline; | |||
} | } | ||
.ith-card__subtitle { | .ith-card__subtitle { | ||
font-size: .8em; | font-size: .8em; | ||
color: | color: var(--color-subtle); | ||
margin-top: 4px; | margin-top: 4px; | ||
} | } | ||
Dernière version du 14 août 2026 à 12:29
.ith-card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 16px;
margin: 12px 0 28px;
}
.ith-card {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
background: var(--background-color-neutral-subtle);
border: 1px solid var(--border-color-base);
border-radius: 10px;
padding: 18px 12px;
transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ith-card:hover {
transform: translateY(-3px);
box-shadow: 0 6px 16px rgba(0,0,0,.10);
border-color: #008080;
}
.ith-card__logo {
height: 64px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 10px;
}
.ith-card__logo img {
max-height: 64px;
max-width: 100%;
width: auto;
height: auto;
object-fit: contain;
}
.ith-card__title {
font-weight: 600;
font-size: .95em;
line-height: 1.3;
}
.ith-card__title a {
color: inherit;
text-decoration: none;
}
.ith-card__title a::after {
content: "";
position: absolute;
inset: 0;
}
.ith-card:hover .ith-card__title a {
color: #008080;
text-decoration: underline;
}
.ith-card__subtitle {
font-size: .8em;
color: var(--color-subtle);
margin-top: 4px;
}
@media (max-width: 600px) {
.ith-card-grid {
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 10px;
}
.ith-card {
padding: 12px 8px;
}
}