forked from FCCVienna/JavaScript-AI-Battle-Game
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBoard.css
More file actions
89 lines (70 loc) · 1.24 KB
/
Board.css
File metadata and controls
89 lines (70 loc) · 1.24 KB
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
.board {
margin: auto;
width: 600px;
height: 600px;
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: space-around;
align-items: center;
}
.boardTile {
border: 1px solid #aaa;
border-radius: 10px;
position: relative;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
width: 100px;
height: 100px;
}
.moveButton {
display: none;
cursor: pointer;
width: 0;
height: 0;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-bottom: 32px solid rgba(0, 0, 0, .6);
margin-left: -20px;
margin-top: -16px;
position: absolute;
background: none;
}
.boardTile:hover .moveButton {
display: block;
}
.boardTile .coordinates {
position: absolute;
font-family: monospace;
font-size: 12px;
top: 2px;
left: 2px;
}
.moveButton.chosen {
display: block;
border-bottom-color: rgba(0, 0, 0, .8);
}
.unitCount {
font-size: 1.7em;
}
.tileIcon {
position: absolute;
}
.tileIcon path, .tileIcon polygon {
stroke: rgba(0, 0, 0, .2);
fill: none;
}
.minorSpawn, .capturePoint {
transform: scale(1.5);
}
.minorSpawn polygon, .capturePoint polygon {
stroke-width: 2.7px;
}
.majorSpawn {
transform: scale(1.8);
}
.majorSpawn path {
stroke-width: 2.2px;
}