Merged the drops filters, better organization of colors and new custom checkbox

master
Wynd 2025-07-13 20:24:36 +03:00
parent abcc8e99db
commit fb7509ec14
8 changed files with 105 additions and 42 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "khguide" name = "khguide"
version = "1.3.0" version = "1.3.2"
edition = "2024" edition = "2024"
[dependencies] [dependencies]

View File

@ -1,7 +1,7 @@
name = "Wizard" name = "Wizard"
[[world]] [[world]]
name = "Holloween Town" name = "Halloween Town"
[[world]] [[world]]
name = "Traverse Town" name = "Traverse Town"

View File

@ -30,7 +30,7 @@ table {
margin-top: 10px; margin-top: 10px;
thead th { thead th {
background-color: #252525; background-color: var(--bg-dark-color);
} }
} }
@ -39,39 +39,34 @@ ul {
} }
a { a {
color: #00ff00; color: var(--link-color);
text-decoration: none; text-decoration: none;
&:hover { &:visited {
color: #9dff9d; color: var(--link-visited-color);
} }
&:visited { &:hover {
color: #00a200; color: var(--link-hover-color);
&:hover {
color: #65a565;
}
} }
} }
button { button {
margin-left: 16px; margin-left: 16px;
background: #444; background: var(--button-bg-color);
color: #fff; color: var(--text-color);
padding: 8px; padding: 8px;
border-color: #555; border-color: var(--button-border-color);
border-bottom-color: rgb(85, 85, 85);
border-style: groove; border-style: groove;
border-bottom-color: #0a0; border-bottom-color: var(--primary-color);
transition-duration: 0.1s; transition-duration: 0.1s;
&:hover { &:hover {
background: #4f4f4f; background: var(--button-hover-bg-color);
} }
&:active { &:active {
background: #3f3f3f; background: var(--button-active-bg-color);
transform: translateY(1px); transform: translateY(1px);
} }
@ -80,3 +75,42 @@ button {
cursor: not-allowed; cursor: not-allowed;
} }
} }
input[type="checkbox"] {
appearance: none;
position: relative;
cursor: pointer;
width: 24px;
height: 24px;
padding-top: 8px;
&::before {
position: absolute;
width: 100%;
height: 100%;
content: "";
background-color: var(--bg-dark-color);
border: 1px solid var(--button-border-color);
border-radius: 5px;
}
&:hover::before {
background-color: var(--bg-light-color);
}
&:checked::after {
position: absolute;
content: "\2713";
color: var(--primary-color);
font-size: 48px;
top: -10px;
left: -4px;
align-content: center;
text-align: center;
white-space: pre;
}
&:checked:hover::after {
color: var(--primary-light-color);
}
}

View File

@ -1,4 +1,18 @@
:root { :root {
--bg-color: #333; --bg-color: #333;
--bg-dark-color: #252525;
--bg-light-color: #545454;
--text-color: #fff; --text-color: #fff;
--link-color: #0f0;
--link-hover-color: #9dff9d;
--link-visited-color: #00a200;
--button-bg-color: #444;
--button-hover-bg-color: #4f4f4f;
--button-active-bg-color: #3f3f3f;
--button-border-color: #555;
--primary-color: #00aa00;
--primary-light-color: #60de60;
} }

View File

@ -85,3 +85,15 @@
} }
} }
} }
.material-filters {
display: flex;
flex-wrap: wrap;
width: 25%;
row-gap: 20px;
position: relative;
div {
flex-basis: 25%;
}
}

View File

@ -1,6 +1,30 @@
{% include "components/common/only-tracked-filter.html" %} <input
type="checkbox"
id="onlyTracked"
name="onlyTracked"
autocomplete="off"
value=""
/>
<label for="onlyTracked">Show only tracked</label>
<br /> <br />
{% include "components/common/kind-filters.html" %}
<div class="material-filters">
{% for kind in material_kinds %}
<div>
<input
type="checkbox"
id="{{ kind }}Filter"
name="kindFilter"
autocomplete="off"
value="{{ kind }}"
/>
<label for="{{ kind }}Filter">{{ kind|capitalize }}</label>
</div>
{#{% if loop.index0 == 6 %}
<br />
{% endif %}#}
{% endfor %}
</div>
<br /> <br />
{% for drop in drops %} {% for drop in drops %}

View File

@ -1,13 +0,0 @@
{% for kind in material_kinds %}
<input
type="checkbox"
id="{{ kind }}Filter"
name="kindFilter"
autocomplete="off"
value="{{ kind }}"
/>
<label for="{{ kind }}Filter">{{ kind|capitalize }}</label>
{% if loop.index0 == 6 %}
<br />
{% endif %}
{% endfor %}

View File

@ -1,8 +0,0 @@
<input
type="checkbox"
id="onlyTracked"
name="onlyTracked"
autocomplete="off"
value=""
/>
<label for="onlyTracked">Show only tracked</label>