-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
194 lines (171 loc) · 3.54 KB
/
style.css
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
:root {
--bloodcolor: rgb(250, 20, 60);
--bloodcoloralpha: rgb(250, 20, 60, 0.8);
--target-bless: deepskyblue;
--army-size: 12;
/*image-rendering: pixelated;*/
}
@keyframes blink {
50% {
opacity: 0.5;
}
}
@keyframes glow-red {
from {
box-shadow: 0 0 5px 1px var(--bloodcolor);
}
to {
box-shadow: 0 0 20px 2px var(--bloodcolor);
}
}
@keyframes glow-blue {
from {
box-shadow: 0 0 5px 1px var(--target-bless);
}
to {
box-shadow: 0 0 20px 2px var(--target-bless);
}
}
@keyframes project {
from {
translate: 0px 0px;
opacity: 0;
}
5% {
opacity: 1;
}
95% {
opacity: 1;
}
to {
translate: var(--x) var(--y);
opacity: 0;
}
}
.target-shot img {
box-shadow: 0 0 5px var(--bloodcolor);
animation: glow-red 1s ease-in-out infinite alternate;
}
.target-bless img {
box-shadow: 0 0 5px var(--target-bless);
animation: glow-blue 1s ease-in-out infinite alternate;
}
.dtgrid {
max-width: 100vw;
max-height: 100vh;
display: grid;
gap: 20px;
grid-template-columns: repeat(6, 1fr);
grid-template-rows: repeat(4, 1fr);
margin: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
user-select: none;
overflow: auto;
padding-bottom: 10px;
}
.card .icon {
margin-bottom: 5px;
margin-right: 2px;
min-width: 100%;
height: auto;
}
.card {
min-inline-size: max-content;
background-color: thistle;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
font-family: monospace;
text-align: left;
line-height: 1.2em;
transform-style: preserve-3d;
transition: 0.5s;
background-color: #fff;
background-position: 0 90%;
background-repeat: repeat no-repeat;
background-size: 4px 3px;
/*border-radius: 15px 225px 255px 15px 15px 255px 225px 15px;*/
border-style: solid;
border-width: 2px;
box-shadow: rgba(0, 0, 0, .2) 15px 28px 25px -18px;
box-sizing: border-box;
color: #41403e;
cursor: pointer;
font-family: Neucha, sans-serif;
font-size: 1rem;
outline: none;
padding: .70rem;
text-decoration: none;
transition: all 235ms ease-in-out;
border-bottom-left-radius: 15px 255px;
border-bottom-right-radius: 225px 15px;
border-top-left-radius: 255px 15px;
border-top-right-radius: 15px 225px;
user-select: none;
-webkit-user-select: none;
touch-action: manipulation;
}
.card-front {
backface-visibility: hidden;
}
.card-back {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
transform: rotateY(180deg);
opacity: 1;
backface-visibility: hidden;
}
.flipped:not(.activeunit) {
transform: rotateY(180deg);
}
.card > * {
pointer-events: none;
}
.card .stats, .card .descr {
padding-left: 6px;
padding-right: 6px;
padding-bottom: 6px;
white-space: normal;
height: 100%;
/*text-overflow: ellipsis;*/
overflow: hidden;
}
.activeunit:not(.emptyslot) {
animation: blink 1s linear infinite;
}
.aliveunit {
opacity: 1;
}
.emptyslot {
border: none;
opacity: 0;
transition: 0.2s;
}
.target-move:hover {
opacity: 1;
}
.target-move * {
opacity: 0;
}
.projectile {
opacity: 1;
--x: 0;
--y: 0;
--timeout: 100;
pointer-events: none;
position: absolute;
width: 64px;
height: auto;
animation-name: project;
z-index: 1000;
animation-duration: var(--timeout);
animation-timing-function: linear;
animation-fill-mode: forwards;
}
.poisoned {
filter: hue-rotate(90deg);
}