Challenge start overlay style/function, gameclock bug fixes

This commit is contained in:
Gene Mecija 2020-02-04 13:38:22 -08:00
parent 77dbbc09e9
commit 2b15d7c04b
12 changed files with 424 additions and 75 deletions

View file

@ -54,7 +54,6 @@ header {
}
#main-content .sidebar#left {
border: 1px solid yellowgreen;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
@ -69,10 +68,11 @@ header {
min-width: 400px;
width: 400px;
padding: 1.5em;
-webkit-box-shadow: inset -3px 0px 5px rgba(0, 0, 0, 0.2);
box-shadow: inset -3px 0px 5px rgba(0, 0, 0, 0.2);
}
#main-content .sidebar#right {
border: 1px solid green;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
@ -88,6 +88,8 @@ header {
width: 400px;
padding: 1.5em;
right: 0px;
-webkit-box-shadow: inset 3px 0px 5px rgba(0, 0, 0, 0.2);
box-shadow: inset 3px 0px 5px rgba(0, 0, 0, 0.2);
}
#main-content #main-interface {
@ -411,6 +413,28 @@ i[class*="ri-"] {
justify-content: space-around;
}
@-webkit-keyframes hideOverlay {
0% {
opacity: 100%;
z-index: 1000;
}
100% {
opacity: 0%;
z-index: -1000;
}
}
@keyframes hideOverlay {
0% {
opacity: 100%;
z-index: 1000;
}
100% {
opacity: 0%;
z-index: -1000;
}
}
#challenge-overlay {
position: absolute;
display: inline-block;
@ -419,26 +443,181 @@ i[class*="ri-"] {
width: 100%;
height: 100%;
z-index: 100;
background-color: rgba(0, 0, 0, 0.3);
background: rgba(255, 255, 255, 0.3);
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
#challenge-overlay.hide {
-webkit-animation: hideOverlay 3s ease-out forwards;
animation: hideOverlay 3s ease-out forwards;
}
#challenge-overlay .notify {
width: 400px;
height: 250px;
background: #f1f1f1;
margin-top: 150px;
border-radius: 5px;
-webkit-box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
}
#challenge-overlay #challengeReady {
position: relative;
width: 400px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: space-evenly;
-ms-flex-pack: space-evenly;
justify-content: space-evenly;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
#challenge-overlay #challengeReady #message {
font-size: 2em;
font-weight: bold;
}
#challenge-overlay #challengeReady #count {
font-size: 4.5em;
font-weight: bold;
}
#challenge-overlay #challengeReady.starting {
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
#challenge-overlay #challengeReady button {
background: #f1f1f1;
-webkit-box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.3), 0px -1px 1px white;
box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.3), 0px -1px 1px white;
border-radius: 3px;
border: 0px;
padding: 0.3em;
margin-left: 10px;
margin-right: 10px;
font-size: 0.75em;
color: #333;
max-width: 250px;
}
#challenge-overlay #challengeReady button.selected {
-webkit-box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.3), inset 0px -1px 1px white;
box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.3), inset 0px -1px 1px white;
}
#challenge-overlay #challengeReady #challengeOptions {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
#challenge-overlay.hide {
display: none;
#challenge-overlay #challengeReady #challengeOptions .mode-picker {
width: 300px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-line-pack: center;
align-content: center;
-webkit-box-pack: start;
-ms-flex-pack: start;
justify-content: flex-start;
}
#challenge-overlay .notify {
width: 300px;
height: 250px;
background: #DDD;
#challenge-overlay #challengeReady #challengeOptions .mode-picker div {
padding: 5px;
height: 2.4em;
}
#challenge-overlay #challengeReady #challengeOptions .mode-picker div#title {
font-weight: bold;
font-size: 1.08em;
height: 100%;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
padding-left: 0px;
-webkit-box-pack: start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
#challenge-overlay #challengeReady #challengeOptions .mode-picker div#buttons {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
#challenge-overlay #challengeReady #challengeOptions .mode-picker div#input {
margin-left: 10px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
#challenge-overlay #challengeReady #challengeOptions .mode-picker div#input input {
width: 50px;
-webkit-appearance: textfield;
-moz-appearance: textfield;
appearance: textfield;
text-align: center;
border-radius: 3px;
border: 1px solid #ddd;
height: 1.3rem;
font-size: 0.75em;
}
#challenge-overlay #challengeReady #challengeOptions .mode-picker div#input select {
height: 1.4rem;
}
#challenge-overlay #challengeReady #challengeOptions .mode-picker div#input button {
width: 20px;
height: 20px;
border-radius: 3px;
}
#challenge-overlay #challengeReady #challengeOptions .mode-picker div#input button i {
position: relative;
left: -1px;
font-size: 1.1em;
font-weight: bold;
}
#challengeWord {

File diff suppressed because one or more lines are too long