107 lines
1.9 KiB
SCSS
107 lines
1.9 KiB
SCSS
.Reactions {
|
|
display: flex;
|
|
flex-direction: row;
|
|
width: 100%;
|
|
flex-wrap: wrap;
|
|
margin-top: 0.25rem;
|
|
overflow: visible;
|
|
|
|
.Button {
|
|
--reaction-background: var(--color-reaction);
|
|
display: flex;
|
|
flex-direction: row;
|
|
height: 1.875rem;
|
|
white-space: nowrap;
|
|
width: auto;
|
|
margin: 0.125rem;
|
|
padding: 0 0.25rem;
|
|
border: 2px solid transparent;
|
|
background-color: var(--reaction-background) !important;
|
|
border-radius: 1.75rem;
|
|
font-weight: 500;
|
|
font-variant-numeric: tabular-nums;
|
|
text-transform: none;
|
|
color: var(--accent-color);
|
|
overflow: visible;
|
|
line-height: 1.75rem;
|
|
|
|
.ReactionStaticEmoji {
|
|
width: 1.25rem;
|
|
}
|
|
|
|
.avatars {
|
|
display: flex;
|
|
|
|
.Avatar {
|
|
margin: 0;
|
|
margin-inline-start: -0.25rem;
|
|
border: 0.0625rem solid var(--reaction-background);
|
|
width: 1.5rem;
|
|
height: 1.5rem;
|
|
|
|
&:first-child {
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.chosen {
|
|
border-color: var(--accent-color);
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.counter {
|
|
margin-inline-end: 0.125rem;
|
|
}
|
|
|
|
&:hover {
|
|
--reaction-background: var(--hover-color-reaction);
|
|
}
|
|
|
|
&:first-of-type {
|
|
margin-inline-start: 0;
|
|
}
|
|
|
|
&:last-of-type {
|
|
margin-inline-end: 0;
|
|
}
|
|
}
|
|
|
|
&.is-outside {
|
|
margin-top: 0.125rem;
|
|
}
|
|
|
|
.own &.is-outside {
|
|
flex-direction: row-reverse;
|
|
|
|
.Button {
|
|
&:first-of-type {
|
|
margin-inline-start: 0.125rem;
|
|
margin-inline-end: 0;
|
|
}
|
|
|
|
&:last-of-type {
|
|
margin-inline-end: 0.125rem;
|
|
margin-inline-start: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.is-outside .Button {
|
|
--reaction-background: var(--pattern-color);
|
|
color: white;
|
|
.theme-dark & {
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
&.chosen {
|
|
border-color: white;
|
|
|
|
.theme-dark & {
|
|
border-color: var(--accent-color);
|
|
}
|
|
}
|
|
}
|
|
}
|