summaryrefslogtreecommitdiff
path: root/public/assets/style.css
blob: 8a40e43e69b429cab1fead870d19b1d5cd49b8a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
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;
}