mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 06:03:46 +08:00
140 lines
2.5 KiB
SCSS
140 lines
2.5 KiB
SCSS
.chat-message-actions {
|
|
.selected-message-container {
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
|
|
.selected-message {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.5em;
|
|
border: 1px solid var(--primary-low);
|
|
box-shadow: 0 0 4px rgba(0, 0, 0, 0.125);
|
|
|
|
.selected-message-reply {
|
|
margin-left: 5px;
|
|
|
|
&:not(.is-expanded) {
|
|
@include ellipsis;
|
|
}
|
|
|
|
&.is-expanded {
|
|
@include user-select(text);
|
|
max-height: 80px;
|
|
overflow-y: scroll;
|
|
}
|
|
}
|
|
}
|
|
|
|
.main-actions {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1em 0 1.5em 0;
|
|
width: 100%;
|
|
|
|
.chat-message-reaction {
|
|
background: none;
|
|
border: 1px solid transparent;
|
|
|
|
img.emoji {
|
|
width: 30px;
|
|
height: 30px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
&.reacted {
|
|
border-color: var(--tertiary-medium);
|
|
background: var(--tertiary-very-low);
|
|
color: var(--tertiary-hover);
|
|
|
|
&:hover {
|
|
background: var(--tertiary-low);
|
|
}
|
|
}
|
|
}
|
|
|
|
.react-btn {
|
|
.d-icon {
|
|
color: var(--primary-medium);
|
|
font-size: var(--font-up-4);
|
|
}
|
|
}
|
|
|
|
.chat-message-reaction,
|
|
.react-btn {
|
|
margin: 0;
|
|
}
|
|
|
|
.chat-message-reaction,
|
|
.reply-btn,
|
|
.chat-message-thread-btn,
|
|
.react-btn,
|
|
.bookmark-btn {
|
|
flex-grow: 1;
|
|
height: 42px;
|
|
|
|
&:active {
|
|
background: var(--primary-low);
|
|
}
|
|
}
|
|
|
|
.bookmark-btn,
|
|
.react-btn {
|
|
> .svg-icon-title,
|
|
> .svg-icon {
|
|
font-size: var(--font-up-4);
|
|
}
|
|
}
|
|
|
|
.reply-btn {
|
|
.d-icon {
|
|
font-size: var(--font-up-4);
|
|
}
|
|
}
|
|
}
|
|
|
|
.secondary-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
align-items: flex-start;
|
|
margin: 0;
|
|
|
|
.chat-message-action-item {
|
|
width: 100%;
|
|
list-style: none;
|
|
display: flex;
|
|
|
|
&:active {
|
|
background: var(--primary-low);
|
|
}
|
|
|
|
&:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.chat-message-action {
|
|
justify-content: flex-start;
|
|
gap: 0.25em;
|
|
background: none;
|
|
width: 100%;
|
|
border: 0;
|
|
color: var(--primary);
|
|
padding: 0.75rem 1em;
|
|
|
|
&:focus,
|
|
.d-icon {
|
|
color: var(--primary);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
//temporary until this uses a proper component instead of the modal
|
|
.d-modal {
|
|
&__body {
|
|
padding: 0;
|
|
}
|
|
}
|
|
}
|