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.
nostrweb/src/cards.css

64 lines
1.2 KiB
CSS

2 years ago
/* https://developer.mozilla.org/en-US/docs/Web/CSS/Layout_cookbook/Media_objects */
.mbox {
align-items: center;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
margin-bottom: 1rem;
2 years ago
}
.mbox-img {
--size: 5rem;
align-self: start;
flex-basis: var(--size);
height: var(--size);
2 years ago
margin-right: 1rem;
margin-top: .5ch;
max-width: var(--size);
max-width: var(--size);
}
.mbox-updated-contact .mbox-img,
.mbox-recommend-server .mbox-img {
--size: 4.5ch;
margin-left: 3ch;
margin-right: 3.5ch;
2 years ago
}
.mbox-body {
flex-basis: calc(100% - 64px - 1rem);
flex-grow: 0;
flex-shrink: 1;
word-break: break-word;
2 years ago
}
.mbox-header {
flex-basis: calc(100% - 64px - 1rem);
flex-grow: 0;
flex-shrink: 1;
margin-top: 0;
}
.mbox-header time,
.mbox-username,
.mbox-updated-contact,
.mbox mbox-recommend-server {
color: var(--color-accent);
}
.mbox-updated-contact .mbox-body,
.mbox-recommend-server .mbox-body {
display: block;
flex-basis: 100%;
font-size: var(--font-small);
overflow: scroll;
}
.mbox-updated-contact .mbox-header,
.mbox-recommend-server .mbox-header {
display: inline;
2 years ago
}
.mbox-updated-contact {
padding: 0 0 1rem 0;
margin: 0;
}