Modèle:Carte logiciel/styles.css
De Infothèque
Autres actions
.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;
}
}