mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-14 18:58:11 +02:00
Fixed styling error in garden page, and adjusted pricing on new gardens.
This commit is contained in:
1 parent
d72045d615
commit
a385ee20bd
4 files changed
+20
-6
No files matched your search
+4
-1
@@ -111,7 +111,10 @@ $PageSection = "Garden";
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="GardenLayout">
|
<div class="GardenLayout">
|
||||||
<section id="Plots">
|
<section
|
||||||
|
id="Plots"
|
||||||
|
class="Panel GardenPlotsPanel"
|
||||||
|
>
|
||||||
<h2>Plots</h2>
|
<h2>Plots</h2>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -545,6 +545,11 @@ function RenderGarden() {
|
|||||||
"GardenGrid"
|
"GardenGrid"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const GardenPanel =
|
||||||
|
document.getElementById(
|
||||||
|
"Plots"
|
||||||
|
);
|
||||||
|
|
||||||
GardenGrid.style.setProperty(
|
GardenGrid.style.setProperty(
|
||||||
"--GardenWidth",
|
"--GardenWidth",
|
||||||
GameSave.Garden.Width
|
GameSave.Garden.Width
|
||||||
@@ -561,7 +566,7 @@ function RenderGarden() {
|
|||||||
"var(--Green)"
|
"var(--Green)"
|
||||||
];
|
];
|
||||||
|
|
||||||
GardenGrid.style.setProperty(
|
GardenPanel.style.setProperty(
|
||||||
"--GardenBorderColour",
|
"--GardenBorderColour",
|
||||||
GardenBorderColours[
|
GardenBorderColours[
|
||||||
GameSave.ActiveGardenIndex %
|
GameSave.ActiveGardenIndex %
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ const GardenExpansionBaseCost = 1000;
|
|||||||
const PlantInformationUpgradeCost = 500;
|
const PlantInformationUpgradeCost = 500;
|
||||||
const GardenOverviewUpgradeCost = 1000;
|
const GardenOverviewUpgradeCost = 1000;
|
||||||
const MutationHintsUpgradeCost = 1500;
|
const MutationHintsUpgradeCost = 1500;
|
||||||
const NewGardenBaseCost = 30000;
|
const NewGardenBaseCost = 15000;
|
||||||
const NewGardenCostMultiplier = 1.5;
|
const NewGardenCostMultiplier = 1.5;
|
||||||
const NewGardenCostRounding = 1000;
|
const NewGardenCostRounding = 1000;
|
||||||
|
|
||||||
|
|||||||
+9
-3
@@ -359,14 +359,20 @@ input, button, textarea, select {
|
|||||||
align-items: start;
|
align-items: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.GardenPlotsPanel {
|
||||||
|
padding: 0.75rem;
|
||||||
|
border-color: var(--GardenBorderColour, var(--Lavender));
|
||||||
|
}
|
||||||
|
|
||||||
|
.GardenPlotsPanel h2 {
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
.GardenGrid {
|
.GardenGrid {
|
||||||
--GardenWidth: 3;
|
--GardenWidth: 3;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat( var(--GardenWidth), minmax(0, 1fr) );
|
grid-template-columns: repeat( var(--GardenWidth), minmax(0, 1fr) );
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
padding: 0.75rem;
|
|
||||||
background-color: var(--Mantle);
|
|
||||||
border: 4px solid var(--GardenBorderColour, var(--Lavender));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.GardenPlot {
|
.GardenPlot {
|
||||||
|
|||||||
Reference in new issue
Block a user