fixing buttons positioning
This commit is contained in:
parent
16729192f4
commit
2295dc5e0a
@ -89,16 +89,16 @@
|
||||
<div onclick="lifeDecrease8()" id="lifeDown">▼</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="buttonWrapper">
|
||||
<div onclick="removePlayer()" id="removePlayer" class="buttons">−</div>
|
||||
<div onclick="resetLife()" id="reset" class="buttons">↺<span class="buttonText">life</span></div>
|
||||
<div onclick="resetName()" id="reset" class="buttons">↻<span class="buttonText">name</span></div>
|
||||
<div onclick="addPlayer()" id="addPlayer" class="buttons">+</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</main>
|
||||
<div id="buttonWrapper">
|
||||
<div onclick="removePlayer()" id="removePlayer" class="buttons">−</div>
|
||||
<div onclick="resetLife()" id="reset" class="buttons">↺<span class="buttonText">life</span></div>
|
||||
<div onclick="resetName()" id="reset" class="buttons">↻<span class="buttonText">name</span></div>
|
||||
<div onclick="addPlayer()" id="addPlayer" class="buttons">+</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script src="script.js"></script>
|
||||
|
||||
@ -5,16 +5,20 @@
|
||||
}
|
||||
body{
|
||||
background-color: darkslategray;
|
||||
height: 100%;
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
margin: 0;
|
||||
}
|
||||
main{
|
||||
display: flex;
|
||||
justify-content: space-evenly;
|
||||
font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
height: 100%
|
||||
}
|
||||
.name{
|
||||
font-size: xx-large;
|
||||
font-size: xx-large;
|
||||
display: flex;
|
||||
margin: 0 0 20px;
|
||||
padding: 10px 0;
|
||||
@ -28,12 +32,10 @@
|
||||
background-image: linear-gradient(top, #EEE, #AAA);
|
||||
border: 1px solid #999;
|
||||
border-bottom: 1px solid #BBB;
|
||||
-webkit-border-radius: 30px;
|
||||
-moz-border-radius: 30px;
|
||||
border-radius: 30px;
|
||||
text-shadow: 0 1px 0 #EEE;
|
||||
background-color: #EEE;
|
||||
width: 400px;
|
||||
width: auto;
|
||||
justify-content: center;
|
||||
}
|
||||
.life{
|
||||
@ -47,8 +49,6 @@
|
||||
background-image: linear-gradient(top, #EEE, #AAA);
|
||||
border: 1px solid #999;
|
||||
border-bottom: 1px solid #BBB;
|
||||
-webkit-border-radius: 30px;
|
||||
-moz-border-radius: 30px;
|
||||
border-radius: 30px;
|
||||
color: #333;
|
||||
padding: 8px 0;
|
||||
@ -56,13 +56,13 @@
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 200px;
|
||||
font-size: 5rem;
|
||||
height:200px;
|
||||
font-size: 4.5rem;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.player{
|
||||
padding: 20px
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.buttons{
|
||||
@ -85,11 +85,13 @@
|
||||
flex-direction: row;
|
||||
justify-content:space-evenly;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
bottom: 0px;
|
||||
|
||||
}
|
||||
.buttonText{
|
||||
font-size: .6rem;
|
||||
margin: auto;
|
||||
|
||||
}
|
||||
#lifeCount{
|
||||
padding: 10px;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user