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

53 lines
949 B
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: 4ch;
align-self: start;
flex-basis: var(--size);
height: var(--size);
2 years ago
margin-right: 1rem;
margin-top: .5ch;
max-width: var(--size);
}
.mbox-recommend-server .mbox-img {
--size: 2.5ch;
margin-left: 1ch;
margin-right: 1.5ch;
2 years ago
}
.mbox-body {
flex-basis: calc(100% - 64px - 1rem);
flex-grow: 0;
flex-shrink: 1;
max-width: 96ch;
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 {
color: var(--color-accent);
}
.mbox-recommend-server .mbox-body {
display: block;
flex-basis: 100%;
font-size: var(--font-small);
}
.mbox-recommend-server .mbox-header {
display: inline;
2 years ago
}