2020-01-29 08:46:23 +01:00
|
|
|
// $main-bg-color-dark: #2c2c2c;
|
|
|
|
|
@import url('https://fonts.googleapis.com/css?family=Courier+Prime:700|Rubik&display=swap');
|
|
|
|
|
$main-font: 'Rubik', sans-serif;
|
2020-02-01 03:09:54 +01:00
|
|
|
$buffer-font: 'Courier Prime', Courier, monospace;
|
|
|
|
|
// $buffer-font: 'Courier', monospace;
|
2020-01-29 08:46:23 +01:00
|
|
|
$ditDah-font: 'Courier', monospace;
|
|
|
|
|
|
2020-01-30 10:23:56 +01:00
|
|
|
$main-bg-color-light: #f1f1f1;
|
2020-01-29 08:46:23 +01:00
|
|
|
$main-font-color-light: #333;
|
2020-02-04 04:12:50 +01:00
|
|
|
$correct-bg-color: rgba(90,230,90,1);
|
2020-01-29 08:46:23 +01:00
|
|
|
|
|
|
|
|
$morseCard-shadow-light: 0px 3px 3px rgba(0, 0, 0, 0.2);
|
2020-01-31 10:45:12 +01:00
|
|
|
$main-box-shadow-light: 0px 3px 3px rgba(0, 0, 0, 0.3), 0px -1px 1px rgba(255, 255, 255, 1);
|
|
|
|
|
$main-box-shadow-light-selected: inset 0px 2px 2px rgba(0, 0, 0, 0.3), inset 0px -1px 1px rgba(255, 255, 255, 1);
|
2020-01-28 10:13:32 +01:00
|
|
|
$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);
|
2020-01-29 08:46:23 +01:00
|
|
|
|
2020-01-31 10:45:12 +01:00
|
|
|
$main-border-radius: 3px;
|
2020-01-29 08:46:23 +01:00
|
|
|
|
2020-01-17 21:23:17 +01:00
|
|
|
$border-radius-neumorphic: 0px -6px 10px rgba(255, 255, 255, 1), 0px 4px 15px rgba(0, 0, 0, 0.15);
|
2020-01-28 10:13:32 +01:00
|
|
|
$border-radius-neumorphic-dark: 0px -10px 20px rgba(255, 255, 255, 0.1), 0px 10px 10px rgba(0, 0, 0, 0.4);
|
2020-01-18 11:38:21 +01:00
|
|
|
$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);
|
2020-02-04 04:12:50 +01:00
|
|
|
|
|
|
|
|
|
2020-01-22 09:39:05 +01:00
|
|
|
* {
|
|
|
|
|
box-sizing: border-box;
|
2019-12-27 09:41:53 +01:00
|
|
|
margin: 0px;
|
2020-01-29 08:46:23 +01:00
|
|
|
padding: 0px;
|
|
|
|
|
cursor: default;
|
|
|
|
|
}
|
|
|
|
|
button {
|
|
|
|
|
font-family: $main-bg-color-light;
|
|
|
|
|
cursor: pointer;
|
2020-01-22 09:39:05 +01:00
|
|
|
}
|
|
|
|
|
html, body {
|
2019-12-27 09:41:53 +01:00
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
2020-01-29 08:46:23 +01:00
|
|
|
background: $main-bg-color-light;
|
2020-01-25 08:32:08 +01:00
|
|
|
// background: #444;
|
2019-12-27 09:41:53 +01:00
|
|
|
}
|
|
|
|
|
#root {
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
2020-01-22 09:39:05 +01:00
|
|
|
flex-direction: column;
|
|
|
|
|
// justify-content: center;
|
2019-12-27 09:41:53 +01:00
|
|
|
align-items: center;
|
|
|
|
|
width: 100%;
|
2020-01-22 09:39:05 +01:00
|
|
|
border: 3px solid green;
|
|
|
|
|
}
|
|
|
|
|
header {
|
2020-01-30 10:23:56 +01:00
|
|
|
margin-top: 50px;
|
2020-01-22 09:39:05 +01:00
|
|
|
}
|
|
|
|
|
#main-content {
|
|
|
|
|
display: flex;
|
2020-01-30 10:23:56 +01:00
|
|
|
height: 95vh;
|
2020-02-01 10:49:21 +01:00
|
|
|
width: 100%;
|
2020-01-22 09:39:05 +01:00
|
|
|
border: 1px solid red;
|
2020-02-01 10:49:21 +01:00
|
|
|
justify-content: flex-start;
|
2020-01-25 08:32:08 +01:00
|
|
|
align-items: center;
|
2020-01-30 10:23:56 +01:00
|
|
|
|
2020-02-04 04:12:50 +01:00
|
|
|
|
2020-02-01 10:49:21 +01:00
|
|
|
.sidebar#left {
|
2020-02-02 11:55:53 +01:00
|
|
|
border: 1px solid yellowgreen;
|
2020-02-01 10:49:21 +01:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
height: 100%;
|
|
|
|
|
min-width: 400px;
|
|
|
|
|
width: 400px;
|
|
|
|
|
padding: 1.5em;
|
|
|
|
|
}
|
|
|
|
|
.sidebar#right {
|
2020-01-30 10:23:56 +01:00
|
|
|
border: 1px solid green;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2020-02-02 11:55:53 +01:00
|
|
|
justify-content: space-between;
|
2020-01-30 10:23:56 +01:00
|
|
|
height: 100%;
|
2020-02-01 10:49:21 +01:00
|
|
|
min-width: 500px;
|
2020-02-02 11:55:53 +01:00
|
|
|
width: 400px;
|
2020-01-31 10:45:12 +01:00
|
|
|
padding: 1.5em;
|
2020-02-01 10:49:21 +01:00
|
|
|
right: 0px;
|
2020-01-30 10:23:56 +01:00
|
|
|
}
|
|
|
|
|
#main-interface {
|
2020-02-01 10:49:21 +01:00
|
|
|
// border: 1px solid blue;
|
2020-01-30 10:23:56 +01:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
2020-02-01 10:49:21 +01:00
|
|
|
justify-content: flex-start;
|
|
|
|
|
flex-grow: 1;
|
2020-01-30 10:23:56 +01:00
|
|
|
height: 100%;
|
2020-02-01 10:49:21 +01:00
|
|
|
min-width: 500px;
|
|
|
|
|
width: 500px;
|
2020-02-04 04:12:50 +01:00
|
|
|
position: relative;
|
2020-01-30 10:23:56 +01:00
|
|
|
}
|
2019-12-27 09:41:53 +01:00
|
|
|
}
|
2020-01-22 09:39:05 +01:00
|
|
|
footer {
|
|
|
|
|
|
|
|
|
|
}
|
2020-01-31 10:45:12 +01:00
|
|
|
h2 {
|
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
|
}
|
2020-01-30 10:23:56 +01:00
|
|
|
i[class*="ri-"] {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
font-size: 0.9rem;
|
|
|
|
|
color: #777;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#mainOptions {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-width: 95vw;
|
|
|
|
|
height: 200px;
|
2020-01-31 10:45:12 +01:00
|
|
|
// border: 1px solid red;
|
2020-01-30 10:23:56 +01:00
|
|
|
.mode-picker {
|
|
|
|
|
// border: 1px solid green;
|
|
|
|
|
width: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-self: flex-start;
|
|
|
|
|
align-content: center;
|
|
|
|
|
justify-content: flex-start;
|
2020-01-31 10:45:12 +01:00
|
|
|
|
|
|
|
|
div {
|
|
|
|
|
padding: 5px;
|
|
|
|
|
height: 2.4em;
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-30 10:23:56 +01:00
|
|
|
#title {
|
|
|
|
|
font-weight: bold;
|
2020-02-01 10:49:21 +01:00
|
|
|
font-size: 1.08em;
|
2020-01-31 10:45:12 +01:00
|
|
|
// border: 1px solid red;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
padding-left: 0px;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
align-items: center;
|
2020-01-30 10:23:56 +01:00
|
|
|
}
|
|
|
|
|
#buttons {
|
|
|
|
|
// border: 1px solid blue;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
#input {
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
input {
|
|
|
|
|
width: 50px;
|
|
|
|
|
appearance: textfield;
|
|
|
|
|
text-align: center;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
|
height: 1.3rem;
|
2020-01-31 10:45:12 +01:00
|
|
|
font-size: 0.75em;
|
2020-01-30 10:23:56 +01:00
|
|
|
}
|
|
|
|
|
select {
|
|
|
|
|
height: 1.4rem;
|
|
|
|
|
}
|
|
|
|
|
button {
|
|
|
|
|
width: 20px;
|
2020-01-31 10:45:12 +01:00
|
|
|
height: 20px;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
// line-height: 10px;
|
2020-01-30 10:23:56 +01:00
|
|
|
i {
|
|
|
|
|
position: relative;
|
2020-01-31 10:45:12 +01:00
|
|
|
left: -1px;
|
|
|
|
|
// top: -2px;
|
|
|
|
|
font-size: 1.1em;
|
|
|
|
|
font-weight: bold;
|
2020-01-30 10:23:56 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-01-31 10:45:12 +01:00
|
|
|
button {
|
|
|
|
|
background: $main-bg-color-light;
|
|
|
|
|
box-shadow: $main-box-shadow-light;
|
|
|
|
|
border-radius: $main-border-radius;
|
|
|
|
|
border: 0px;
|
|
|
|
|
padding: 0.3em;
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
margin-right: 10px;
|
2020-01-30 10:23:56 +01:00
|
|
|
|
2020-01-31 10:45:12 +01:00
|
|
|
font-size: 0.75em;
|
|
|
|
|
color: $main-font-color-light;
|
2020-01-29 08:46:23 +01:00
|
|
|
|
2020-01-31 10:45:12 +01:00
|
|
|
&.selected {
|
|
|
|
|
box-shadow: $main-box-shadow-light-selected;
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-01-17 21:23:17 +01:00
|
|
|
}
|
2019-12-27 09:41:53 +01:00
|
|
|
}
|
2020-01-15 09:41:40 +01:00
|
|
|
|
2020-01-31 10:45:12 +01:00
|
|
|
|
2020-01-15 09:41:40 +01:00
|
|
|
#legend {
|
2020-01-31 10:45:12 +01:00
|
|
|
// border: 1px solid orange;
|
2020-01-30 10:23:56 +01:00
|
|
|
background: $main-bg-color-light;
|
|
|
|
|
width: 100%;
|
|
|
|
|
// height: 325px;
|
2020-01-15 09:41:40 +01:00
|
|
|
display: flex;
|
2020-01-31 10:45:12 +01:00
|
|
|
flex-direction: column;
|
2020-01-15 09:41:40 +01:00
|
|
|
justify-content: space-evenly;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
2020-01-31 10:45:12 +01:00
|
|
|
#legend-items {
|
2020-01-15 09:41:40 +01:00
|
|
|
display: flex;
|
2020-01-31 10:45:12 +01:00
|
|
|
flex-wrap: wrap;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
width: 100%;
|
2020-01-15 09:41:40 +01:00
|
|
|
|
2020-01-31 10:45:12 +01:00
|
|
|
.item {
|
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
|
margin: 1px;
|
2020-02-01 10:49:21 +01:00
|
|
|
width: 19%;
|
2020-01-31 10:45:12 +01:00
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
width: 20px;
|
|
|
|
|
height: 20px;
|
|
|
|
|
margin: 4px;
|
|
|
|
|
border: 0px;
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
box-shadow: $main-box-shadow-light;
|
|
|
|
|
&:active {
|
|
|
|
|
transform: translateY(3px);
|
|
|
|
|
box-shadow: 0px 0px 2px rgba(0,0,0,0.3);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
span {
|
|
|
|
|
width: 60%;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
text-align: center;
|
2020-01-30 10:23:56 +01:00
|
|
|
}
|
2020-01-15 09:41:40 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-02 11:55:53 +01:00
|
|
|
$button-height: 60px;
|
2019-12-27 09:41:53 +01:00
|
|
|
#morseButton {
|
2020-01-30 10:23:56 +01:00
|
|
|
width: 400px;
|
2020-02-02 11:55:53 +01:00
|
|
|
height: $button-height;
|
2020-01-29 08:46:23 +01:00
|
|
|
margin-top: 30px;
|
|
|
|
|
margin-bottom: 10px;
|
2020-01-30 10:23:56 +01:00
|
|
|
border-radius: 5px;
|
2019-12-27 09:41:53 +01:00
|
|
|
align-self: center;
|
2020-01-18 11:38:21 +01:00
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
2020-01-29 08:46:23 +01:00
|
|
|
box-shadow: $main-box-shadow-light;
|
2020-01-30 10:23:56 +01:00
|
|
|
transition: transform 40ms ease-out, box-shadow 40ms ease-out, width 500ms ease-out, background 500ms ease-out;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
|
transform: translateY(3px);
|
|
|
|
|
box-shadow: 0px 0px 2px rgba(0,0,0,0.3);
|
|
|
|
|
}
|
|
|
|
|
// &:active > button, &.active > button {
|
|
|
|
|
// transform: translateY(1px);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
color: transparent;
|
|
|
|
|
width: 200px;
|
2020-02-02 11:55:53 +01:00
|
|
|
height: $button-height;
|
2020-01-30 10:23:56 +01:00
|
|
|
// background: yellow;
|
|
|
|
|
background: #f4f4f4;
|
|
|
|
|
margin: 0px;
|
|
|
|
|
border: 0px;
|
|
|
|
|
// transition: all 20ms ease-out;
|
2020-01-31 10:45:12 +01:00
|
|
|
transition: transform 40ms ease-out, box-shadow 40ms ease-out, width 500ms ease-out, background 500ms ease-out, color 500ms ease-out;
|
2020-01-30 10:23:56 +01:00
|
|
|
|
|
|
|
|
&.showPaddles {
|
|
|
|
|
color: #888;
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
font-weight: bold;
|
2020-02-02 11:55:53 +01:00
|
|
|
width: calc($button-height+5px);
|
|
|
|
|
height: $button-height;
|
2020-01-30 10:23:56 +01:00
|
|
|
box-shadow: $main-box-shadow-light;
|
|
|
|
|
}
|
|
|
|
|
&#left {
|
|
|
|
|
border-radius: 5px 0 0 5px;
|
|
|
|
|
&.showPaddles{
|
|
|
|
|
margin-right: 7px;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&#right {
|
|
|
|
|
border-radius: 0 5px 5px 0;
|
|
|
|
|
&.showPaddles{
|
|
|
|
|
margin-left: 7px;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&.active {
|
|
|
|
|
transform: translateY(3px);
|
|
|
|
|
box-shadow: 0px 0px 2px rgba(0,0,0,0.3);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.showPaddles {
|
|
|
|
|
width: 134px;
|
|
|
|
|
background: transparent;
|
|
|
|
|
box-shadow: 0px 0px 0px transparent;
|
|
|
|
|
}
|
2020-01-18 11:38:21 +01:00
|
|
|
}
|
2020-01-29 08:46:23 +01:00
|
|
|
#morseButtonText {
|
|
|
|
|
font-weight: bold;
|
2020-02-02 11:55:53 +01:00
|
|
|
color: #aaa;
|
2020-01-29 08:46:23 +01:00
|
|
|
font-size: 0.7rem;
|
|
|
|
|
margin-bottom: 40px;
|
|
|
|
|
}
|
|
|
|
|
#paddleText {
|
2020-01-30 10:23:56 +01:00
|
|
|
width: 140px;
|
2020-01-29 08:46:23 +01:00
|
|
|
display: flex;
|
2020-01-30 10:23:56 +01:00
|
|
|
justify-content: space-around;
|
2020-01-29 08:46:23 +01:00
|
|
|
}
|
2020-01-30 10:23:56 +01:00
|
|
|
// #morseButton.mobile {
|
|
|
|
|
// width: 100px;
|
|
|
|
|
// height: 100px;
|
|
|
|
|
// margin-top: 30px;
|
|
|
|
|
// margin-bottom: 10px;
|
|
|
|
|
// // background: goldenrod;
|
|
|
|
|
// border-radius: 50px;
|
|
|
|
|
// align-self: center;
|
|
|
|
|
// display: flex;
|
|
|
|
|
// justify-content: center;
|
|
|
|
|
// align-items: center;
|
|
|
|
|
// transition: all 500ms ease-in-out;
|
|
|
|
|
// box-shadow: $main-box-shadow-light;
|
|
|
|
|
// }
|
|
|
|
|
// #morseButton.showPaddles.mobile {
|
|
|
|
|
// width: 239px;
|
|
|
|
|
// background: transparent;
|
|
|
|
|
// box-shadow: 0px 0px 0px transparent;
|
|
|
|
|
// }
|
|
|
|
|
// #morseButtonText.mobile {
|
|
|
|
|
// font-weight: bold;
|
|
|
|
|
// color: #bbb;
|
|
|
|
|
// font-size: 0.7rem;
|
|
|
|
|
// margin-bottom: 40px;
|
|
|
|
|
// }
|
|
|
|
|
// #paddleText.mobile {
|
|
|
|
|
// width: 150px;
|
|
|
|
|
// display: flex;
|
|
|
|
|
// justify-content: space-between;
|
|
|
|
|
// }
|
2020-01-18 11:38:21 +01:00
|
|
|
|
2020-01-30 10:23:56 +01:00
|
|
|
// .paddle.mobile {
|
|
|
|
|
// font-size: 1rem;
|
|
|
|
|
// color: transparent;
|
|
|
|
|
// width: 100px;
|
|
|
|
|
// height: 100px;
|
|
|
|
|
// background: goldenrod;
|
|
|
|
|
// margin: 0px;
|
|
|
|
|
// border: 0px;
|
|
|
|
|
// transition: all 500ms ease-in-out;
|
2020-01-29 08:46:23 +01:00
|
|
|
|
2020-01-30 10:23:56 +01:00
|
|
|
// &#left {
|
|
|
|
|
// border-radius: 50px 0 0 50px;
|
2020-01-22 09:39:05 +01:00
|
|
|
|
2020-01-30 10:23:56 +01:00
|
|
|
// &.showPaddles{
|
|
|
|
|
// margin-right: 7px;
|
|
|
|
|
// border-radius: 20px 0 0 20px;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// &#right {
|
|
|
|
|
// border-radius: 0 50px 50px 0;
|
|
|
|
|
|
|
|
|
|
// &.showPaddles{
|
|
|
|
|
// margin-left: 7px;
|
|
|
|
|
// border-radius: 0 20px 20px 0;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// &.showPaddles {
|
|
|
|
|
// color: #000;
|
|
|
|
|
// font-size: 2.5rem;
|
|
|
|
|
// font-weight: bold;
|
|
|
|
|
// width: 250px;
|
|
|
|
|
// height: 100px;
|
|
|
|
|
// box-shadow: $main-box-shadow-light;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
2020-01-29 08:46:23 +01:00
|
|
|
|
2020-02-04 04:12:50 +01:00
|
|
|
#challenge-overlay {
|
|
|
|
|
position: absolute;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
top:0;
|
|
|
|
|
left:0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
z-index: 100;
|
2020-02-04 10:04:52 +01:00
|
|
|
background-color: rgba(0,0,0,0.3);
|
2020-02-04 04:12:50 +01:00
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
2020-02-04 10:04:52 +01:00
|
|
|
&.hide {
|
|
|
|
|
display: none;
|
2020-02-04 04:12:50 +01:00
|
|
|
}
|
|
|
|
|
.notify {
|
|
|
|
|
width: 300px;
|
|
|
|
|
height: 250px;
|
|
|
|
|
background: #DDD;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-09 10:06:38 +01:00
|
|
|
#challengeWord {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
2020-01-30 10:23:56 +01:00
|
|
|
align-self: center;
|
|
|
|
|
|
2020-02-01 03:09:54 +01:00
|
|
|
height: 5rem;
|
2020-01-30 10:23:56 +01:00
|
|
|
width: fit-content;
|
2020-01-09 10:06:38 +01:00
|
|
|
padding-left: 10px;
|
|
|
|
|
padding-right: 10px;
|
2020-02-03 09:38:42 +01:00
|
|
|
margin-bottom: 10px;
|
|
|
|
|
margin-top: 25px;
|
2020-01-30 10:23:56 +01:00
|
|
|
|
|
|
|
|
// border: 1px solid green;
|
2020-01-31 10:45:12 +01:00
|
|
|
border-radius: $main-border-radius;
|
2020-01-30 10:23:56 +01:00
|
|
|
box-shadow: $main-box-shadow-light;
|
|
|
|
|
|
2020-02-01 03:09:54 +01:00
|
|
|
font-size: 4rem;
|
2020-01-29 08:46:23 +01:00
|
|
|
font-family: $buffer-font;
|
2020-01-09 10:06:38 +01:00
|
|
|
font-weight: bold;
|
2020-01-30 10:23:56 +01:00
|
|
|
|
|
|
|
|
background: #fdfdfd;
|
2020-01-09 10:06:38 +01:00
|
|
|
text-transform: uppercase;
|
2020-02-04 04:12:50 +01:00
|
|
|
transition: all 100ms ease-in-out;
|
2020-01-22 07:58:35 +01:00
|
|
|
|
2020-02-03 05:51:18 +01:00
|
|
|
.cLetter {
|
2020-01-19 19:26:55 +01:00
|
|
|
padding: 4px;
|
|
|
|
|
margin: 1px;
|
2020-02-01 03:09:54 +01:00
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
line-height: 3rem;
|
2020-02-03 05:51:18 +01:00
|
|
|
display: inline-block;
|
|
|
|
|
padding-top: 10px;
|
|
|
|
|
background: transparent;
|
2020-02-04 04:12:50 +01:00
|
|
|
transition: background 100ms ease-in-out; //, opacity 100ms ease-in-out;
|
2020-02-01 03:09:54 +01:00
|
|
|
|
|
|
|
|
&.correct {
|
2020-02-04 04:12:50 +01:00
|
|
|
background: $correct-bg-color;
|
2020-02-01 03:09:54 +01:00
|
|
|
border-radius: $main-border-radius;
|
|
|
|
|
}
|
2020-01-22 07:58:35 +01:00
|
|
|
}
|
|
|
|
|
&.correct {
|
2020-02-04 04:12:50 +01:00
|
|
|
background: $correct-bg-color;
|
2020-01-19 19:26:55 +01:00
|
|
|
}
|
2020-02-01 03:09:54 +01:00
|
|
|
|
2020-01-09 10:06:38 +01:00
|
|
|
}
|
2020-01-21 11:04:46 +01:00
|
|
|
|
2020-01-22 07:58:35 +01:00
|
|
|
|
2020-01-21 11:04:46 +01:00
|
|
|
|
2020-01-25 08:32:08 +01:00
|
|
|
#morseBufferDisplay {
|
2020-02-03 09:38:42 +01:00
|
|
|
border: 1px solid green;
|
2020-01-25 08:32:08 +01:00
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
|
align-items: center;
|
2020-01-30 10:23:56 +01:00
|
|
|
width: 100%;
|
2020-02-01 10:49:21 +01:00
|
|
|
height: 180px;
|
2020-01-25 08:32:08 +01:00
|
|
|
margin-bottom: 20px;
|
2020-01-29 08:46:23 +01:00
|
|
|
font-family: $buffer-font;
|
2020-02-01 10:49:21 +01:00
|
|
|
position: relative;
|
2020-02-01 03:09:54 +01:00
|
|
|
// font-weight: bold;
|
2020-01-25 08:32:08 +01:00
|
|
|
|
2020-02-01 10:49:21 +01:00
|
|
|
#overlay {
|
|
|
|
|
// background: blue;
|
|
|
|
|
box-shadow: inset 20px 0px 20px -5px $main-bg-color-light;
|
|
|
|
|
position: absolute;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
top:0;
|
|
|
|
|
left:0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-25 08:32:08 +01:00
|
|
|
#alphanumeric-container {
|
2020-02-01 10:49:21 +01:00
|
|
|
text-align: center;
|
|
|
|
|
max-width: 100%;
|
2020-02-03 09:38:42 +01:00
|
|
|
overflow: hidden;
|
2020-02-03 05:51:18 +01:00
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
padding-top: 10px;
|
2020-02-01 10:49:21 +01:00
|
|
|
// border: 1px solid red;
|
2020-01-25 08:32:08 +01:00
|
|
|
|
|
|
|
|
#alphanumeric {
|
2020-02-01 10:49:21 +01:00
|
|
|
// border: 1px solid blue;
|
|
|
|
|
background: #fdfdfd;
|
|
|
|
|
height: 5rem;
|
|
|
|
|
padding-left: 5px;
|
|
|
|
|
padding-right: 5px;
|
|
|
|
|
padding-top: 0.45rem;
|
2020-02-01 03:09:54 +01:00
|
|
|
font-size: 4rem;
|
2020-02-01 10:49:21 +01:00
|
|
|
min-width: 4rem;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
border-radius: $main-border-radius;
|
|
|
|
|
box-shadow: $main-box-shadow-light;
|
|
|
|
|
float: right;
|
2020-01-25 08:32:08 +01:00
|
|
|
}
|
|
|
|
|
}
|
2020-02-01 10:49:21 +01:00
|
|
|
#ditDahs-container {
|
|
|
|
|
// display: flex;
|
|
|
|
|
// justify-content: flex-start;
|
|
|
|
|
text-align: center;
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
// border: 1px solid red;
|
2020-02-03 09:38:42 +01:00
|
|
|
overflow: hidden;
|
2020-02-01 10:49:21 +01:00
|
|
|
|
|
|
|
|
#ditDahs {
|
|
|
|
|
height: 50px;
|
|
|
|
|
padding-right: 5px;
|
|
|
|
|
// border-right: 2px solid #000;
|
2020-01-25 08:32:08 +01:00
|
|
|
display: flex;
|
2020-02-01 10:49:21 +01:00
|
|
|
flex-direction: row;
|
2020-01-25 08:32:08 +01:00
|
|
|
justify-content: center;
|
2020-02-01 10:49:21 +01:00
|
|
|
// border: 1px solid purple;
|
|
|
|
|
font-size: 3rem;
|
|
|
|
|
font-family: $ditDah-font;
|
|
|
|
|
float: right;
|
|
|
|
|
// font-weight: bold;
|
|
|
|
|
|
|
|
|
|
// span {
|
|
|
|
|
// padding: $main-border-radius;
|
|
|
|
|
// transition: background 100ms ease-in-out;
|
|
|
|
|
// width: 30px;
|
|
|
|
|
// background: blue;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
.ditDah {
|
|
|
|
|
background: #fdfdfd;
|
|
|
|
|
height: 40px;
|
|
|
|
|
width: 30px !important;
|
|
|
|
|
margin-left: 3px;
|
|
|
|
|
// box-shadow: 0px 1px 0px #000;
|
|
|
|
|
border-radius: $main-border-radius;
|
|
|
|
|
box-shadow: $main-box-shadow-dark;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
transition: all 100ms ease-in-out;
|
|
|
|
|
}
|
2020-01-25 08:32:08 +01:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#challengeBufferDisplay {
|
2019-12-27 09:41:53 +01:00
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
2020-02-03 09:38:42 +01:00
|
|
|
// border: 1px solid green;
|
2020-01-19 19:26:55 +01:00
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
2019-12-27 09:41:53 +01:00
|
|
|
width: 100%;
|
2020-02-03 09:38:42 +01:00
|
|
|
// height: 150px;
|
|
|
|
|
// margin-top: 10px;
|
2020-01-29 08:46:23 +01:00
|
|
|
font-family: $buffer-font;
|
|
|
|
|
font-weight: bold;
|
2019-12-27 09:41:53 +01:00
|
|
|
|
2020-01-19 19:26:55 +01:00
|
|
|
#alphanumeric-container {
|
|
|
|
|
// border-left: 2px solid #000;
|
|
|
|
|
padding-left: 5px;
|
|
|
|
|
width: 50%;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
|
|
#alphanumeric {
|
2020-02-03 05:51:18 +01:00
|
|
|
// font-size: 40px;
|
|
|
|
|
// background-color: transparent;
|
|
|
|
|
// margin-bottom: 10px;
|
|
|
|
|
|
|
|
|
|
height: 50px;
|
|
|
|
|
// border: 1px solid purple;
|
|
|
|
|
font-size: 3rem;
|
|
|
|
|
font-family: $ditDah-font;
|
|
|
|
|
float: right;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
background: #fdfdfd;
|
|
|
|
|
margin-left: 3px;
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
// box-shadow: 0px 1px 0px #000;
|
|
|
|
|
border-radius: $main-border-radius;
|
|
|
|
|
box-shadow: $main-box-shadow-dark;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
2020-01-19 19:26:55 +01:00
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
|
padding-left: 5px;
|
|
|
|
|
padding-right: 5px;
|
|
|
|
|
// box-shadow: $main-box-shadow;
|
|
|
|
|
}
|
2020-01-21 12:43:21 +01:00
|
|
|
|
|
|
|
|
span {
|
2020-02-03 05:51:18 +01:00
|
|
|
display: inline-block;
|
2020-01-21 12:43:21 +01:00
|
|
|
padding: 4px;
|
2020-01-28 02:39:11 +01:00
|
|
|
transition: background 100ms ease-in-out;
|
2020-01-21 12:43:21 +01:00
|
|
|
}
|
2020-01-19 19:26:55 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-12-27 09:41:53 +01:00
|
|
|
#ditDahs {
|
2020-02-03 05:51:18 +01:00
|
|
|
// width: 50%;
|
|
|
|
|
// padding-right: 5px;
|
|
|
|
|
// // border-right: 2px solid #000;
|
|
|
|
|
// display: flex;
|
|
|
|
|
// flex-direction: row;
|
|
|
|
|
// justify-content: center;
|
|
|
|
|
// font-size: 25px;
|
|
|
|
|
// font-family: $ditDah-font;
|
|
|
|
|
// font-weight: bold;
|
|
|
|
|
|
|
|
|
|
height: 50px;
|
2019-12-27 09:41:53 +01:00
|
|
|
padding-right: 5px;
|
2020-02-03 09:38:42 +01:00
|
|
|
padding-top: 10px;
|
2020-01-19 19:26:55 +01:00
|
|
|
// border-right: 2px solid #000;
|
2019-12-27 09:41:53 +01:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: row;
|
2020-01-19 19:26:55 +01:00
|
|
|
justify-content: center;
|
2020-02-03 05:51:18 +01:00
|
|
|
// border: 1px solid purple;
|
|
|
|
|
font-size: 3rem;
|
2020-01-29 08:46:23 +01:00
|
|
|
font-family: $ditDah-font;
|
2020-01-21 12:43:21 +01:00
|
|
|
|
|
|
|
|
span {
|
2020-02-03 05:51:18 +01:00
|
|
|
|
2020-01-21 12:43:21 +01:00
|
|
|
}
|
2020-02-03 05:51:18 +01:00
|
|
|
span {
|
|
|
|
|
// background: #fdfdfd;
|
2020-01-25 08:32:08 +01:00
|
|
|
|
2020-02-03 05:51:18 +01:00
|
|
|
// height: 40px;
|
|
|
|
|
// width: 30px !important;
|
|
|
|
|
// margin-left: 3px;
|
|
|
|
|
// // box-shadow: 0px 1px 0px #000;
|
|
|
|
|
// border-radius: $main-border-radius;
|
|
|
|
|
// box-shadow: $main-box-shadow-light;
|
|
|
|
|
// display: flex;
|
|
|
|
|
// justify-content: center;
|
|
|
|
|
// align-items: center;
|
|
|
|
|
|
|
|
|
|
padding: 5px;
|
|
|
|
|
transition: background 100ms ease-in-out;
|
|
|
|
|
background: #fdfdfd;
|
2019-12-27 09:41:53 +01:00
|
|
|
height: 40px;
|
2020-02-03 05:51:18 +01:00
|
|
|
// width: 30px !important;
|
2019-12-27 09:41:53 +01:00
|
|
|
margin-left: 3px;
|
2020-01-03 08:53:56 +01:00
|
|
|
// box-shadow: 0px 1px 0px #000;
|
|
|
|
|
border-radius: $main-border-radius;
|
2020-02-03 05:51:18 +01:00
|
|
|
box-shadow: $main-box-shadow-dark;
|
2019-12-27 09:41:53 +01:00
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
2020-02-03 05:51:18 +01:00
|
|
|
|
|
|
|
|
transition: all 100ms ease-in-out;
|
2019-12-27 09:41:53 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.space {
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
}
|
2020-01-22 09:39:05 +01:00
|
|
|
.strike {
|
|
|
|
|
text-decoration: line-through;
|
|
|
|
|
opacity: 30%;
|
|
|
|
|
}
|
2019-12-27 09:41:53 +01:00
|
|
|
.morseError {
|
|
|
|
|
background: rgba(255,0,0,0.4);
|
2020-01-03 08:53:56 +01:00
|
|
|
color: rgb(120, 0, 0);
|
2020-01-31 10:45:12 +01:00
|
|
|
border-radius: $main-border-radius;
|
2020-01-19 19:26:55 +01:00
|
|
|
// text-decoration: line-through;
|
2019-12-27 09:41:53 +01:00
|
|
|
}
|
2020-02-01 03:09:54 +01:00
|
|
|
|
2019-12-27 09:41:53 +01:00
|
|
|
|
2020-01-25 08:32:08 +01:00
|
|
|
// #morseHistory {
|
|
|
|
|
// border: 1px solid purple;
|
|
|
|
|
// padding: 5px;
|
|
|
|
|
// width: 650px;
|
|
|
|
|
// font-family: 'Verdana';
|
|
|
|
|
// font-size: 1.5em;
|
|
|
|
|
// }
|
|
|
|
|
|
2020-01-30 10:23:56 +01:00
|
|
|
#morseHistory-textbox {
|
2020-02-01 10:49:21 +01:00
|
|
|
// border: 1px solid cyan;
|
|
|
|
|
background: #ddd;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
height: auto;
|
|
|
|
|
width: 90%;
|
2020-01-30 10:23:56 +01:00
|
|
|
font-family: Courier;
|
|
|
|
|
font-size: 1.5rem;
|
2020-02-01 10:49:21 +01:00
|
|
|
display: flex;
|
|
|
|
|
align-content: flex-start;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
2020-01-30 10:23:56 +01:00
|
|
|
span {
|
2020-02-01 10:49:21 +01:00
|
|
|
margin: 5px;
|
|
|
|
|
background: #fdfdfd;
|
2020-01-30 10:23:56 +01:00
|
|
|
height: 1.5rem;
|
2020-02-01 10:49:21 +01:00
|
|
|
padding: 4px;
|
|
|
|
|
padding-top: 0px;
|
|
|
|
|
padding-bottom: 0px;
|
|
|
|
|
border-radius: $main-border-radius;
|
|
|
|
|
box-shadow: $main-box-shadow-dark;
|
2020-01-30 10:23:56 +01:00
|
|
|
}
|
|
|
|
|
}
|
2020-02-01 10:49:21 +01:00
|
|
|
|
2020-01-25 08:32:08 +01:00
|
|
|
#morseHistory {
|
2020-02-01 03:09:54 +01:00
|
|
|
border: 1px solid purple;
|
2019-12-27 09:41:53 +01:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2020-01-30 10:23:56 +01:00
|
|
|
width: 100%;
|
2020-02-01 03:09:54 +01:00
|
|
|
height: 320px;
|
|
|
|
|
position: relative;
|
|
|
|
|
padding-top: 10px;
|
|
|
|
|
// // padding-bottom: 20px;
|
|
|
|
|
|
|
|
|
|
#overlay {
|
|
|
|
|
// background: blue;
|
|
|
|
|
box-shadow: inset 20px 0px 20px $main-bg-color-light, inset -20px 0px 20px $main-bg-color-light, inset 0px -100px 100px $main-bg-color-light;
|
|
|
|
|
position: absolute;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
top:0;
|
|
|
|
|
left:0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
z-index: 100;
|
2019-12-27 09:41:53 +01:00
|
|
|
}
|
2020-02-01 03:09:54 +01:00
|
|
|
// #morseCards {
|
|
|
|
|
// .morseCard:nth-child(1){
|
|
|
|
|
// opacity: 100%;
|
|
|
|
|
// }
|
|
|
|
|
// .morseCard:nth-child(2){
|
|
|
|
|
// opacity: 85%;
|
|
|
|
|
// }
|
|
|
|
|
// .morseCard:nth-child(3){
|
|
|
|
|
// opacity: 70%;
|
|
|
|
|
// }
|
|
|
|
|
// .morseCard:nth-child(4){
|
|
|
|
|
// opacity: 55%;
|
|
|
|
|
// }
|
|
|
|
|
// .morseCard:nth-child(5){
|
|
|
|
|
// opacity: 40%;
|
|
|
|
|
// }
|
|
|
|
|
// .morseCard:nth-child(6){
|
|
|
|
|
// opacity: 20%;
|
|
|
|
|
// }
|
|
|
|
|
// .morseCard:nth-child(7){
|
|
|
|
|
// opacity: 10%;
|
|
|
|
|
// }
|
|
|
|
|
// .morseCard:nth-child(8){
|
|
|
|
|
// opacity: 30%;
|
|
|
|
|
// }
|
|
|
|
|
// .morseCard:nth-child(9){
|
|
|
|
|
// opacity: 20%;
|
|
|
|
|
// }
|
|
|
|
|
// .morseCard:nth-child(10){
|
|
|
|
|
// opacity: 10%;
|
|
|
|
|
// }
|
2020-01-29 08:46:23 +01:00
|
|
|
// }
|
2019-12-27 09:41:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.morseCard {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: row !important;
|
|
|
|
|
justify-content: center;
|
2020-02-01 03:09:54 +01:00
|
|
|
margin-bottom: 4px;
|
|
|
|
|
font-size: 1.6rem;
|
2020-01-29 08:46:23 +01:00
|
|
|
font-family: $buffer-font;
|
|
|
|
|
|
2020-02-01 03:09:54 +01:00
|
|
|
.ditDahs-container, .alphanumeric-container {
|
|
|
|
|
display: flex;
|
|
|
|
|
width: 50%;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
// border: 1px solid green;
|
|
|
|
|
}
|
|
|
|
|
.alphanumeric-container span {
|
|
|
|
|
// background: blue;
|
|
|
|
|
padding-top: 0.17em;
|
|
|
|
|
}
|
|
|
|
|
.ditDahs-container {
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
// border: 1px solid red;
|
|
|
|
|
max-width: 50%;
|
|
|
|
|
}
|
2020-01-30 10:23:56 +01:00
|
|
|
|
2020-01-03 08:53:56 +01:00
|
|
|
div div {
|
2020-01-30 10:23:56 +01:00
|
|
|
padding: 3px;
|
2020-01-29 08:46:23 +01:00
|
|
|
margin: 2px;
|
|
|
|
|
background: #fdfdfd;
|
2020-02-01 03:09:54 +01:00
|
|
|
// border: 1px solid cyan;
|
2020-01-03 08:53:56 +01:00
|
|
|
// width: 50%;
|
2019-12-27 09:41:53 +01:00
|
|
|
white-space: nowrap;
|
2020-01-31 10:45:12 +01:00
|
|
|
border-radius: $main-border-radius;
|
2020-01-29 08:46:23 +01:00
|
|
|
box-shadow: $morseCard-shadow-light;
|
2020-02-01 03:09:54 +01:00
|
|
|
line-height: 1em;
|
2020-01-29 08:46:23 +01:00
|
|
|
display: flex;
|
2020-01-30 10:23:56 +01:00
|
|
|
|
|
|
|
|
span.morseError {
|
|
|
|
|
background: rgba(255,0,0,0.4);
|
|
|
|
|
height: 1.7rem;
|
|
|
|
|
// background: blue;
|
|
|
|
|
color: rgb(120, 0, 0);
|
2020-01-31 10:45:12 +01:00
|
|
|
border-radius: $main-border-radius;
|
2020-01-30 10:23:56 +01:00
|
|
|
// text-decoration: line-through;
|
|
|
|
|
}
|
2020-01-03 08:53:56 +01:00
|
|
|
}
|
2020-02-01 03:09:54 +01:00
|
|
|
|
2019-12-27 09:41:53 +01:00
|
|
|
.ditDahs {
|
2020-01-03 08:53:56 +01:00
|
|
|
// border: 1px solid red;
|
2019-12-27 09:41:53 +01:00
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
align-items: center;
|
|
|
|
|
overflow-wrap: break-word;
|
2020-01-29 08:46:23 +01:00
|
|
|
font-family: $ditDah-font;
|
|
|
|
|
font-weight: bold;
|
2020-02-01 03:09:54 +01:00
|
|
|
max-width: 100%;
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
|
|
|
|
|
span.space {
|
|
|
|
|
border-radius: $main-border-radius;
|
|
|
|
|
background: $main-bg-color-light;
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
width: 3px;
|
|
|
|
|
margin-left: 4px;
|
|
|
|
|
margin-right: 4px;
|
|
|
|
|
}
|
2019-12-27 09:41:53 +01:00
|
|
|
}
|
|
|
|
|
}
|