forked from rDrama/rDrama
1
0
Fork 0

highlight current hole

master
Aevann 2024-02-06 04:33:45 +02:00
parent e9f80e9928
commit 7f99cbb84b
2 changed files with 18 additions and 36 deletions

View File

@ -7663,3 +7663,7 @@ blink {
font-weight: 700 !important; font-weight: 700 !important;
animation: 60s linear 0s infinite move-colors; animation: 60s linear 0s infinite move-colors;
} }
.active-hole {
background-color: var(--primary) !important;
}

View File

@ -72,29 +72,10 @@
<hr> <hr>
</div> </div>
<div class="sidebar-wpd--holes sidebar-wpd--holes--3"> <div class="sidebar-wpd--holes sidebar-wpd--holes--3">
<a href="/h/accident">Accident</a> {% set holes = ['Accident','Animal','Beating','Beheading','Bladed','Burning','Cartel','Combat','Compilation','Disaster','Drowning','Electricity','Execution','Explosions','Falling','Industrial','ISIS','Maiming','Police','Shooting','Suicide','Vehicle','Other'] %}
<a href="/h/animal">Animal</a> {% for name in holes %}
<a href="/h/beating">Beating</a> <a href="/h/{{name.lower()}}" {% if hole and hole.name == name.lower() %}class="active-hole"{% endif %}>{{name}}</a>
<a href="/h/beheading">Beheading</a> {% endfor %}
<a href="/h/bladed">Bladed</a>
<a href="/h/burning">Burning</a>
<a href="/h/cartel">Cartel</a>
<a href="/h/combat">Combat</a>
<a href="/h/compilation">Compilation</a>
<a href="/h/disaster">Disaster</a>
<a href="/h/drowning">Drowning</a>
<a href="/h/electricity">Electricity</a>
<a href="/h/execution">Execution</a>
<a href="/h/explosions">Explosions</a>
<a href="/h/falling">Falling</a>
<a href="/h/industrial">Industrial</a>
<a href="/h/isis">ISIS</a>
<a href="/h/maiming">Maiming</a>
<a href="/h/police">Police</a>
<a href="/h/shooting">Shooting</a>
<a href="/h/suicide">Suicide</a>
<a href="/h/vehicle">Vehicle</a>
<a href="/h/other">Other</a>
</div> </div>
<div class="hr-title mt-3"> <div class="hr-title mt-3">
@ -103,12 +84,10 @@
<hr> <hr>
</div> </div>
<div class="sidebar-wpd--holes sidebar-wpd--holes--3"> <div class="sidebar-wpd--holes sidebar-wpd--holes--3">
<a href="/h/aftermath">Aftermath</a> {% set holes = ['Aftermath','Fights','Gore','Medical','Request','Self-Harm'] %}
<a href="/h/fights">Fights</a> {% for name in holes %}
<a href="/h/gore">Gore</a> <a href="/h/{{name.lower()}}" {% if hole and hole.name == name.lower() %}class="active-hole"{% endif %}>{{name}}</a>
<a href="/h/medical">Medical</a> {% endfor %}
<a href="/h/request">Request</a>
<a href="/h/selfharm">Self-Harm</a>
</div> </div>
<div class="hr-title mt-3"> <div class="hr-title mt-3">
@ -117,11 +96,10 @@
<hr> <hr>
</div> </div>
<div class="sidebar-wpd--holes sidebar-wpd--holes--3"> <div class="sidebar-wpd--holes sidebar-wpd--holes--3">
<a href="/h/discussion">Discussion</a> {% set holes = ['Discussion','Meta','Music','Pets','Social'] %}
<a href="/h/meta">Meta</a> {% for name in holes %}
<a href="/h/music">Music</a> <a href="/h/{{name.lower()}}" {% if hole and hole.name == name.lower() %}class="active-hole"{% endif %}>{{name}}</a>
<a href="/h/pets">Pets</a> {% endfor %}
<a href="/h/social">Social</a>
</div> </div>
<div class="hr-title mt-3"> <div class="hr-title mt-3">
@ -130,13 +108,13 @@
<hr> <hr>
</div> </div>
<div class="sidebar-wpd--holes sidebar-wpd--holes--1 mb-3"> <div class="sidebar-wpd--holes sidebar-wpd--holes--1 mb-3">
<a href="/h/slavshit"> <a href="/h/slavshit" {% if hole and hole.name == 'slavshit' %}class="active-hole"{% endif %}>
<img loading="lazy" class="emoji" src="{{SITE_FULL_IMAGES}}/e/marseyflagukraine.webp"> <img loading="lazy" class="emoji" src="{{SITE_FULL_IMAGES}}/e/marseyflagukraine.webp">
Slavshit Slavshit
<img loading="lazy" class="emoji mirrored" src="{{SITE_FULL_IMAGES}}/e/marseyflagrussia.webp"> <img loading="lazy" class="emoji mirrored" src="{{SITE_FULL_IMAGES}}/e/marseyflagrussia.webp">
</a> </a>
<a href="/h/sandshit"> <a href="/h/sandshit" {% if hole and hole.name == 'slavshit' %}class="active-hole"{% endif %}>
<img loading="lazy" class="emoji" src="{{SITE_FULL_IMAGES}}/e/marseyflagpalestine.webp"> <img loading="lazy" class="emoji" src="{{SITE_FULL_IMAGES}}/e/marseyflagpalestine.webp">
Sandshit Sandshit
<img loading="lazy" class="emoji mirrored" src="{{SITE_FULL_IMAGES}}/e/marseyisrael.webp"> <img loading="lazy" class="emoji mirrored" src="{{SITE_FULL_IMAGES}}/e/marseyisrael.webp">