mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 22:33:55 +08:00
cbb9396353
- Moves `<ChatMessageInfo />` to `<Chat::Message::Info />` - Moves `<ChatMessageAvatar />` to `<Chat::Message::Avatar />` - Moves `<ChatMessageLeftGutter />` to `<Chat::Message::LeftGutter />`, adds tests - Creates `<Chat::Message::Error />` - Creates `<Chat::Message::MentionWarning />`, adds tests and a styleguide - Creates a model for ChatMessageMentionWarning, adds fabricator for it - Keeps the enter/leave viewport logic inside the `<ChatMessage />` component instead of bubbling it to the channel and thread components - Adds a scale animation when clicking a reaction - Creates `chat/later-fn` modifier which accepts a function and a delay. It allows to call a function Xms after a component has been inserted, it's useful for animations. - Moves css code out of chat-message into relevant files - Deletes unused code <!-- NOTE: All pull requests should have tests (rspec in Ruby, qunit in JavaScript). If your code does not include test coverage, please include an explanation of why it was omitted. -->
83 lines
1.4 KiB
SCSS
83 lines
1.4 KiB
SCSS
.chat-transcript {
|
|
@extend .chat-message-container;
|
|
min-height: 50px;
|
|
padding: 12px;
|
|
margin: 1rem 0;
|
|
|
|
@include post-aside;
|
|
|
|
.chat-messages-container & {
|
|
display: block;
|
|
}
|
|
|
|
&.chat-transcript-chained {
|
|
margin: 0;
|
|
border-top: 0;
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.chat-transcript-meta {
|
|
color: var(--primary-high);
|
|
font-size: var(--font-down-2-rem);
|
|
border-bottom: 1px solid var(--primary-low);
|
|
margin-bottom: 1rem;
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
.chat-transcript-channel {
|
|
font-size: var(--font-down-1-rem);
|
|
}
|
|
|
|
.chat-transcript-username {
|
|
color: var(--primary-high-or-secondary-low);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.chat-transcript-datetime {
|
|
color: var(--primary-high);
|
|
font-size: var(--font-down-2-rem);
|
|
padding: 0 0.5rem;
|
|
|
|
a {
|
|
color: var(--primary-high);
|
|
}
|
|
}
|
|
|
|
.chat-transcript-messages {
|
|
p {
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
p:last-of-type {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.chat-transcript-user-avatar .avatar {
|
|
aspect-ratio: 20 / 20;
|
|
}
|
|
|
|
.chat-transcript-user {
|
|
display: flex;
|
|
flex-wrap: wrap-reverse;
|
|
gap: 0.25rem 0;
|
|
align-items: baseline;
|
|
|
|
.chat-transcript-user-avatar {
|
|
padding-right: 0.5rem;
|
|
}
|
|
}
|
|
|
|
.chat-transcript-reactions {
|
|
margin-top: 0.5em;
|
|
|
|
.chat-transcript-reaction {
|
|
@include chat-reaction;
|
|
}
|
|
}
|
|
|
|
pre code {
|
|
box-sizing: border-box;
|
|
}
|
|
}
|