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