mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 12:23:38 +08:00
41 lines
779 B
SCSS
41 lines
779 B
SCSS
@mixin chat-reaction {
|
|
align-items: center;
|
|
display: inline-flex;
|
|
padding: 0.3em 0.6em;
|
|
margin: 1px 0.25em 1px 0;
|
|
font-size: var(--font-down-2);
|
|
border-radius: 4px;
|
|
border: 1px solid var(--primary-300);
|
|
background: transparent;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
transition: background 0.2s, border-color 0.2s;
|
|
|
|
&.reacted {
|
|
border-color: var(--tertiary-medium);
|
|
background: var(--tertiary-very-low);
|
|
color: var(--tertiary-hover);
|
|
|
|
&:hover {
|
|
background: var(--tertiary-low);
|
|
}
|
|
}
|
|
|
|
&:not(.reacted) {
|
|
&:hover {
|
|
background: var(--primary-low);
|
|
border-color: var(--primary-low-mid);
|
|
}
|
|
|
|
&:focus {
|
|
background: none;
|
|
}
|
|
}
|
|
|
|
.emoji {
|
|
height: 15px;
|
|
margin-right: 4px;
|
|
width: auto;
|
|
}
|
|
}
|