board-game-engine-react 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/board-game-engine-react.css +140 -0
- package/dist/board-game-engine-react.js +5798 -5812
- package/dist/board-game-engine-react.min.css +1 -1
- package/dist/board-game-engine-react.min.js +12 -12
- package/package.json +1 -1
- package/rollup.config.js +3 -4
- package/src/styles.scss +166 -0
|
@@ -1,2 +1,142 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
html, body, #storybook-root, .story {
|
|
2
3
|
height: 100%; }
|
|
4
|
+
|
|
5
|
+
.button {
|
|
6
|
+
border: 3px solid var(--dark-amethyst);
|
|
7
|
+
display: inline-block;
|
|
8
|
+
padding: .5em;
|
|
9
|
+
font-size: 1.5em;
|
|
10
|
+
font-family: inherit;
|
|
11
|
+
text-decoration: none;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
border-radius: .3em;
|
|
14
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
|
|
15
|
+
margin: .5em; }
|
|
16
|
+
|
|
17
|
+
.button--style-b {
|
|
18
|
+
background-color: var(--dark-amethyst);
|
|
19
|
+
color: white; }
|
|
20
|
+
|
|
21
|
+
.button--style-c {
|
|
22
|
+
background-color: var(--lipstick-red);
|
|
23
|
+
color: white; }
|
|
24
|
+
|
|
25
|
+
.button--x-small {
|
|
26
|
+
font-size: .9em;
|
|
27
|
+
padding: .3em .5em;
|
|
28
|
+
border-radius: .2em; }
|
|
29
|
+
|
|
30
|
+
.game {
|
|
31
|
+
color: black; }
|
|
32
|
+
|
|
33
|
+
.shared-board, .personal-board {
|
|
34
|
+
padding: 1em 0;
|
|
35
|
+
border-bottom: 1px solid white; }
|
|
36
|
+
|
|
37
|
+
.grid {
|
|
38
|
+
border: 1px solid black;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
background-color: #333;
|
|
41
|
+
max-width: 500px; }
|
|
42
|
+
|
|
43
|
+
.grid__cell {
|
|
44
|
+
border: 1px solid black;
|
|
45
|
+
background-color: #fff;
|
|
46
|
+
aspect-ratio: 1;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
color: #666;
|
|
51
|
+
position: relative;
|
|
52
|
+
overflow: auto; }
|
|
53
|
+
|
|
54
|
+
.grid__cell .space {
|
|
55
|
+
height: 100%;
|
|
56
|
+
width: 100%; }
|
|
57
|
+
|
|
58
|
+
.space {
|
|
59
|
+
box-sizing: border-box;
|
|
60
|
+
min-width: 10px;
|
|
61
|
+
min-height: 10px; }
|
|
62
|
+
|
|
63
|
+
.space:not(:has(.entity)):not(.grid__cell > :only-child) {
|
|
64
|
+
border: 1px solid grey; }
|
|
65
|
+
|
|
66
|
+
.space--clickable {
|
|
67
|
+
background-color: rgba(144, 238, 144, 0.4); }
|
|
68
|
+
|
|
69
|
+
.space--targeted {
|
|
70
|
+
background-color: grey; }
|
|
71
|
+
|
|
72
|
+
.space__entity-grid {
|
|
73
|
+
box-sizing: border-box;
|
|
74
|
+
align-items: center;
|
|
75
|
+
justify-content: center; }
|
|
76
|
+
|
|
77
|
+
.space__entity-grid__cell {
|
|
78
|
+
box-sizing: border-box;
|
|
79
|
+
overflow: auto; }
|
|
80
|
+
|
|
81
|
+
.entity {
|
|
82
|
+
padding: .2em;
|
|
83
|
+
min-height: 20px;
|
|
84
|
+
min-width: 20px;
|
|
85
|
+
box-sizing: border-box;
|
|
86
|
+
border: 1px solid black;
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
font-size: .5em;
|
|
89
|
+
font-family: "Nunito", sans-serif;
|
|
90
|
+
font-weight: bold;
|
|
91
|
+
display: inline-block; }
|
|
92
|
+
|
|
93
|
+
.entity.player-0 {
|
|
94
|
+
background-color: pink; }
|
|
95
|
+
|
|
96
|
+
.entity--clickable {
|
|
97
|
+
background-color: rgba(144, 238, 144, 0.4); }
|
|
98
|
+
|
|
99
|
+
.entity.player-0.entity--clickable {
|
|
100
|
+
background-color: #f0e0d8; }
|
|
101
|
+
|
|
102
|
+
.entity.player-1 {
|
|
103
|
+
background-color: lightblue; }
|
|
104
|
+
|
|
105
|
+
.entity.player-1.entity--clickable {
|
|
106
|
+
background-color: paleturquoise; }
|
|
107
|
+
|
|
108
|
+
.debug-panel .pane {
|
|
109
|
+
max-width: 420px !important; }
|
|
110
|
+
|
|
111
|
+
.game-status {
|
|
112
|
+
position: absolute;
|
|
113
|
+
top: 50%;
|
|
114
|
+
left: 0;
|
|
115
|
+
transform: translateY(-50%);
|
|
116
|
+
width: 100%;
|
|
117
|
+
border-top: 1em;
|
|
118
|
+
border-bottom: 1em;
|
|
119
|
+
padding: 1em;
|
|
120
|
+
background-color: var(--dark-orange);
|
|
121
|
+
color: black;
|
|
122
|
+
box-sizing: border-box;
|
|
123
|
+
font-size: 3em; }
|
|
124
|
+
|
|
125
|
+
.debug-panel .visibility-toggle {
|
|
126
|
+
top: 70px !important; }
|
|
127
|
+
|
|
128
|
+
.debug-panel .visibility-toggle svg {
|
|
129
|
+
display: none; }
|
|
130
|
+
|
|
131
|
+
.debug-panel .visibility-toggle .icon::after {
|
|
132
|
+
position: relative;
|
|
133
|
+
left: 3px;
|
|
134
|
+
content: "⚙️";
|
|
135
|
+
font-size: 20px;
|
|
136
|
+
display: block;
|
|
137
|
+
width: 20px;
|
|
138
|
+
height: 20px; }
|
|
139
|
+
|
|
140
|
+
.debug-panel .menu {
|
|
141
|
+
position: relative;
|
|
142
|
+
top: 70px !important; }
|