159 lines
2.7 KiB
SCSS
159 lines
2.7 KiB
SCSS
.WebPage {
|
|
margin-top: 0.25rem;
|
|
margin-bottom: 0.125rem;
|
|
padding-left: 0.625rem;
|
|
font-size: calc(var(--message-text-size, 1rem) - 0.125rem);
|
|
line-height: 1.125rem;
|
|
max-width: 29rem;
|
|
position: relative;
|
|
|
|
&::before {
|
|
content: "";
|
|
display: block;
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 0.125rem;
|
|
background: var(--accent-color);
|
|
border-radius: 0.125rem;
|
|
}
|
|
|
|
&-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.media-inner {
|
|
margin: 0 !important;
|
|
margin-bottom: 0.375rem !important;
|
|
|
|
&,
|
|
& img,
|
|
& canvas,
|
|
&.small-image img {
|
|
border-radius: var(--border-radius-messages-small) !important;
|
|
}
|
|
|
|
&.square-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 0;
|
|
margin-bottom: 0 !important;
|
|
|
|
canvas,
|
|
img {
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.with-video .media-inner {
|
|
margin-top: 0.5rem !important;
|
|
margin-bottom: 1rem !important;
|
|
}
|
|
|
|
.message-content:not(.has-reactions) &.no-article:last-child {
|
|
margin-bottom: 1rem !important;
|
|
}
|
|
|
|
&.with-square-photo {
|
|
display: flex;
|
|
margin-bottom: 1rem;
|
|
|
|
.WebPage-text {
|
|
order: 1;
|
|
padding-right: 1rem;
|
|
}
|
|
|
|
.media-inner {
|
|
order: 2;
|
|
flex-shrink: 0;
|
|
|
|
&.square-image {
|
|
width: 5rem;
|
|
height: 5rem;
|
|
min-height: 0;
|
|
margin-bottom: 0 !important;
|
|
|
|
img {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
&:dir(rtl) {
|
|
.WebPage-text {
|
|
padding-inline-end: 1rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
&:not(.with-square-photo) {
|
|
.site-name,
|
|
.site-title,
|
|
.site-description {
|
|
&:last-child::after {
|
|
content: "";
|
|
display: inline-block;
|
|
width: var(--meta-safe-area-size);
|
|
height: 0.75rem;
|
|
float: right;
|
|
}
|
|
}
|
|
}
|
|
|
|
.site-name,
|
|
.site-description,
|
|
.site-title {
|
|
word-break: break-word;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.site-name {
|
|
color: var(--accent-color);
|
|
font-weight: 500;
|
|
margin-bottom: 0.125rem;
|
|
}
|
|
|
|
.site-title {
|
|
font-weight: 500;
|
|
margin-bottom: 0.125rem;
|
|
}
|
|
|
|
.site-description {
|
|
line-height: 1.25;
|
|
margin-bottom: 0;
|
|
|
|
body.is-ios & {
|
|
line-height: 1.125rem;
|
|
}
|
|
}
|
|
|
|
&:dir(rtl) {
|
|
padding-inline-start: 0.625rem;
|
|
|
|
&::before {
|
|
left: auto;
|
|
right: 0;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1921px) {
|
|
@supports (aspect-ratio: 1) {
|
|
&:not(.in-preview) {
|
|
max-width: none;
|
|
|
|
.thumbnail,
|
|
.full-media {
|
|
width: 100% !important;
|
|
height: auto !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|