2023-08-14 11:32:26 +02:00

176 lines
3.1 KiB
SCSS

.WebPage {
margin-top: 0.25rem;
margin-bottom: 0.125rem;
font-size: calc(var(--message-text-size, 1rem) - 0.125rem);
line-height: 1.125rem;
max-width: 29rem;
.WebPage--content {
padding-left: 0.625rem;
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;
}
&.is-story {
display: flex;
flex-direction: column-reverse;
}
}
&--quick-button {
margin-top: 0.375rem;
.theme-dark .Message.own &:hover {
color: var(--background-color);
}
}
&-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,
.message-content:not(.has-reactions) &.with-quick-button,
.message-content:not(.has-reactions) &.with-square-photo {
margin-bottom: 1rem !important;
}
&.with-square-photo .WebPage--content {
display: flex;
.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):not(.with-quick-button) {
.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;
}
}
}
}
}