summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/assets/style.css104
1 files changed, 104 insertions, 0 deletions
diff --git a/public/assets/style.css b/public/assets/style.css
new file mode 100644
index 0000000..8a40e43
--- /dev/null
+++ b/public/assets/style.css
@@ -0,0 +1,104 @@
+body {
+ background-color: #ecf1ef;
+ color: #000;
+}
+
+
+.wrap {
+ max-width: 1200px;
+ margin: 0 auto;
+}
+
+
+button, input[type="submit"] {
+ background-color: #1e362e;
+ color: #fff;
+ border: none;
+ padding: 0.25rem 0.75rem;
+}
+
+button:hover:not(:disabled), input[type="submit"]:hover:not(:disabled) {
+ background-color: #000;
+}
+
+button:disabled, input[type="submit"]:disabled {
+ color: #606060;
+}
+
+
+
+/* Icons */
+
+.icon {
+ display: inline-block;
+ width: 1em;
+ height: 1em;
+
+ background-repeat: no-repeat;
+ background-size: contain;
+ background-position: center;
+}
+
+.icon-wood {
+ background-image: url("/assets/img/icons/1FAB5.svg");
+}
+
+.icon-clay {
+ background-image: url("/assets/img/icons/1F9F1.svg");
+}
+
+.icon-iron {
+ background-image: url("/assets/img/icons/1F944.svg");
+}
+
+.icon-food {
+ background-image: url("/assets/img/icons/1F954.svg");
+}
+
+.icon-per-increment {
+ background-image: url("/assets/img/icons/1F504.svg");
+}
+
+.icon-storage {
+ background-image: url("/assets/img/icons/1F4E5.svg");
+}
+
+
+/* Village */
+
+.resources {
+ display: grid;
+ grid-template-columns: 2fr 2fr 2fr 2fr 1fr;
+}
+
+.resources > div {
+ padding: 0.25rem;
+ border: 1px solid #000;
+
+ display: flex;
+ align-items: center;
+}
+
+.resources > div > *:not(:first-child) {
+ margin-left: 0.25rem;
+}
+
+.resources .icon {
+ font-size: 1.25em;
+}
+
+
+
+/* Map */
+
+.map__villages {
+ --map-range: 1;
+
+ display: grid;
+}
+
+.map__village {
+ border: 1px solid #000;
+ min-width: 1rem;
+ min-height: 1rem;
+}