mirror of
https://github.com/discourse/discourse.git
synced 2024-12-23 11:13:44 +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. -->
41 lines
700 B
SCSS
41 lines
700 B
SCSS
.chat-message-error {
|
|
color: var(--danger-medium);
|
|
|
|
&__retry-btn {
|
|
padding: 0.5em 0;
|
|
background: none;
|
|
|
|
&:hover,
|
|
&:focus,
|
|
.-active & {
|
|
background: none !important;
|
|
}
|
|
|
|
&:focus .retry-staged-message-btn__action {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.d-icon,
|
|
&-title,
|
|
&:hover .d-icon {
|
|
color: var(--danger) !important;
|
|
font-size: var(--font-down-1);
|
|
}
|
|
|
|
.d-icon {
|
|
margin-right: 0.25em !important;
|
|
}
|
|
|
|
&-action {
|
|
color: var(--tertiary);
|
|
font-size: var(--font-down-1);
|
|
margin-left: 0.25em;
|
|
|
|
&:hover {
|
|
color: var(--tertiary-high);
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
}
|