Skip to content

Instantly share code, notes, and snippets.

@YPetremann
Last active March 24, 2024 23:29
Show Gist options
  • Save YPetremann/bb126a65b065be4481eb3588395f8ab3 to your computer and use it in GitHub Desktop.
Save YPetremann/bb126a65b065be4481eb3588395f8ab3 to your computer and use it in GitHub Desktop.
Compact Shops mod for Sixty Four

Compact Shop

This is a mod that make the shop even more compact when you use the compact shop button

Follow modding instruction on Sixty Four wiki

label = 'Compact Shop';
description = ' Make the shop even more compact when you use the compact shop button';
(function () {
let c = typeof configuration === 'object' ? configuration : {};
if (!c?.enabled) return;
document.head.appendChild(document.createElement("style")).innerText = `
.shop.minimized .shopItem {
padding: 0.4em 0.6em;
min-height: 89px;
}
.shop.minimized .shopItem .imageVessel {
position: absolute;
top: 0.4em;
opacity: 25%;
}
.shop.minimized .shopItem .itemPrice {
display: flex;
flex-direction: row;
}
.shop.minimized .shopItem .itemPrice > * {
display: flex;
flex-direction: column;
align-items: center;
}
.shop.minimized .shopItem .itemPrice .priceString {
writing-mode: vertical-rl;
text-orientation: mixed;
text-shadow: 0 0 5px white;
margin: 13px 0 0;
position: relative;
z-index: 1;
}
.shop.minimized .shopItem .itemHeader {
position: relative;
z-index: 1;
}
.shop.minimized .shopItem .existed {
opacity: 0;
}
.shop.minimized .shopItem.newItem {
box-shadow: 0 0 30px inset #ffe978;
}
.shop.minimized .shopItem.disabled {
opacity: 100%;
-webkit-filter: brightness(66%);
filter: brightness(66%);
}
`;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment