-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
144 lines (119 loc) · 2.27 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
* {
transition: all 0.2s;
}
.players,
.controls,
.history {
width: 90%;
margin: 2em auto;
padding: 32px 16px;
box-sizing: border-box;
display: flex;
box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
}
.players {
justify-content: space-around;
flex-wrap: wrap;
}
.players .player {
margin: 8px;
}
.player .name {
text-transform: uppercase;
color: #555;
text-align: center;
}
.player .health {
width: 400px;
height: 40px;
background-color: #bbb;
border-radius: 2px;
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
position: relative;
}
.health .currentHealth {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 100%;
background-color: #4CAF50;
transition: width 500ms ease-out;
}
.health .healthCounter {
color: #fff;
z-index: 10;
position: absolute;
top: 50%;
left: 10px;
transform: translateY(-50%);
}
.controls {
justify-content: center;
flex-wrap: wrap;
padding-top: 4px;
padding-bottom: 4px;
}
.controls .btn {
margin: 4px 8px;
padding: 8px 16px;
text-align: center;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 1.2em;
cursor: pointer;
color: white;
}
.controls .btn:hover {
box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.5);
transform: translateY(-1px);
}
.controls .btn:hover:active {
transform: translateY(1px);
box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.5);
}
.btn.start {
background-color: teal;
}
.btn.atack {
background-color: #F44336;
}
.btn.special {
background-color: #3F51B5;
}
.btn.health {
background-color: #4CAF50;
}
.btn.giveup {
background-color: #9E9E9E;
}
.history {
flex-direction: column;
}
.history .result {
display: flex;
justify-content: center;
align-items: center;
height: 40px;
padding-bottom: 32px;
margin-bottom: 32px;
border-bottom: 1px solid #ccc;
text-transform: uppercase;
font-size: 1.4em;
color: #555;
}
.history .historyItem {
padding: 8px 16px;
font-size: 1.2em;
text-transform: uppercase;
text-align: center;
margin: 2px 0;
}
.history .you {
background-color: #40C4FF;
color: #01579B;
}
.history .monster {
background-color: #FF5252;
color: #B71C1C;
}