mirror of
https://github.com/discourse/discourse.git
synced 2025-02-26 04:38:39 +08:00

Stylelint is a css linter: https://stylelint.io/ As part of this change we have added two javascript scripts: ``` pnpm lint:css pnpm lint:css:fix ``` Look at `.vscode/settings.json.sample` and `.vscode/extensions.json` for configuration in VSCode. --------- Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
47 lines
857 B
SCSS
47 lines
857 B
SCSS
.chat-user-avatar {
|
|
@include unselectable;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
&.is-online {
|
|
.avatar {
|
|
padding: 2px;
|
|
box-shadow: inset 0 0 0 1px var(--success),
|
|
inset 0 0 0 2px var(--secondary);
|
|
}
|
|
}
|
|
|
|
&__container {
|
|
.chat-user-presence-flair {
|
|
box-sizing: border-box;
|
|
position: absolute;
|
|
background-color: var(--success);
|
|
border: 1px solid var(--secondary);
|
|
border-radius: 50%;
|
|
|
|
.chat-message & {
|
|
width: 10px;
|
|
height: 10px;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
.chat-channel-title & {
|
|
width: 8px;
|
|
height: 8px;
|
|
right: -1px;
|
|
bottom: -1px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.chat-message-container:not(.has-reply) & {
|
|
width: var(--message-left-width);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.chat-channel-title & {
|
|
width: auto;
|
|
}
|
|
}
|