The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/app/theme/client/imports/components/messages.css

207 lines
2.5 KiB

.messages-container-wrapper {
position: relative;
}
.message-actions {
position: absolute;
top: 2px;
right: 0.4rem;
display: none;
user-select: none;
color: var(--color-darkest);
font-size: 1rem;
&__buttons {
display: flex;
}
&__button {
margin: 0 0.2rem;
font-size: inherit;
&:hover {
color: var(--rc-color-button-primary);
}
}
&__menu {
padding: 2px 0;
cursor: pointer;
&:hover &-icon {
fill: var(--rc-color-button-primary);
}
&-icon {
fill: currentColor;
}
}
}
.message {
& .toggle-hidden {
display: none;
}
&&--ignored {
min-height: 25px;
padding: 2px 50px 2px 70px;
font-size: 12px;
& > .thumb {
top: 3px;
width: 20px;
height: 20px;
margin-left: 16px;
& .avatar {
width: 100%;
height: 100%;
}
}
& .user {
font-size: 0.75rem;
font-weight: initial;
}
& .message-body-wrapper .body,
& .message-oembed,
& .attachment,
& .message-discussion,
& .reactions,
& .edited,
& .role-tag {
display: none;
}
& .toggle-hidden {
display: block;
}
& + .message--ignored.sequential {
display: none;
}
}
&.active {
& .message-actions__label {
color: var(--rc-color-button-primary);
}
}
& .rc-popover-anchor {
display: block;
visibility: hidden;
width: 0;
height: 0;
opacity: 0;
}
& .rc-popover {
top: -200vh;
right: 180px;
&__wrapper {
position: fixed;
top: -100vh;
left: -100vw;
width: 300vw;
height: 300vh;
}
&__content {
position: absolute;
top: 0;
left: 0;
}
}
}
.message-body {
&--unstyled {
vertical-align: sub;
font: inherit;
line-height: initial;
& .emojione,
& .emoji {
display: inline-block !important;
width: 1em !important;
min-width: 1em;
height: 1em !important;
min-height: 1em;
}
& * {
display: inline !important;
padding: unset !important;
vertical-align: unset !important;
white-space: unset !important;
color: inherit !important;
border: unset !important;
background-color: unset !important;
font-family: inherit !important;
font-weight: unset !important;
line-height: unset !important;
&::before,
&::after {
content: unset !important;
}
}
& a {
pointer-events: none;
}
}
}
.message-oembed {
overflow: hidden;
}
.messages-box .rc-popover__list {
padding: 0;
}
.rtl .message-actions {
right: auto;
left: 2px;
}
@media (width >= 500px) {
.message {
&:hover,
&.active {
background-color: rgba(15, 34, 0, 0.05);
& .message-actions {
display: flex;
}
}
}
}