diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-10-04 11:32:04 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-10-04 11:32:04 +0200 |
commit | 94a3dd52da3ae180af37c6fd0e8c24b3562da388 (patch) | |
tree | acced055660bfd65ca3e955ea26d412457ba4507 /public | |
parent | fa00b957378a393f8edbfc98ef111d35d18ecb09 (diff) |
initial commit 2
Diffstat (limited to 'public')
-rw-r--r-- | public/assets/style.css | 104 |
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; +} |