reformat by IDE
This commit is contained in:
@@ -6,6 +6,7 @@ body {
|
|||||||
font-family: 'Profession', sans-serif;
|
font-family: 'Profession', sans-serif;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
width: 10vw;
|
width: 10vw;
|
||||||
height: 10vh;
|
height: 10vh;
|
||||||
@@ -16,6 +17,7 @@ button {
|
|||||||
font-size: 5vh;
|
font-size: 5vh;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
width: 30vw;
|
width: 30vw;
|
||||||
height: 10vh;
|
height: 10vh;
|
||||||
@@ -26,10 +28,12 @@ input {
|
|||||||
font-size: 10vh;
|
font-size: 10vh;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
td {
|
td {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
vertical-align: center;
|
vertical-align: center;
|
||||||
@@ -40,20 +44,24 @@ td {
|
|||||||
.player-name {
|
.player-name {
|
||||||
border: 1vh solid transparent;
|
border: 1vh solid transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.player-name.active {
|
.player-name.active {
|
||||||
border: 1vh solid #f12f12;
|
border: 1vh solid #f12f12;
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.player-score {
|
.player-score {
|
||||||
height: 50%;
|
height: 50%;
|
||||||
font-size: 30vh;
|
font-size: 30vh;
|
||||||
font-family: 'Seven segment', sans-serif;
|
font-family: 'Seven segment', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
.player-extension {
|
.player-extension {
|
||||||
background-color: #f12f12;
|
background-color: #f12f12;
|
||||||
color: grey;
|
color: grey;
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.player-extension.active {
|
.player-extension.active {
|
||||||
background-color: #00f120;
|
background-color: #00f120;
|
||||||
color: #f12f12;
|
color: #f12f12;
|
||||||
@@ -63,19 +71,22 @@ td {
|
|||||||
.display {
|
.display {
|
||||||
width: 60%;
|
width: 60%;
|
||||||
}
|
}
|
||||||
.display-break.active{
|
|
||||||
|
.display-break.active {
|
||||||
background-image: url("12ball.png");
|
background-image: url("12ball.png");
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.display-timer {
|
.display-timer {
|
||||||
height: 80%;
|
height: 80%;
|
||||||
font-size: 50vh;
|
font-size: 50vh;
|
||||||
font-family: 'Seven segment', sans-serif;
|
font-family: 'Seven segment', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
.display-bar {
|
.display-bar {
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
background: linear-gradient(90deg, rgba(0,0,0,1) -200%, rgba(255,0,0,1) -200%, rgba(0,241,32,1) 100%);
|
background: linear-gradient(90deg, rgba(0, 0, 0, 1) -200%, rgba(255, 0, 0, 1) -200%, rgba(0, 241, 32, 1) 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* controls */
|
/* controls */
|
||||||
|
|||||||
@@ -239,6 +239,7 @@ function updateDisplay() {
|
|||||||
document.querySelector('.display-timer').innerText = timer;
|
document.querySelector('.display-timer').innerText = timer;
|
||||||
document.querySelector('.display-bar').style.background = "linear-gradient(90deg, rgba(0,0,0,1) -200%, rgba(255,0,0,1) " + (Math.ceil(100 - (timer / resetTime) * 300)) + "%, rgba(0,241,32,1) 100%)";
|
document.querySelector('.display-bar').style.background = "linear-gradient(90deg, rgba(0,0,0,1) -200%, rgba(255,0,0,1) " + (Math.ceil(100 - (timer / resetTime) * 300)) + "%, rgba(0,241,32,1) 100%)";
|
||||||
}
|
}
|
||||||
|
|
||||||
function runTimer() {
|
function runTimer() {
|
||||||
if (timer < 0) {
|
if (timer < 0) {
|
||||||
toggleTimer();
|
toggleTimer();
|
||||||
|
|||||||
Reference in New Issue
Block a user