Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALTTP: Updates to player-specific game tracker. #3133

Merged
merged 5 commits into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions WebHostLib/static/assets/lttp-tracker.js

This file was deleted.

75 changes: 0 additions & 75 deletions WebHostLib/static/styles/lttp-tracker.css

This file was deleted.

142 changes: 142 additions & 0 deletions WebHostLib/static/styles/tracker__ALinkToThePast.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');

.tracker-container {
width: 440px;
box-sizing: border-box;
font-family: "Lexend Deca", Arial, Helvetica, sans-serif;
border: 2px solid black;
border-radius: 4px;
resize: both;

background-color: #42b149;
color: white;
}

.hidden {
visibility: hidden;
}

/** Inventory Grid ****************************************************************************************************/
.inventory-grid {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
padding: 1rem;
gap: 1rem;
}

.inventory-grid .item {
position: relative;
display: flex;
justify-content: center;
height: 48px;
}

.inventory-grid .dual-item {
display: flex;
justify-content: center;
}

.inventory-grid .missing {
/* Missing items will be in full grayscale to signify "uncollected". */
filter: grayscale(100%) contrast(75%) brightness(75%);
}

.inventory-grid .item img,
.inventory-grid .dual-item img {
display: flex;
align-items: center;
text-align: center;
font-size: 0.8rem;
text-shadow: 0 1px 2px black;
font-weight: bold;
image-rendering: crisp-edges;
background-size: contain;
background-repeat: no-repeat;
}

.inventory-grid .dual-item img {
height: 48px;
margin: 0 -4px;
}

.inventory-grid .dual-item img:first-child {
align-self: flex-end;
}

.inventory-grid .item .quantity {
position: absolute;
bottom: 0;
right: 0;
text-align: right;
font-weight: 600;
font-size: 1.75rem;
line-height: 1.75rem;
text-shadow:
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
user-select: none;
}

/** Regions List ******************************************************************************************************/
.regions-list {
padding: 1rem;
}

.regions-list summary {
list-style: none;
display: flex;
gap: 0.5rem;
cursor: pointer;
}

.regions-list summary::before {
content: "⯈";
width: 1em;
flex-shrink: 0;
}

.regions-list details {
font-weight: 300;
}

.regions-list details[open] > summary::before {
content: "⯆";
}

.regions-list .region {
width: 100%;
display: grid;
grid-template-columns: 20fr 8fr 2fr 2fr;
align-items: center;
gap: 4px;
text-align: center;
font-weight: 300;
box-sizing: border-box;
}

.regions-list .region :first-child {
text-align: left;
font-weight: 500;
}

.regions-list .region.region-header {
margin-left: 24px;
width: calc(100% - 24px);
padding: 2px;
}

.regions-list .location-rows {
border-top: 1px solid white;
display: grid;
grid-template-columns: auto 32px;
font-weight: 300;
padding: 2px 8px;
margin-top: 4px;
font-size: 0.8rem;
}

.regions-list .location-rows :nth-child(even) {
text-align: right;
}
86 changes: 0 additions & 86 deletions WebHostLib/templates/lttpTracker.html

This file was deleted.

Loading
Loading