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.
212 lines
4.2 KiB
CSS
212 lines
4.2 KiB
CSS
2 years ago
|
/* https://developer.mozilla.org/en-US/docs/Web/CSS/Layout_cookbook/Media_objects */
|
||
|
.mbox {
|
||
2 years ago
|
--profileimg-size: 4rem;
|
||
2 years ago
|
--profileimg-size-half: 2rem;
|
||
|
--profileimg-size-quarter: 1rem;
|
||
2 years ago
|
align-items: center;
|
||
2 years ago
|
display: flex;
|
||
|
flex-direction: row;
|
||
2 years ago
|
flex-shrink: 0;
|
||
2 years ago
|
flex-wrap: wrap;
|
||
2 years ago
|
margin-bottom: 1rem;
|
||
2 years ago
|
max-width: var(--content-width);
|
||
|
padding: 0 var(--gap-half);
|
||
2 years ago
|
}
|
||
|
.mbox:last-child {
|
||
|
margin-bottom: 0;
|
||
|
}
|
||
|
.mbox .mbox {
|
||
|
padding: 0;
|
||
2 years ago
|
}
|
||
|
|
||
2 years ago
|
.mbox-img {
|
||
2 years ago
|
align-self: start;
|
||
2 years ago
|
background-color: var(--bgcolor-textinput);
|
||
|
border-radius: var(--profileimg-size);
|
||
|
flex-basis: var(--profileimg-size);
|
||
|
height: var(--profileimg-size);
|
||
2 years ago
|
margin-right: var(--gap-half);
|
||
2 years ago
|
max-height: var(--profileimg-size);
|
||
2 years ago
|
max-width: var(--profileimg-size);
|
||
2 years ago
|
overflow: clip;
|
||
2 years ago
|
position: relative;
|
||
|
z-index: 2;
|
||
2 years ago
|
}
|
||
2 years ago
|
|
||
2 years ago
|
.mbox-img canvas,
|
||
|
.mbox-img img {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
2 years ago
|
.mbox-updated-contact .mbox-img,
|
||
2 years ago
|
.mbox-recommend-server .mbox-img {
|
||
2 years ago
|
--profileimg-size: 2rem;
|
||
|
margin-left: 2rem;
|
||
2 years ago
|
}
|
||
|
|
||
2 years ago
|
.mbox-body {
|
||
2 years ago
|
flex-grow: 0;
|
||
|
flex-shrink: 1;
|
||
2 years ago
|
word-break: break-word;
|
||
2 years ago
|
}
|
||
2 years ago
|
.mbox-img + .mbox-body {
|
||
2 years ago
|
flex-basis: calc(100% - var(--profileimg-size) - var(--gap-half));
|
||
2 years ago
|
}
|
||
2 years ago
|
|
||
2 years ago
|
.mbox-header {
|
||
2 years ago
|
flex-basis: calc(100% - var(--profileimg-size) - var(--gap-half));
|
||
2 years ago
|
flex-grow: 0;
|
||
|
flex-shrink: 1;
|
||
2 years ago
|
margin-top: 0;
|
||
|
}
|
||
2 years ago
|
.mbox-header a {
|
||
|
font-size: var(--font-small);
|
||
|
}
|
||
2 years ago
|
|
||
2 years ago
|
.mbox-kind0-name {
|
||
|
color: var(--color);
|
||
|
}
|
||
|
|
||
2 years ago
|
.mbox-updated-contact .mbox-body,
|
||
2 years ago
|
.mbox-recommend-server .mbox-body {
|
||
|
display: block;
|
||
|
font-size: var(--font-small);
|
||
2 years ago
|
overflow: scroll;
|
||
2 years ago
|
}
|
||
|
|
||
2 years ago
|
.mbox-updated-contact .mbox-header,
|
||
2 years ago
|
.mbox-recommend-server .mbox-header {
|
||
|
display: inline;
|
||
2 years ago
|
}
|
||
2 years ago
|
|
||
|
.mbox-updated-contact {
|
||
|
padding: 0 0 1rem 0;
|
||
|
margin: 0;
|
||
2 years ago
|
}
|
||
|
|
||
|
.mbox {
|
||
2 years ago
|
overflow: clip;
|
||
2 years ago
|
}
|
||
|
.mbox .mbox {
|
||
|
overflow: visible;
|
||
|
position: relative;
|
||
|
}
|
||
2 years ago
|
.mbox .buttons {
|
||
|
margin-top: .2rem;
|
||
|
}
|
||
|
.mbox button:not(#publish) {
|
||
|
--bg-color: none;
|
||
|
--border-color: none;
|
||
|
}
|
||
|
.mbox button img + small {
|
||
|
padding-left: .5rem;
|
||
|
}
|
||
2 years ago
|
.mobx-replies {
|
||
|
flex-grow: 1;
|
||
|
position: relative;
|
||
|
}
|
||
2 years ago
|
.mobx-replies .mobx-replies {
|
||
|
--reply-padding: 3rem;
|
||
|
margin-bottom: 2px;
|
||
|
padding: 0 1rem 0 var(--reply-padding);
|
||
|
}
|
||
|
.mobx-replies .mobx-replies .mobx-replies {
|
||
|
--reply-padding: 0;
|
||
|
}
|
||
2 years ago
|
.mbox .mbox::before,
|
||
|
.mobx-replies::before {
|
||
2 years ago
|
background-color: var(--bgcolor-inactive);
|
||
|
border: none;
|
||
|
content: "";
|
||
|
display: block;
|
||
|
height: 200vh;
|
||
|
left: var(--profileimg-size-half);
|
||
|
margin-left: -.2rem;
|
||
|
position: absolute;
|
||
|
top: -200vh;
|
||
|
width: .4rem;
|
||
|
}
|
||
|
.mobx-replies .mbox .mbox::before {
|
||
|
background: none;
|
||
|
border-color: var(--bgcolor-inactive);;
|
||
|
border-style: solid;
|
||
|
border-width: 0 0 .4rem .4rem;
|
||
|
content: "";
|
||
|
display: block;
|
||
|
height: var(--profileimg-size-quarter);
|
||
|
left: calc(-1 * var(--profileimg-size-quarter));
|
||
|
margin-left: -.2rem;
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
width: .8rem;
|
||
|
}
|
||
|
.mobx-replies .mbox .mbox::after {
|
||
2 years ago
|
background-color: var(--bgcolor-inactive);
|
||
|
border: none;
|
||
|
content: "";
|
||
|
display: block;
|
||
|
height: 100vh;
|
||
2 years ago
|
left: calc(-1 * var(--profileimg-size-quarter));
|
||
2 years ago
|
margin-left: -.2rem;
|
||
|
position: absolute;
|
||
|
top: -100vh;
|
||
|
width: .4rem;
|
||
|
}
|
||
2 years ago
|
/* support visualisation of 3 levels of thread nesting, rest render flat without line */
|
||
|
.mbox .mobx-replies .mobx-replies::before,
|
||
|
.mobx-replies .mobx-replies .mbox .mbox::before {
|
||
|
content: none;
|
||
|
}
|
||
|
.mobx-replies .mbox .mbox .mbox-img {
|
||
|
--profileimg-size: 2rem;
|
||
|
left: -.2rem;
|
||
|
margin-right: .5rem;
|
||
|
margin-top: .2rem;
|
||
|
position: relative;
|
||
|
}
|
||
2 years ago
|
|
||
|
[data-append]::after {
|
||
|
color: var(--color-accent);
|
||
|
content: "…";
|
||
|
}
|
||
2 years ago
|
|
||
|
.preview-loaded a {
|
||
|
background-color: var(--bgcolor-textinput);
|
||
|
border: 1px solid var(--bgcolor-inactive);
|
||
|
color: var(--color);
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
margin: var(--gap) 0 0 0;
|
||
|
max-width: 48rem;
|
||
|
padding: 1.5rem 1.8rem;
|
||
|
text-decoration: none;
|
||
|
}
|
||
|
.preview-loaded a:visited {
|
||
|
color: inherit;
|
||
|
}
|
||
|
|
||
|
.preview-title {
|
||
|
font-size: inherit;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
.preview-descr {
|
||
|
font-size: var(--font-small);
|
||
|
}
|
||
|
|
||
|
.preview-image {
|
||
2 years ago
|
background-color: rgba(72, 63, 63, 0.07);
|
||
2 years ago
|
margin-bottom: var(--gap);
|
||
|
max-height: 30vh;
|
||
2 years ago
|
object-fit: contain;
|
||
2 years ago
|
}
|
||
|
|
||
|
.preview-image-only {
|
||
|
background-color: var(--bgcolor-textinput);
|
||
|
border: 1px solid var(--bgcolor-inactive);
|
||
|
margin: var(--gap) 0 0 0;
|
||
|
max-width: 48rem;
|
||
|
padding: 1.5rem 1.8rem;
|
||
2 years ago
|
width: 100%;
|
||
2 years ago
|
}
|