learn-morse-code/src/css/App.css

380 lines
8.3 KiB
CSS
Raw Normal View History

2019-12-27 09:41:53 +01:00
html, body {
margin: 0px;
padding: 0px;
height: 100%;
width: 100%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
background: #FFF;
2019-12-27 09:41:53 +01:00
}
#root {
height: 100%;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 100%;
}
.mode-picker {
2019-12-27 09:41:53 +01:00
display: -webkit-box;
display: -ms-flexbox;
display: flex;
2020-01-09 10:06:38 +01:00
-ms-flex-item-align: center;
align-self: center;
2019-12-27 09:41:53 +01:00
}
.mode-picker button {
2020-01-03 08:53:56 +01:00
background: #fcfcfc;
2019-12-27 09:41:53 +01:00
margin: 15px;
padding: 5px;
2020-01-03 08:53:56 +01:00
-webkit-box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
2020-01-09 10:06:38 +01:00
border: 0px;
border-radius: 0px;
2019-12-27 09:41:53 +01:00
}
.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);
}
2020-01-15 09:41:40 +01:00
#legend {
width: 450px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: space-evenly;
-ms-flex-pack: space-evenly;
justify-content: space-evenly;
2020-01-18 11:38:21 +01:00
position: absolute;
-ms-flex-item-align: left;
align-self: left;
2020-01-15 09:41:40 +01:00
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
#legend div {
width: 80px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
}
#legend div button {
width: 40px;
margin: 4px;
}
2019-12-27 09:41:53 +01:00
#main-content {
width: 95vw;
border: 1px solid red;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
#morseButton {
2020-01-18 11:38:21 +01:00
width: 100px;
2020-01-15 09:41:40 +01:00
height: 100px;
2019-12-27 09:41:53 +01:00
margin: 30px;
2020-01-18 11:38:21 +01:00
border-radius: 50px;
2019-12-27 09:41:53 +01:00
-ms-flex-item-align: center;
align-self: center;
2020-01-18 11:38:21 +01:00
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-transition: all 500ms ease-in-out;
transition: all 500ms ease-in-out;
}
#morseButton.showPaddles {
width: 239px;
background: transparent;
-webkit-box-shadow: 0px 0px 0px transparent;
box-shadow: 0px 0px 0px transparent;
}
.paddle {
2020-01-19 04:35:11 +01:00
font-size: 60px;
2020-01-18 11:38:21 +01:00
width: 100px;
height: 100px;
background: goldenrod;
margin: 0px;
border: 0px;
-webkit-transition: all 500ms ease-in-out;
transition: all 500ms ease-in-out;
}
.paddle#left {
2020-01-21 11:04:46 +01:00
border-radius: 20% 0 0 20%;
2020-01-18 11:38:21 +01:00
}
.paddle#right {
2020-01-21 11:04:46 +01:00
border-radius: 0 20% 20% 0;
2020-01-18 11:38:21 +01:00
}
.paddle.showPaddles {
width: 250px;
height: 100px;
}
.paddle#left.showPaddles {
margin-right: 7px;
}
.paddle#right.showPaddles {
margin-left: 7px;
2019-12-27 09:41:53 +01:00
}
2020-01-09 10:06:38 +01:00
#challengeWord {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
height: 50px;
margin-bottom: 20px;
padding-left: 10px;
padding-right: 10px;
width: -webkit-fit-content;
width: -moz-fit-content;
width: fit-content;
display: flex;
font-size: 40px;
font-family: 'Courier';
font-weight: bold;
background: #EEE;
text-transform: uppercase;
-ms-flex-item-align: center;
align-self: center;
}
2020-01-19 19:26:55 +01:00
#challengeWord span {
padding: 4px;
margin: 1px;
2020-01-21 12:43:21 +01:00
-webkit-transition: background 100ms ease-in-out;
transition: background 100ms ease-in-out;
2020-01-19 19:26:55 +01:00
}
2020-01-21 11:04:46 +01:00
.strike {
text-decoration: line-through;
}
2020-01-10 09:56:38 +01:00
#morseBufferDisplay, #challengeBufferDisplay {
2019-12-27 09:41:53 +01:00
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
2020-01-19 19:26:55 +01:00
border: 1px solid green;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
2019-12-27 09:41:53 +01:00
width: 100%;
2020-01-03 08:53:56 +01:00
margin-bottom: 20px;
2019-12-27 09:41:53 +01:00
}
2020-01-19 19:26:55 +01:00
#morseBufferDisplay #alphanumeric-container, #challengeBufferDisplay #alphanumeric-container {
padding-left: 5px;
width: 50%;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
#morseBufferDisplay #alphanumeric-container #alphanumeric, #challengeBufferDisplay #alphanumeric-container #alphanumeric {
font-size: 40px;
font-family: 'Courier';
font-weight: bold;
background-color: transparent;
2020-01-21 12:43:21 +01:00
margin-bottom: 10px;
2020-01-19 19:26:55 +01:00
}
#morseBufferDisplay #alphanumeric-container #alphanumeric:first-child, #challengeBufferDisplay #alphanumeric-container #alphanumeric:first-child {
padding-left: 5px;
padding-right: 5px;
}
2020-01-21 12:43:21 +01:00
#morseBufferDisplay #alphanumeric-container #alphanumeric span, #challengeBufferDisplay #alphanumeric-container #alphanumeric span {
padding: 4px;
-webkit-transition: background 100ms ease-in-out;
transition: background 100ms ease-in-out;
}
2020-01-10 09:56:38 +01:00
#morseBufferDisplay #ditDahs, #challengeBufferDisplay #ditDahs {
2019-12-27 09:41:53 +01:00
width: 50%;
padding-right: 5px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
2020-01-19 19:26:55 +01:00
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
2020-01-21 12:43:21 +01:00
font-size: 25px;
font-family: 'Courier';
font-weight: bold;
}
#morseBufferDisplay #ditDahs span, #challengeBufferDisplay #ditDahs span {
padding: 4px;
-webkit-transition: background 100ms ease-in-out;
transition: background 100ms ease-in-out;
2019-12-27 09:41:53 +01:00
}
2020-01-10 09:56:38 +01:00
#morseBufferDisplay #ditDahs .ditDah, #challengeBufferDisplay #ditDahs .ditDah {
2019-12-27 09:41:53 +01:00
background: #DDD;
height: 40px;
width: 30px !important;
margin-left: 3px;
2020-01-09 10:06:38 +01:00
border-radius: 0px;
2020-01-03 08:53:56 +01:00
-webkit-box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
2019-12-27 09:41:53 +01:00
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.space {
font-size: 20px;
}
.morseError {
background: rgba(255, 0, 0, 0.4);
2020-01-03 08:53:56 +01:00
color: #780000;
border-radius: 5px;
2019-12-27 09:41:53 +01:00
}
2020-01-10 03:24:54 +01:00
.correct {
background: rgba(0, 255, 0, 0.4);
border-radius: 5px;
}
2019-12-27 09:41:53 +01:00
#morseDisplay {
/* border: 1px solid blue; */
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
#morseDisplay .morseCard:nth-child(1) {
opacity: 100%;
}
#morseDisplay .morseCard:nth-child(2) {
opacity: 70%;
}
#morseDisplay .morseCard:nth-child(3) {
opacity: 50%;
}
#morseDisplay .morseCard:nth-child(4) {
opacity: 30%;
}
#morseDisplay .morseCard:nth-child(5) {
opacity: 10%;
}
.morseCard {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal !important;
-webkit-box-direction: normal !important;
-ms-flex-direction: row !important;
flex-direction: row !important;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
/* border: 1px solid orange; */
margin-bottom: 2px;
2020-01-03 08:53:56 +01:00
font-size: 2.5rem;
2019-12-27 09:41:53 +01:00
font-family: 'Courier';
font-weight: bold;
/* width: 100%; */
}
2020-01-03 08:53:56 +01:00
.morseCard div div {
cursor: default;
2019-12-27 09:41:53 +01:00
padding: 5px;
2020-01-03 08:53:56 +01:00
margin: 3px;
2019-12-27 09:41:53 +01:00
background: #EEE;
white-space: nowrap;
2020-01-09 10:06:38 +01:00
border-radius: 0px;
2020-01-03 08:53:56 +01:00
-webkit-box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
line-height: 2rem;
}
.morseCard .ditDahs-container, .morseCard .alphanumeric-container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
width: 50%;
}
.morseCard .ditDahs-container {
-webkit-box-pack: end;
-ms-flex-pack: end;
justify-content: flex-end;
2019-12-27 09:41:53 +01:00
}
.morseCard .ditDahs {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: end;
-ms-flex-pack: end;
justify-content: flex-end;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
overflow-wrap: break-word;
}
/*# sourceMappingURL=App.css.map */