Dark mode progress

This commit is contained in:
Gene Mecija 2020-01-28 01:13:32 -08:00
parent da142ef58a
commit 4aecd0c7ff
6 changed files with 73 additions and 34 deletions

View file

@ -32,7 +32,7 @@ export default React.memo(function KeyTypePicker() {
return (
<div id="keyType" className="mode-picker">
<button id="straight" onClick={handleClick}>
<button id="straight" class="selected" onClick={handleClick}>
Straight Key
</button>
<button id="electronic" onClick={handleClick}>

View file

@ -15,7 +15,7 @@ function ModePicker() {
return (
<div id="gameMode" className="mode-picker">
<button id="practice" onClick={handleClick}>
<button id="practice" class="selected" onClick={handleClick}>
Practice
</button>
<button id="training" onClick={handleClick}>

View file

@ -39,18 +39,18 @@ export default React.memo(function WordListPicker() {
return (
<>
<div id="wordListPicker" className="mode-picker">
<button id="alphabet" class="selected" onClick={handleClick}>
Alphabet
</button>
<button id="common100" onClick={handleClick}>
100 Most Common Words
</button>
<button id="alphabet" onClick={handleClick}>
Alphabet
</button>
<button id="test" onClick={handleClick}>
Test List
</button>
</div>
<div id="wordOrderPicker" className="mode-picker">
<button id="sequential" onClick={handleClick}>
<button id="sequential" class="selected" onClick={handleClick}>
Sequential
</button>
<button id="random" onClick={handleClick}>

View file

@ -8,7 +8,7 @@
html, body {
height: 100%;
width: 100%;
background: #FFF;
background: #2c2c2c;
}
#root {
@ -55,25 +55,32 @@ header {
}
.mode-picker button {
background: #fcfcfc;
background: #2c2c2c;
color: #CCC;
margin: 15px;
padding: 5px;
-webkit-box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2), 0px -1px 1px rgba(255, 255, 255, 0.1);
box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2), 0px -1px 1px rgba(255, 255, 255, 0.1);
border: 0px;
border-radius: 5px;
}
.mode-picker .selected {
-webkit-box-shadow: 0px -6px 10px white, 0px 4px 15px rgba(0, 0, 0, 0.15);
box-shadow: 0px -6px 10px white, 0px 4px 15px rgba(0, 0, 0, 0.15);
color: goldenrod;
-webkit-box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2), inset 0px -1px 1px rgba(255, 255, 255, 0.1);
box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2), inset 0px -1px 1px rgba(255, 255, 255, 0.1);
}
#legend {
width: 450px;
width: 400px;
height: 325px;
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;
@ -85,17 +92,32 @@ header {
}
#legend div {
border: 1px solid #999;
border-radius: 3px;
margin: 1px;
width: 80px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
background: #BBB;
}
#legend div button {
width: 40px;
width: 20px;
height: 20px;
margin: 4px;
border: 0px;
border-radius: 2px;
}
#legend div span {
width: 60%;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
text-align: center;
}
#morseButton {
@ -219,7 +241,7 @@ header {
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 100%;
width: 50vw;
height: 150px;
margin-bottom: 20px;
}
@ -231,7 +253,7 @@ header {
display: flex;
padding-left: 5px;
height: 50px;
min-width: 50px;
min-width: 250px;
margin-bottom: 10px;
display: flex;
-webkit-box-pack: center;
@ -240,7 +262,7 @@ header {
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
border-radius: 5px;
border-radius: 4px;
-webkit-box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
}
@ -264,7 +286,6 @@ header {
}
#morseBufferDisplay #ditDahs {
width: 50%;
height: 50px;
padding-right: 5px;
display: -webkit-box;
@ -294,8 +315,8 @@ header {
width: 30px !important;
margin-left: 3px;
border-radius: 5px;
-webkit-box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2), 0px -1px 1px rgba(255, 255, 255, 0.1);
box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2), 0px -1px 1px rgba(255, 255, 255, 0.1);
display: -webkit-box;
display: -ms-flexbox;
display: flex;
@ -305,7 +326,6 @@ header {
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
opacity: 50%;
-webkit-transition: all 100ms ease-in-out;
transition: all 100ms ease-in-out;
}

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,10 @@
$main-bg-color: #FFF;
$main-bg-color: #2c2c2c;
$main-box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
$main-box-shadow-dark: 0px 3px 3px rgba(0, 0, 0, 0.2), 0px -1px 1px rgba(255, 255, 255, 0.1);
$main-box-shadow-dark-selected: inset 0px 2px 2px rgba(0, 0, 0, 0.2), inset 0px -1px 1px rgba(255, 255, 255, 0.1);
$main-border-radius: 5px;
$border-radius-neumorphic: 0px -6px 10px rgba(255, 255, 255, 1), 0px 4px 15px rgba(0, 0, 0, 0.15);
$border-radius-neumorphic-dark: 0px -10px 20px rgba(255, 255, 255, 0.1), 0px 10px 10px rgba(0, 0, 0, 0.4);
$border-radius-neumorphic-active: 0 15px 20px rgba(0, 0, 0, 0.015), inset 0px -2px 5px rgb(255, 255, 255), inset 0px 2px 5px rgba(0, 0, 0, 0.15);
* {
box-sizing: border-box;
@ -41,21 +44,26 @@ footer {
display: flex;
align-self: center;
button {
background: #fcfcfc;
// background: #fcfcfc;
background: $main-bg-color;
color: #CCC;
margin: 15px;
padding: 5px;
box-shadow: $main-box-shadow;
box-shadow: $main-box-shadow-dark;
border: 0px;
border-radius: $main-border-radius;
}
.selected {
box-shadow: $border-radius-neumorphic;
color: goldenrod;
box-shadow: $main-box-shadow-dark-selected;
}
}
#legend {
width: 450px;
width: 400px;
height: 325px;
display: flex;
flex-direction: column;
justify-content: space-evenly;
position: fixed;
top: 50px;
@ -63,13 +71,25 @@ footer {
flex-wrap: wrap;
div {
border: 1px solid #999;
border-radius: 3px;
margin: 1px;
width: 80px;
display: flex;
flex-wrap: nowrap;
background: #BBB;
button {
width: 40px;
width: 20px;
height: 20px;
margin: 4px;
border: 0px;
border-radius: 2px;
}
span {
width: 60%;
justify-content: center;
text-align: center;
}
}
@ -166,7 +186,7 @@ footer {
justify-content: center;
flex-direction: column-reverse;
align-items: center;
width: 100%;
width: 50vw;
height: 150px;
margin-bottom: 20px;
@ -176,12 +196,12 @@ footer {
display: flex;
padding-left: 5px;
height: 50px;
min-width: 50px;
min-width: 250px;
margin-bottom: 10px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 5px;
border-radius: 4px;
box-shadow: $main-box-shadow;
#alphanumeric {
@ -205,7 +225,7 @@ footer {
}
#ditDahs {
width: 50%;
// width: 50%;
height: 50px;
padding-right: 5px;
// border-right: 2px solid #000;
@ -228,12 +248,11 @@ footer {
margin-left: 3px;
// box-shadow: 0px 1px 0px #000;
border-radius: $main-border-radius;
box-shadow: $main-box-shadow;
box-shadow: $main-box-shadow-dark;
display: flex;
justify-content: center;
align-items: center;
opacity: 50%;
transition: all 100ms ease-in-out;
}