From b353693c89b5e2fdaa9b7d421eaae06e1f5ed493 Mon Sep 17 00:00:00 2001 From: Acamaeda Date: Tue, 29 Sep 2020 21:47:26 -0400 Subject: [PATCH] Added CSS styling for layer tabs --- index.html | 35 +++++++++++++++++------------------ js/layers.js | 5 ++++- sampleLayers.js | 6 +++++- 3 files changed, 26 insertions(+), 20 deletions(-) diff --git a/index.html b/index.html index bc18d1b..66e7609 100644 --- a/index.html +++ b/index.html @@ -130,28 +130,27 @@
-
+



- - -
You have {{formatWhole(tmp.layerAmt[layer])}} {{layers[layer].baseResource}}
-

- Your best {{layers[layer].resource}} is {{formatWhole(player[layer].best)}}
- You have made a total of {{formatWhole(player[layer].total)}} {{layers[layer].resource}}
- -

- - -

-
-
-


-
+
+ + +
You have {{formatWhole(tmp.layerAmt[layer])}} {{layers[layer].baseResource}}
+

+ Your best {{layers[layer].resource}} is {{formatWhole(player[layer].best)}}
+ You have made a total of {{formatWhole(player[layer].total)}} {{layers[layer].resource}}
+ +

+ + +

+
+
+
- -
+
diff --git a/js/layers.js b/js/layers.js index 70f1ce8..ae397ef 100644 --- a/js/layers.js +++ b/js/layers.js @@ -107,7 +107,10 @@ var layers = { {"color": "red", "font-size": "32px", "font-family": "Comic Sans MS"}], "blank", ["toggle", ["c", "beep"]], - "milestones", "blank", "blank", "upgrades"] + "milestones", "blank", "blank", "upgrades"], + style: { + 'background-color': 'blue' + }, }, f: { diff --git a/sampleLayers.js b/sampleLayers.js index 5d3c052..84d20c0 100644 --- a/sampleLayers.js +++ b/sampleLayers.js @@ -133,7 +133,11 @@ var layers = { {"color": "red", "font-size": "32px", "font-family": "Comic Sans MS"}], "blank", ["toggle", ["c", "beep"]], - "milestones", "blank", "blank", "upgrades"] }, + "milestones", "blank", "blank", "upgrades"] , + style: { + 'background-color': 'blue' + }, + }, f: { // This layer contains a more minimal set of things, besides a branch and "boop" startData() { return { unl: false,