143 lines
3.0 KiB
SCSS
143 lines
3.0 KiB
SCSS
@use "message-content";
|
|
|
|
.SponsoredMessage {
|
|
--border-top-left-radius: var(--border-radius-messages) !important;
|
|
--border-bottom-left-radius: 0 !important;
|
|
|
|
margin-top: -0.5rem;
|
|
margin-bottom: 0.5rem;
|
|
z-index: calc(var(--z-sticky-date) + 1);
|
|
|
|
&::before {
|
|
display: none;
|
|
}
|
|
|
|
&__button {
|
|
--riple-color: var(var(--accent-background-active-color));
|
|
|
|
margin-top: 0.375rem;
|
|
margin-bottom: -0.375rem;
|
|
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;
|
|
}
|
|
}
|
|
|
|
.message-type {
|
|
padding-inline-end: 0.25rem;
|
|
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.message-peer {
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.message-action-buttons {
|
|
bottom: auto !important;
|
|
top: 0;
|
|
}
|
|
|
|
.message-content {
|
|
padding: 0.5rem;
|
|
--border-top-left-radius: var(--border-radius-messages-small);
|
|
--border-top-right-radius: var(--border-radius-messages-small);
|
|
--border-bottom-right-radius: var(--border-radius-messages-small);
|
|
--border-bottom-left-radius: var(--border-radius-messages-small);
|
|
|
|
@media (max-width: 600px) {
|
|
max-width: min(29rem, calc(100vw - 4.5rem)) !important;
|
|
}
|
|
}
|
|
|
|
.channel-avatar {
|
|
--radius: 0.25rem;
|
|
|
|
float: right;
|
|
margin: 0 0 0.5rem 0.5rem;
|
|
|
|
&.is-rtl {
|
|
float: left;
|
|
margin: 0 0.5rem 0.5rem 0;
|
|
}
|
|
}
|
|
|
|
.content-inner {
|
|
padding-top: 0.375rem;
|
|
padding-inline-end: 0.375rem;
|
|
padding-bottom: 0;
|
|
padding-inline-start: 0.625rem;
|
|
font-size: calc(var(--message-text-size, 1rem) - 0.125rem);
|
|
background-color: var(--accent-background-color);
|
|
border-radius: 0.375rem;
|
|
overflow: hidden;
|
|
|
|
&::before {
|
|
content: "";
|
|
display: block;
|
|
position: absolute;
|
|
top: 0;
|
|
inset-inline-start: 0;
|
|
bottom: 0;
|
|
width: 3px;
|
|
background: var(--bar-gradient, var(--accent-color));
|
|
}
|
|
|
|
> .Button {
|
|
border-radius: 0 0 0.375rem 0.375rem;
|
|
border: none;
|
|
background: none;
|
|
margin-bottom: 0;
|
|
line-height: 1;
|
|
|
|
&::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 0.0625rem;
|
|
background: var(--accent-color);
|
|
opacity: 0.25;
|
|
}
|
|
}
|
|
|
|
.icon {
|
|
position: absolute;
|
|
font-size: 0.75rem;
|
|
top: 0.25rem;
|
|
right: 0;
|
|
transform: rotate(-45deg);
|
|
}
|
|
}
|
|
|
|
.svg-appendix {
|
|
transform: translate(0.01875rem, -0.00625rem);
|
|
}
|
|
|
|
.ad-about {
|
|
font-size: 0.6875rem;
|
|
margin-inline-start: 0.25rem;
|
|
border-radius: 1rem;
|
|
padding-inline: 0.375rem;
|
|
transition: 150ms filter ease-in;
|
|
background: var(--accent-background-active-color);
|
|
cursor: var(--custom-cursor, pointer);
|
|
filter: opacity(0.8);
|
|
|
|
&:hover {
|
|
filter: opacity(1);
|
|
}
|
|
}
|
|
|
|
.has-media {
|
|
padding-top: 0.5rem;
|
|
}
|
|
}
|