[frontend/components] Update reaction styling
This commit is contained in:
parent
d2a254dda3
commit
b434d54d45
3 changed files with 20 additions and 1 deletions
|
@ -2,6 +2,10 @@
|
||||||
margin-top: 0.5em;
|
margin-top: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.reactions {
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
@using Iceshrimp.Shared.Schemas.Web
|
@using Iceshrimp.Shared.Schemas.Web
|
||||||
<button @onclick="React" class="reaction">
|
<button @onclick="React" class="reaction @(Reaction.Reacted ? "reacted" : "")">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
@if (Reaction.Url == null)
|
@if (Reaction.Url == null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,20 @@
|
||||||
.reaction {
|
.reaction {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
line-height: 1;
|
||||||
|
padding: 0.2em 0.5em;
|
||||||
margin-right: 0.5em;
|
margin-right: 0.5em;
|
||||||
|
border-radius: 0.5em;
|
||||||
|
border: 0.1em solid var(--notice-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.reacted {
|
||||||
|
background-color: var(--notice-color);
|
||||||
|
color: var(--foreground-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.count {
|
||||||
|
margin-left: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-reaction {
|
.custom-reaction {
|
||||||
|
|
Loading…
Add table
Reference in a new issue