website/assets/sass/card.scss
Matthieu Bessat c3178fed85
All checks were successful
Deploy workflow / deploy (push) Successful in 33s
fix: card
2024-05-18 15:42:55 +02:00

53 lines
926 B
SCSS

.card {
margin-top: 2rem;
padding: 0.5rem;
border: 1px solid gray;
border-radius: 2px;
background-color: #ecf0f1;
display: flex;
gap: 2rem;
.card-image {
display: block;
margin-right: 0rem;
overflow: hidden;
height: 100%;
width: 300px;
flex-grow: 0;
flex-shrink: 0;
}
.card-action {
text-decoration: underline;
}
color: black;
text-decoration: none;
}
@media (max-width: $sm-breakpoint) {
.card-link {
gap: 1rem;
}
}
@media (max-width: $md-breakpoint) {
.card-link {
flex-wrap: wrap;
justify-content: center;
.card-image {
text-align: center;
max-width: 300px;
width: 100%;
}
}
}
@media (max-width: $xs-breakpoint) {
.card-link {
.card-image {
width: 100% !important;
}
}
}