mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-14 10:48:12 +02:00
Added shop, inventory, fixed plant and mutation definitions, and more..
This commit is contained in:
1 parent
cd2759ce4e
commit
97204f2d3f
15 files changed
+2510
-351
No files matched your search
@@ -1060,3 +1060,237 @@ select {
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
.SeedEmpty {
|
||||
margin: 0;
|
||||
|
||||
color: var(--Subtext1);
|
||||
}
|
||||
|
||||
.GardenPlantMissing {
|
||||
display: flex;
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0.35rem;
|
||||
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
color: var(--Subtext1);
|
||||
|
||||
font-size: 0.75rem;
|
||||
line-height: 1.1;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.ShopStatus {
|
||||
margin-bottom: 1.5rem;
|
||||
padding: 0.75rem 1rem;
|
||||
|
||||
background-color: var(--Mantle);
|
||||
border: 3px solid var(--Surface2);
|
||||
}
|
||||
|
||||
.ShopSection {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.ShopSeedList {
|
||||
display: grid;
|
||||
grid-template-columns:
|
||||
repeat(
|
||||
auto-fit,
|
||||
minmax(15rem, 1fr)
|
||||
);
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.ShopItem {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
|
||||
padding: 0.75rem;
|
||||
|
||||
background-color: var(--Mantle);
|
||||
border: 4px solid var(--Mauve);
|
||||
|
||||
box-shadow:
|
||||
3px 3px 0
|
||||
var(--Crust);
|
||||
}
|
||||
|
||||
.ShopItemHeader {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
|
||||
align-items: baseline;
|
||||
|
||||
padding-bottom: 0.5rem;
|
||||
|
||||
border-bottom:
|
||||
3px solid
|
||||
var(--Surface2);
|
||||
}
|
||||
|
||||
.ShopItemHeader h3 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.ShopItemNumber {
|
||||
color: var(--Overlay2);
|
||||
}
|
||||
|
||||
.ShopItemBody {
|
||||
display: grid;
|
||||
grid-template-columns: 5rem minmax(0, 1fr);
|
||||
gap: 0.75rem;
|
||||
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.ShopPlantVisual {
|
||||
display: flex;
|
||||
|
||||
width: 5rem;
|
||||
height: 5rem;
|
||||
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
background-color: var(--Base);
|
||||
border: 3px solid var(--Surface2);
|
||||
}
|
||||
|
||||
.ShopPlantImage {
|
||||
display: block;
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
object-fit: contain;
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
|
||||
.ShopPlantMissing {
|
||||
padding: 0.35rem;
|
||||
|
||||
color: var(--Overlay1);
|
||||
|
||||
font-size: 0.75rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.ShopItemDetails p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.ShopStat {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
|
||||
.ShopStatName {
|
||||
color: var(--Subtext1);
|
||||
}
|
||||
|
||||
.ShopBuyButton {
|
||||
width: 100%;
|
||||
padding: 0.65rem 0.8rem;
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
color: var(--Text);
|
||||
background-color: var(--Surface0);
|
||||
|
||||
border: 3px solid var(--Surface2);
|
||||
border-radius: 0;
|
||||
|
||||
box-shadow:
|
||||
3px 3px 0
|
||||
var(--Crust);
|
||||
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
.ShopBuyButton:hover:not(:disabled) {
|
||||
color: var(--Green);
|
||||
background-color: var(--Surface1);
|
||||
|
||||
border-color: var(--Green);
|
||||
|
||||
transform: translate(1px, 1px);
|
||||
|
||||
box-shadow:
|
||||
2px 2px 0
|
||||
var(--Crust);
|
||||
}
|
||||
|
||||
.ShopBuyButton:active:not(:disabled) {
|
||||
transform: translate(2px, 2px);
|
||||
|
||||
box-shadow:
|
||||
1px 1px 0
|
||||
var(--Crust);
|
||||
}
|
||||
|
||||
.ShopBuyButton:focus-visible {
|
||||
outline: 3px solid var(--Yellow);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.ShopBuyButton:disabled {
|
||||
cursor: not-allowed;
|
||||
|
||||
color: var(--Overlay1);
|
||||
background-color: var(--Surface0);
|
||||
|
||||
border-color: var(--Surface1);
|
||||
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.ShopEmpty {
|
||||
margin: 0;
|
||||
padding: 1rem;
|
||||
|
||||
color: var(--Subtext1);
|
||||
background-color: var(--Mantle);
|
||||
|
||||
border: 3px solid var(--Surface2);
|
||||
}
|
||||
|
||||
#ShopMessage {
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 0;
|
||||
padding: 0.75rem;
|
||||
|
||||
color: var(--Subtext1);
|
||||
background-color: var(--Mantle);
|
||||
|
||||
border-left:
|
||||
4px solid
|
||||
var(--Blue);
|
||||
}
|
||||
|
||||
@media (max-width: 700px) {
|
||||
.ShopSeedList {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.ShopItemBody {
|
||||
grid-template-columns: 4.5rem minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.ShopPlantVisual {
|
||||
width: 4.5rem;
|
||||
height: 4.5rem;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user