forked from MarseyWorld/MarseyWorld
poor mode consistency
parent
e0c46a85fa
commit
ea830a01b2
|
@ -1,26 +0,0 @@
|
|||
.poor {
|
||||
position: fixed;
|
||||
background-repeat: no-repeat;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events:none;
|
||||
}
|
||||
|
||||
#fog-effect-poor {
|
||||
background-image: url(/assets/events/homoween/images/poor/fog.webp);
|
||||
background-size: cover;
|
||||
z-index: 9998;
|
||||
opacity:0.7;
|
||||
}
|
||||
|
||||
#stab-effect-poor {
|
||||
background-image: url(/assets/events/homoween/images/poor/blood.webp);
|
||||
z-index: 9997;
|
||||
}
|
||||
|
||||
#flashlight-effect-poor {
|
||||
background-image: url(/assets/events/homoween/images/poor/flashlight.webp);
|
||||
z-index: 9995;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
}
|
|
@ -251,7 +251,7 @@ class Post(Base):
|
|||
|
||||
@lazy
|
||||
def award_count(self, kind, v):
|
||||
if v and v.poor and kind not in FISTMAS_AWARDS + HOMOWEEN_AWARDS:
|
||||
if v and v.poor:
|
||||
return 0
|
||||
|
||||
if self.distinguish_level and SITE_NAME == 'WPD':
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
<link rel="stylesheet" href="{{'events/homoween/css/awards_poor.css' | asset}}">
|
||||
|
||||
{% if p.award_count("fog", v) %}
|
||||
<div id="fog-effect-poor" class="poor"></div>
|
||||
{% endif %}
|
||||
|
||||
{% if p.award_count("stab", v) %}
|
||||
<div id="stab-effect-poor" class="poor"></div>
|
||||
{% endif %}
|
||||
|
||||
{% if p.award_count("haunt", v) %}
|
||||
<link rel="stylesheet" href="{{'events/homoween/css/haunt_poor.css' | asset}}">
|
||||
{% endif %}
|
||||
|
||||
{% if p.award_count("flashlight", v) %}
|
||||
<div id="flashlight-effect-poor" class="poor"></div>
|
||||
{% endif %}
|
|
@ -15,14 +15,12 @@
|
|||
{% endif %}
|
||||
|
||||
{% block head_final %}
|
||||
{% include "awards.html" %}
|
||||
{% if IS_FISTMAS() %}
|
||||
{% include "events/fistmas/awards.html" %}
|
||||
{% elif IS_HOMOWEEN() %}
|
||||
{% if not (v and v.poor) %}
|
||||
{% if not (v and v.poor) %}
|
||||
{% include "awards.html" %}
|
||||
{% if IS_FISTMAS() %}
|
||||
{% include "events/fistmas/awards.html" %}
|
||||
{% elif IS_HOMOWEEN() %}
|
||||
{% include "events/homoween/awards.html" %}
|
||||
{% else %}
|
||||
{% include "events/homoween/awards_poor.html" %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue