fix
This commit is contained in:
parent
b398a378a4
commit
4f63f3a77b
9 changed files with 105 additions and 15 deletions
|
@ -1,7 +0,0 @@
|
|||
{% set coalCount = p.award_count("coal") * 1 if p.award_count("snow") < 10 else 10 %}
|
||||
|
||||
{% for i in range(coalCount) %}
|
||||
<div class="snowflake">
|
||||
<img src="/assets/christmas/images/coal.gif" width="40" height="40" alt="animated coal icon"/>
|
||||
</div>
|
||||
{% endfor %}
|
7
files/templates/awards/christmas/GingerMarsey.html
Normal file
7
files/templates/awards/christmas/GingerMarsey.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
{% set coalCount = p.award_count("coal") * 1 if p.award_count("snow") < 10 else 10 %}
|
||||
|
||||
{% for i in range(coalCount) %}
|
||||
<div class="snowflake pointer-events-none">
|
||||
<img src="/assets/christmas/images/GingerMarsey.png" width="40" height="40" alt="animated coal icon"/>
|
||||
</div>
|
||||
{% endfor %}
|
90
files/templates/awards/christmas/Sleighs.html
Normal file
90
files/templates/awards/christmas/Sleighs.html
Normal file
|
@ -0,0 +1,90 @@
|
|||
<!-- For use in Submission (threads) page only -->
|
||||
<!-- Include in /templates/submission/submission.html -->
|
||||
<!-- Requires `p` object -->
|
||||
|
||||
<img class="train1" src="/assets/images/emojis/marseytrain.webp">
|
||||
|
||||
{% if p.award_count("train") > 1 %}
|
||||
<img class="train2" src="/assets/images/emojis/marseytrain.webp">
|
||||
{% endif %}
|
||||
|
||||
{% if p.award_count("train") > 2 %}
|
||||
<img class="train3" src="/assets/images/emojis/marseytrain.webp">
|
||||
{% endif %}
|
||||
|
||||
{% if p.award_count("train") > 3 %}
|
||||
<img class="train4" src="/assets/images/emojis/marseytrain.webp">
|
||||
{% endif %}
|
||||
|
||||
<style>
|
||||
@keyframes train {
|
||||
0% {
|
||||
left: 0%;
|
||||
}
|
||||
100% {
|
||||
left: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes trainrev {
|
||||
0% {
|
||||
left: 100%;
|
||||
}
|
||||
100% {
|
||||
left: 0%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.train1 {
|
||||
position: fixed;
|
||||
z-index: 10;
|
||||
width: 35px;
|
||||
animation: train 3s linear infinite !important;
|
||||
}
|
||||
.train2 {
|
||||
display: none !important;
|
||||
}
|
||||
.train3 {
|
||||
display: none !important;
|
||||
}
|
||||
.train4 {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.train1 {
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
width: 100px;
|
||||
animation: trainrev 5s linear infinite !important;
|
||||
transform: scaleX(-1);
|
||||
-webkit-transform: scaleX(-1);
|
||||
top: 35%
|
||||
}
|
||||
.train2 {
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
width: 100px;
|
||||
animation: train 5s linear infinite !important;
|
||||
top: 10%
|
||||
}
|
||||
.train3 {
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
width: 100px;
|
||||
animation: train 5s linear infinite !important;
|
||||
top: 60%
|
||||
}
|
||||
.train4 {
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
width: 100px;
|
||||
animation: trainrev 5s linear infinite !important;
|
||||
transform: scaleX(-1);
|
||||
-webkit-transform: scaleX(-1);
|
||||
top: 85%
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -289,7 +289,7 @@
|
|||
|
||||
{% block modals %}
|
||||
<div class="frost"></div>
|
||||
{% include '/awards/Christmas/Snow.html' %}
|
||||
{% include '/awards/christmas/Snow.html' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
|
|
|
@ -96,7 +96,7 @@
|
|||
|
||||
</div>
|
||||
|
||||
{% include '/awards/Christmas/Snow.html' %}
|
||||
{% include '/awards/christmas/Snow.html' %}
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -145,7 +145,7 @@
|
|||
|
||||
{% block modals %}
|
||||
<div class="frost"></div>
|
||||
{% include '/awards/Christmas/Snow.html' %}
|
||||
{% include '/awards/christmas/Snow.html' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
|
|
|
@ -152,7 +152,7 @@
|
|||
|
||||
</div>
|
||||
|
||||
{% include '/awards/Christmas/Snow.html' %}
|
||||
{% include '/awards/christmas/Snow.html' %}
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!-- Train award -->
|
||||
{% if p.award_count("train") %}
|
||||
{% include "/awards/Trains.html" %}
|
||||
{% include "/awards/christmas/Sleighs.html" %}
|
||||
{% endif %}
|
||||
|
||||
<!-- Poop award -->
|
||||
|
@ -39,7 +39,7 @@
|
|||
|
||||
<!-- Snow award -->
|
||||
{% if p.award_count("snow") %}
|
||||
{% include "/awards/Christmas/Snow.html" %}
|
||||
{% include "/awards/christmas/Snow.html" %}
|
||||
{% if p.award_count("snow") > 4 %}
|
||||
<div class="frost"></div>
|
||||
{% endif %}
|
||||
|
@ -47,7 +47,7 @@
|
|||
|
||||
<!-- Ginger Marsey award -->
|
||||
{% if p.award_count("gingermarsey") %}
|
||||
{% include "/awards/Christmas/GingerMarsey.html" %}
|
||||
{% include "/awards/christmas/GingerMarsey.html" %}
|
||||
{% endif %}
|
||||
|
||||
<!-- Javascript -->
|
||||
|
|
|
@ -162,7 +162,7 @@
|
|||
{% block modals %}
|
||||
{% include "emoji_modal.html" %}
|
||||
{% include "gif_modal.html" %}
|
||||
{% include '/awards/Christmas/Snow.html' %}
|
||||
{% include '/awards/christmas/Snow.html' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue