206 lines
3.9 KiB
SCSS
206 lines
3.9 KiB
SCSS
.WebPage {
|
|
margin-top: 0.25rem;
|
|
margin-bottom: 0.125rem;
|
|
padding: 0.1875rem;
|
|
font-size: calc(var(--message-text-size, 1rem) - 0.125rem);
|
|
line-height: 1.125rem;
|
|
max-width: 29rem;
|
|
background-color: var(--accent-background-color);
|
|
border-radius: 0.25rem;
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
&.with-video {
|
|
padding: 0.1875rem 0.375rem;
|
|
}
|
|
|
|
&.with-document {
|
|
--file-icon-border-color: var(--accent-background-color);
|
|
}
|
|
|
|
&--background-icons {
|
|
margin: -0.375rem;
|
|
}
|
|
|
|
&--emoji-grid {
|
|
display: grid !important;
|
|
grid-template-columns: 1fr 1fr;
|
|
grid-template-rows: 1fr 1fr;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
&--sticker {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
&--stickers {
|
|
color: var(--accent-color);
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
&.in-preview {
|
|
border-radius: 0.25rem;
|
|
background-color: var(--color-primary-tint);
|
|
height: 2.625rem;
|
|
margin: 0;
|
|
padding: 0.125rem 0.25rem 0.125rem 0.625rem;
|
|
transition: background-color 0.2s ease-in;
|
|
}
|
|
|
|
&::before {
|
|
content: "";
|
|
display: block;
|
|
position: absolute;
|
|
top: 0;
|
|
inset-inline-start: 0;
|
|
bottom: 0;
|
|
width: 3px;
|
|
background: var(--bar-gradient, var(--accent-color));
|
|
}
|
|
|
|
.WebPage--content {
|
|
position: relative;
|
|
margin-inline-start: 0.25rem;
|
|
|
|
&.is-story {
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
}
|
|
}
|
|
|
|
&--quick-button {
|
|
--riple-color: var(var(--accent-background-active-color));
|
|
|
|
width: calc(100% - 0.25rem);
|
|
margin-top: 0.375rem;
|
|
margin-bottom: -0.375rem;
|
|
margin-inline-start: 0.25rem;
|
|
border-top: 1px solid var(--accent-background-active-color, var(--active-color));
|
|
|
|
color: var(--accent-color) !important;
|
|
|
|
transition: opacity 0.2s ease-in;
|
|
|
|
&:hover, &:active {
|
|
background-color: transparent !important;
|
|
opacity: 0.85;
|
|
}
|
|
}
|
|
|
|
&-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
align-items: flex-start;
|
|
position: relative;
|
|
}
|
|
|
|
.media-inner {
|
|
margin: 0 !important;
|
|
|
|
&,
|
|
& img,
|
|
& canvas,
|
|
&.small-image img {
|
|
--border-top-left-radius: var(--border-radius-messages-small);
|
|
--border-top-right-radius: var(--border-radius-messages-small);
|
|
--border-bottom-left-radius: var(--border-radius-messages-small);
|
|
--border-bottom-right-radius: var(--border-radius-messages-small);
|
|
}
|
|
|
|
&.square-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 0;
|
|
margin-bottom: 0 !important;
|
|
|
|
canvas,
|
|
img {
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.message-content:not(.has-reactions) & {
|
|
margin-bottom: calc(var(--message-meta-height)) !important;
|
|
}
|
|
|
|
&.with-square-photo .WebPage--content {
|
|
display: flex;
|
|
|
|
.WebPage-text {
|
|
order: 1;
|
|
padding-inline-end: 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;
|
|
}
|
|
}
|
|
}
|
|
|
|
.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.125rem;
|
|
|
|
body.is-ios & {
|
|
line-height: 1.125rem;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1921px) {
|
|
@supports (aspect-ratio: 1) {
|
|
&:not(.in-preview) {
|
|
max-width: none;
|
|
|
|
.thumbnail,
|
|
.full-media {
|
|
width: 100% !important;
|
|
height: auto !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|