awards: remove tilt award

This commit is contained in:
justcool393 2023-01-08 03:26:32 -06:00 committed by Ben Rog-Wilhelm
parent da03335cb5
commit 712a0ad631
3 changed files with 1 additions and 35 deletions

View file

@ -129,14 +129,6 @@ AWARDS = {
"color": "text-yellow",
"price": 300
},
"tilt": {
"kind": "tilt",
"title": "Tilt",
"description": "Tilts the post or comment",
"icon": "fas fa-car-tilt",
"color": "text-blue",
"price": 300
},
"glowie": {
"kind": "glowie",
"title": "Glowie",

View file

@ -336,7 +336,7 @@ def admin_userawards_post(v):
try: u = request.values.get("username").strip()
except: abort(404)
whitelist = ("shit", "fireflies", "train", "scooter", "wholesome", "tilt", "glowie")
whitelist = ("shit", "fireflies", "train", "scooter", "wholesome", "glowie")
u = get_user(u, graceful=False, v=v)

View file

@ -253,32 +253,6 @@
{% if c.is_banned and c.ban_reason %}
<div id="comment-banned-warning" class="comment-text text-removed mb-0">removed by @{{c.ban_reason}}</div>
{% endif %}
{% if c.award_count("tilt") %}
<style>
@keyframes c{{c.id}}-tilt {
0% {transform: rotate(0deg);}
25% {transform: rotate({{c.award_count("tilt")}}deg);}
75% {transform: rotate(-{{c.award_count("tilt")}}deg);}
100% {transform: rotate(0deg);}
}
@media (max-width: 720px) {
@keyframes c{{c.id}}-tilt {
0% {transform: rotate(0deg);}
25% {transform: rotate({{c.award_count("tilt")/4}}deg);}
75% {transform: rotate(-{{c.award_count("tilt")/4}}deg);}
100% {transform: rotate(0deg);}
}
}
.comment-{{c.id}}-only {
animation-name: c{{c.id}}-tilt !important;
animation-duration: 30s !important;
animation-iteration-count: infinite !important;
animation-direction: alternate !important;
animation-timing-function: linear !important;
}
</style>
{% endif %}
<div id="comment-text-{{c.id}}" class="comment-text mb-0">
{{c.realbody(v) | safe}}