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

170 lines
3.6 KiB
SCSS
Raw Normal View History

2020-01-03 08:53:56 +01:00
$main-bg-color: #FFF;
$main-box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
$main-border-radius: 5px;
// $border-radius-neumorphic: 0px -6px 10px rgba(255, 255, 255, 1), 0px 4px 15px rgba(0, 0, 0, 0.15);
2019-12-27 09:41:53 +01:00
html, body {
margin: 0px;
padding: 0px;
height: 100%;
width: 100%;
box-sizing: border-box;
2020-01-03 08:53:56 +01:00
background: $main-bg-color;
2019-12-27 09:41:53 +01:00
}
#root {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
}
#mode-picker {
display: flex;
div {
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
box-shadow: $main-box-shadow;
border-radius: $main-border-radius;
2019-12-27 09:41:53 +01:00
}
}
#main-content {
width: 95vw;
border: 1px solid red;
display: flex;
flex-direction: column;
}
#morseButton {
width: 200px !important;
height: 200px;
margin: 30px;
background: goldenrod;
border-radius: 50%;
align-self: center;
}
#morseBufferDisplay {
display: flex;
justify-content: center;
2020-01-03 08:53:56 +01:00
// border: 1px solid green;
2019-12-27 09:41:53 +01:00
width: 100%;
height: 40px;
2020-01-03 08:53:56 +01:00
margin-bottom: 20px;
2019-12-27 09:41:53 +01:00
#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;
2020-01-03 08:53:56 +01:00
// box-shadow: 0px 1px 0px #000;
border-radius: $main-border-radius;
box-shadow: $main-box-shadow;
2019-12-27 09:41:53 +01:00
display: flex;
justify-content: center;
align-items: center;
font-size: 35px;
font-family: 'Courier';
font-weight: bold;
}
}
2020-01-03 08:53:56 +01:00
#alphanumeric-container {
2019-12-27 09:41:53 +01:00
border-left: 2px solid #000;
2020-01-03 08:53:56 +01:00
padding-left: 5px;
2019-12-27 09:41:53 +01:00
width: 50%;
2020-01-03 08:53:56 +01:00
display: flex;
#alphanumeric {
font-size: 40px;
font-family: 'Courier';
font-weight: bold;
background-color: transparent;
&:first-child {
padding-left: 5px;
padding-right: 5px;
// box-shadow: $main-box-shadow;
}
}
2019-12-27 09:41:53 +01:00
}
}
.space {
font-size: 20px;
}
.morseError {
background: rgba(255,0,0,0.4);
2020-01-03 08:53:56 +01:00
color: rgb(120, 0, 0);
border-radius: 5px;
2019-12-27 09:41:53 +01:00
}
#morseDisplay {
/* border: 1px solid blue; */
display: flex;
flex-direction: column;
.morseCard:nth-child(1){
opacity: 100%;
}
.morseCard:nth-child(2){
opacity: 70%;
}
.morseCard:nth-child(3){
opacity: 50%;
}
.morseCard:nth-child(4){
opacity: 30%;
}
.morseCard:nth-child(5){
opacity: 10%;
}
}
.morseCard {
display: flex;
flex-direction: row !important;
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
div div {
// border: 1px solid purple;
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;
2020-01-03 08:53:56 +01:00
// width: 50%;
2019-12-27 09:41:53 +01:00
white-space: nowrap;
2020-01-03 08:53:56 +01:00
border-radius: $main-border-radius;
box-shadow: $main-box-shadow;
line-height: 2rem;
}
.ditDahs-container, .alphanumeric-container {
display: flex;
width: 50%;
}
.ditDahs-container {
justify-content: flex-end;
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;
}
}