homepage/styles/project.css

63 lines
965 B
CSS
Raw Normal View History

body {
max-width: 100%;
}
/* This is the container for all cards. */
main {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
align-items: stretch;
align-content: flex-start;
gap: 2em 2em;
}
article {
2023-06-18 12:57:54 +00:00
background-color: var(--background-color-2);
padding: 0.5em;
width: calc((100% / 3) - 2.4em);
display: flex;
flex-direction: column;
}
@media(max-width: 1000px) {
article {
width: calc((100% / 2) - 2.4em);
}
}
@media(max-width: 480px) {
article {
width: 100%;
}
}
article:nth-child(odd) {
background-color: var(--background-color-3);
2023-06-18 12:57:54 +00:00
}
article h2 {
2023-06-18 12:57:54 +00:00
margin-top: 0;
margin-bottom: 0.5em;
}
article p {
margin-top: 0.25em;
margin-bottom: 0.25em;
}
.icons-row {
width: 100%;
margin-top: auto;
padding-top: 0.5em;
2023-06-18 12:57:54 +00:00
}
.lang-icon {
max-height: 2.5em;
}
.lang-icon:not(:last-child) {
margin-right: 0.5em;
}