From ada4630442cae90b86248a89ca29b844e16f1b9c Mon Sep 17 00:00:00 2001 From: nekobit Date: Sun, 5 Jun 2022 20:40:40 +0000 Subject: [PATCH] is Bun FossilOrigin-Name: 486b9c61be8c089639c66255bd9cecad925b0ea55ed54a47510381996d9047c1 --- dist/treebird20.css | 28 ++++++++++++++++++++++------ src/status.c | 1 + static/status.tmpl | 2 +- 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/dist/treebird20.css b/dist/treebird20.css index e802d2d..76ce478 100644 --- a/dist/treebird20.css +++ b/dist/treebird20.css @@ -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; } diff --git a/src/status.c b/src/status.c index 084f6fe..988edf0 100644 --- a/src/status.c +++ b/src/status.c @@ -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, diff --git a/static/status.tmpl b/static/status.tmpl index 9903cce..1161eda 100644 --- a/static/status.tmpl +++ b/static/status.tmpl @@ -1,7 +1,7 @@ {{ %s : notif_info }} -
+