forked from gdljs/clashjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
123 lines (111 loc) · 1.8 KB
/
styles.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
* {
position: relative;
margin: 0;
padding: 0;
}
body {
background: url('static/bg.jpg') no-repeat center #2C3E50;
background-size: cover;
color: #fff;
font: 1em/1.618 Graphik, sans-serif;
font-weight: 200;
width: 100vw;
height: 100vh;
overflow: hidden;
}
b {
font-weight: 500;
}
.instructions {
position: fixed;
font-size: .8em;
bottom: 0;
left: 0;
padding: 1em;
color: #eee;
}
.instructions a {
color: #fff;
}
.clash {
width: 100vmin;
height: 100vmin;
margin: 0 auto;
background: rgba(255, 255, 255, .03);
}
.clash-tile {
display: inline-block;
}
.clash-tile:nth-child(odd) {
background: rgba(255, 255, 255, .03);
}
.clash-ammo {
position: absolute;
background: url('static/star.png') no-repeat center / 90%;
}
.clash-ammo:hover {
transform: rotate(360deg);
}
.clash-player {
position: absolute;
top: 0;
left: 0;
background-size: contain;
background-position: center;
background-repeat: no-repeat;
transition: transform .3s;
}
.clash-player-container {
position: absolute;
top: 0;
left: 0;
transition: transform .4s;
}
.clash-player-name {
top: -2em;
text-align: center;
}
.clash-shoot {
position: absolute;
width: 100em;
transform-origin: center left;
}
.clash-layer {
position: absolute;
top: 0;
left: 0;
width: 100vmin;
height: 100vmin;
}
.stats {
position: fixed;
top: 0;
right: 0;
padding: 1em;
}
.animation-shot {
animation: shotKeyFrame .3s;
}
@keyframes shotKeyFrame {
0% {
background: #f00;
margin-top: -.05em;
height: .1em;
}
100% {
background: #ff0;
height: .7em;
margin-top: -.35em;
}
}
.animation-glow {
animation: glowKeyFrame 1s infinite alternate;
}
@keyframes glowKeyFrame {
0% {
-webkit-filter: saturate(0);
}
100% {
-webkit-filter: saturate(1);
}
}