mirror of
https://github.com/genemecija/learn-morse-code.git
synced 2026-01-09 10:09:58 +01:00
136 lines
2.6 KiB
CSS
136 lines
2.6 KiB
CSS
html, body {
|
|
margin: 0px;
|
|
padding: 0px;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
#root {
|
|
height: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
#mode-picker {
|
|
display: flex;
|
|
}
|
|
#mode-picker div {
|
|
margin: 15px;
|
|
padding: 5px;
|
|
box-shadow: 0px 0px 15px #000;
|
|
}
|
|
#main-content {
|
|
width: 95vw;
|
|
border: 1px solid red;
|
|
}
|
|
|
|
#morseButton {
|
|
width: 200px !important;
|
|
height: 200px;
|
|
background: goldenrod;
|
|
border-radius: 100px;
|
|
}
|
|
|
|
#morseBufferDisplay {
|
|
display: flex;
|
|
justify-content: center;
|
|
border: 1px solid green;
|
|
width: 100%;
|
|
height: 40px;
|
|
}
|
|
/* #morseBufferDisplay div {
|
|
width: 50% !important;
|
|
border: 1px dotted orange;
|
|
} */
|
|
#morseBufferDisplay #ditDahs {
|
|
width: 50%;
|
|
padding-right: 5px;
|
|
border-right: 2px solid #000;
|
|
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: flex-end;
|
|
}
|
|
.ditDah {
|
|
background: #DDD;
|
|
height: 40px;
|
|
width: 30px !important;
|
|
margin-left: 3px;
|
|
box-shadow: 0px 1px 0px #000;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 35px;
|
|
font-family: 'Courier';
|
|
font-weight: bold;
|
|
}
|
|
.space {
|
|
font-size: 20px;
|
|
}
|
|
.morseError {
|
|
background: rgba(255,0,0,0.4);
|
|
}
|
|
|
|
#morseBufferDisplay #alphanumeric {
|
|
padding-left: 5px;
|
|
border-left: 2px solid #000;
|
|
width: 50%;
|
|
font-size: 40px;
|
|
font-family: 'Courier';
|
|
font-weight: bold;
|
|
}
|
|
#morseDisplay {
|
|
/* border: 1px solid blue; */
|
|
display: flex;
|
|
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: flex;
|
|
flex-direction: row !important;
|
|
justify-content: center;
|
|
/* border: 1px solid orange; */
|
|
margin-bottom: 2px;
|
|
font-size: 40px;
|
|
font-family: 'Courier';
|
|
font-weight: bold;
|
|
/* width: 100%; */
|
|
}
|
|
.morseCard div {
|
|
/* border: 1px solid green; */
|
|
padding: 5px;
|
|
margin: 2px;
|
|
/* border: 1px solid purple; */
|
|
background: #EEE;
|
|
/* background-image: linear-gradient(90deg, transparent, #EEE); */
|
|
/* box-shadow: 0px 2px 2px -2px #666; */
|
|
/* justify-content: space-around; */
|
|
width: 50%;
|
|
}
|
|
.morseCard .ditDahs {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
/* #morseBufferDisplay {
|
|
border: 1px solid green;
|
|
}
|
|
#morseDisplay #cardContainer div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
} */
|