From 94a3dd52da3ae180af37c6fd0e8c24b3562da388 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 4 Oct 2023 11:32:04 +0200 Subject: initial commit 2 --- public/assets/style.css | 104 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 public/assets/style.css (limited to 'public') 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; +} -- cgit v1.2.3