You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tempest.dev/styles/about.module.css

117 lines
1.8 KiB
CSS

.container {
display: flex;
flex-direction: row;
max-width: var(--system-width);
width: calc(100vw - 2 * var(--text-padding));
margin: 0 auto;
margin-top: 75px;
justify-content: space-between;
}
.member {
flex: 1;
display: flex;
flex-direction: column;
max-width: 280px;
box-sizing: border-box;
margin: 0 calc(.5 * var(--text-padding));
padding: 0 var(--text-padding);
background: var(--main-background);
box-shadow: var(--card-shadow);
}
.member img {
display: block;
width: 150px;
height: 150px;
box-sizing: border-box;
border: solid 4px var(--member-color);
border-radius: 75px;
margin: 0 auto;
margin-top: -75px;
user-select: none;
}
.member h2 {
text-align: center;
color: var(--member-color);
margin: 0;
}
.member p {
margin-top: 0;
}
.member .pronouns {
text-align: center;
margin-top: 0;
}
.member p:nth-last-child(2) {
flex: 1;
}
.member p:last-child {
text-align: center;
}
.summary {
width: var(--main-width);
box-sizing: border-box;
padding: var(--text-padding);
margin: 0 auto;
}
@media (max-width: 999px) {
.container {
flex-direction: column;
align-items: center;
margin-top: 0;
--text-padding: 8px;
}
.member {
max-width: 600px;
width: calc(100% - var(--text-padding));
display: grid;
grid-template-columns: max(100px, 30%) 1fr;
grid-template-rows: 30px 70px 1fr 30px;
}
.member h2 {
grid-row: 1;
grid-column: 1/3;
text-align: center;
}
.member:not(:last-child){
margin-bottom: 32px;
}
.member img {
width: 80px;
height: auto;
margin-top: 16px;
grid-row: 1/3;
grid-column: 1;
}
.member .pronouns {
grid-column: 1;
}
.member .bio {
grid-column: 2;
grid-row: 2/4;
}
.member p:last-child {
grid-column: 1/3;
}
.summary {
max-width: 600px;
width: 100%;
}
}