commit | author | age
|
14370b
|
1 |
* { |
CM |
2 |
box-sizing: border-box; |
|
3 |
} |
|
4 |
|
|
5 |
html { |
|
6 |
font-family: 'Jost', sans-serif; |
|
7 |
} |
|
8 |
|
|
9 |
body { |
|
10 |
margin: 0; |
|
11 |
} |
|
12 |
|
|
13 |
header { |
|
14 |
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26); |
|
15 |
padding: 0.5rem; |
|
16 |
background-color: #880017; |
|
17 |
color: white; |
|
18 |
text-align: center; |
|
19 |
margin-bottom: 2rem; |
|
20 |
} |
|
21 |
|
|
22 |
section { |
|
23 |
width: 90%; |
|
24 |
max-width: 40rem; |
|
25 |
margin: auto; |
|
26 |
} |
|
27 |
|
|
28 |
.healthbar { |
|
29 |
width: 100%; |
|
30 |
height: 40px; |
|
31 |
border: 1px solid #575757; |
|
32 |
margin: 1rem 0; |
|
33 |
background: #fde5e5; |
|
34 |
} |
|
35 |
|
|
36 |
.healthbar__value { |
|
37 |
background-color: #00a876; |
|
38 |
width: 100%; |
|
39 |
height: 100%; |
|
40 |
} |
|
41 |
|
|
42 |
.container { |
|
43 |
text-align: center; |
|
44 |
padding: 0.5rem; |
|
45 |
margin: 1rem auto; |
|
46 |
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26); |
|
47 |
border-radius: 12px; |
|
48 |
} |
|
49 |
|
|
50 |
#monster h2, |
|
51 |
#player h2 { |
|
52 |
margin: 0.25rem; |
|
53 |
} |
|
54 |
|
|
55 |
#controls { |
|
56 |
display: flex; |
|
57 |
flex-direction: row; |
|
58 |
flex-wrap: wrap; |
|
59 |
align-items: center; |
|
60 |
justify-content: center; |
|
61 |
} |
|
62 |
|
|
63 |
button { |
|
64 |
font: inherit; |
|
65 |
border: 1px solid #88005b; |
|
66 |
background-color: #88005b; |
|
67 |
color: white; |
|
68 |
padding: 1rem 2rem; |
|
69 |
border-radius: 12px; |
|
70 |
margin: 1rem; |
|
71 |
width: 12rem; |
|
72 |
cursor: pointer; |
|
73 |
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.26); |
|
74 |
} |
|
75 |
|
|
76 |
button:focus { |
|
77 |
outline: none; |
|
78 |
} |
|
79 |
|
|
80 |
button:hover, |
|
81 |
button:active { |
|
82 |
background-color: #af0a78; |
|
83 |
border-color: #af0a78; |
|
84 |
box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.26); |
|
85 |
} |
|
86 |
|
|
87 |
button:disabled { |
|
88 |
background-color: #ccc; |
|
89 |
border-color: #ccc; |
|
90 |
box-shadow: none; |
|
91 |
color: #3f3f3f; |
|
92 |
cursor: not-allowed; |
|
93 |
} |
|
94 |
|
|
95 |
#log ul { |
|
96 |
list-style: none; |
|
97 |
margin: 0; |
|
98 |
padding: 0; |
|
99 |
} |
|
100 |
|
|
101 |
#log li { |
|
102 |
margin: 0.5rem 0; |
|
103 |
} |
|
104 |
|
|
105 |
.log--player { |
|
106 |
color: #7700ff; |
|
107 |
} |
|
108 |
|
|
109 |
.log--monster { |
|
110 |
color: #da8d00; |
|
111 |
} |
|
112 |
|
|
113 |
.log--damage { |
|
114 |
color: red; |
|
115 |
} |
|
116 |
|
|
117 |
.log--heal { |
|
118 |
color: green; |
|
119 |
} |