FossilOrigin-Name: 486b9c61be8c089639c66255bd9cecad925b0ea55ed54a47510381996d9047c1
This commit is contained in:
nekobit 2022-06-05 20:40:40 +00:00
parent c070b6a031
commit ada4630442
3 changed files with 24 additions and 7 deletions

28
dist/treebird20.css vendored
View file

@ -1721,7 +1721,9 @@ ul.large-list li a
}
.is-cat:before,
.is-cat:after
.is-cat:after,
.is-bun:before,
.is-bun:after
{
content: "";
display: block;
@ -1735,31 +1737,45 @@ ul.large-list li a
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
}
.is-cat img {
.is-cat img,
.is-bun img
{
overflow: visible;
border-radius: 100% !important;
z-index: 3;
position: absolute;
}
.is-cat:before {
.is-cat:before,
.is-bun:before
{
transform: rotate(33deg) skew(30deg);
border-radius: 0 75% 75% 75%;
margin-left: 1px;
}
.is-cat:after {
.is-cat:after,
.is-bun:after
{
transform: rotate(-33deg) skew(-30deg);
border-radius: 75% 0 75% 75%;
margin-left: 31px;
}
.is-cat:hover:before
.is-bun:before, .is-bun:after
{
border-radius: 75% 75% 75% 75%;
margin-top: -5px;
}
.is-cat:hover:before,
.is-bun:hover:before
{
animation: earwiggleleft 1s infinite;
}
.is-cat:hover:after
.is-cat:hover:after,
.is-bun:hover:after
{
animation: earwiggleright 1s infinite;
}

View file

@ -596,6 +596,7 @@ char* construct_status(struct session* ssn,
.notif_info = notif_info,
// TODO doesn't even need to be a hashtag, this is a temporary hack
.is_cat = status->account.note && strstr(status->account.note, "isCat") ? "is-cat" : NULL,
.is_bun = status->account.note && strstr(status->account.note, "isBun") ? " is-bun" : NULL,
.avatar = status->account.avatar,
.username = formatted_display_name,
.prefix = config_url_prefix,

View file

@ -1,7 +1,7 @@
<table id="{{%s:status_id}}" class="status {{%s:focused}} ui-table">
{{ %s : notif_info }}
<tr>
<td class="pfp-td {{%s:is_cat}}">
<td class="pfp-td {{%s:is_cat}} {{%s:is_bun}}">
<img src="{{%s:avatar}}">
</td>
<td class="status-info">