152 lines
2.7 KiB
CSS
152 lines
2.7 KiB
CSS
body {
|
|
background-color: antiquewhite;
|
|
height: 100%;
|
|
}
|
|
|
|
.navbar {
|
|
background-color: steelblue;
|
|
}
|
|
|
|
.navbar-default .navbar-brand, .navbar-default .navbar-nav>li>a {
|
|
color: white;
|
|
}
|
|
|
|
.flex-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-wrap: nowrap;
|
|
justify-content: normal;
|
|
align-items: normal;
|
|
align-content: normal;
|
|
padding: 20px;
|
|
margin-top: 40px;
|
|
margin-bottom: 40px;
|
|
background-color: antiquewhite;
|
|
}
|
|
|
|
.flex-items {
|
|
padding: 20px;
|
|
}
|
|
|
|
.flex-items:nth-child(1) {
|
|
display: block;
|
|
flex-grow: 0;
|
|
flex-shrink: 1;
|
|
flex-basis: auto;
|
|
align-self: auto;
|
|
order: 0;
|
|
font-size: 28px;
|
|
text-align: center;
|
|
margin: 0 auto 20px;
|
|
}
|
|
|
|
.flex-items:nth-child(2) {
|
|
display: block;
|
|
flex-grow: 0;
|
|
flex-shrink: 1;
|
|
flex-basis: auto;
|
|
align-self: auto;
|
|
order: 0;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
#keyboard {
|
|
width: 450px;
|
|
border: 2px solid black;
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
grid-template-rows: repeat(2, 1fr);
|
|
grid-row-gap: 12px;
|
|
padding: 12px;
|
|
margin: 0 auto;
|
|
background-color: slategray;
|
|
opacity: 0;
|
|
}
|
|
|
|
.keyboard-key {
|
|
width: 100px;
|
|
height: 100px;
|
|
border: 2px solid black;
|
|
margin: 2px;
|
|
background-color: white;
|
|
}
|
|
|
|
#keyboard-key:nth-child(1) {
|
|
grid-area: 1 / 1 / 2 / 2;
|
|
}
|
|
|
|
#keyboard-key:nth-child(2) {
|
|
grid-area: 1 / 2 / 2 / 3;
|
|
}
|
|
|
|
#keyboard-key:nth-child(3) {
|
|
grid-area: 1 / 3 / 2 / 4;
|
|
}
|
|
|
|
#keyboard-key:nth-child(4) {
|
|
grid-area: 1 / 4 / 2 / 5;
|
|
}
|
|
|
|
#keyboard-key:nth-child(5) {
|
|
grid-area: 2 / 1 / 3 / 2;
|
|
}
|
|
|
|
#keyboard-key:nth-child(6) {
|
|
grid-area: 2 / 2 / 3 / 3;
|
|
}
|
|
|
|
#keyboard-key:nth-child(7) {
|
|
grid-area: 2 / 3 / 3 / 4;
|
|
}
|
|
|
|
#keyboard-key:nth-child(8) {
|
|
grid-area: 2 / 4 / 3 / 5;
|
|
}
|
|
|
|
#letterbox {
|
|
min-height: 100px;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
align-items: normal;
|
|
align-content: normal;
|
|
}
|
|
|
|
.letterbox-letter, .letterbox-letter-hl {
|
|
width: 20px;
|
|
height: 36px;
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
color: black;
|
|
border-bottom: solid black 2px;
|
|
margin: 4px;
|
|
display: block;
|
|
flex-grow: 0;
|
|
flex-shrink: 1;
|
|
flex-basis: auto;
|
|
align-self: auto;
|
|
order: 0;
|
|
}
|
|
|
|
.letterbox-letter-hl {
|
|
border: solid black 2px;
|
|
background-color: yellow;
|
|
}
|
|
|
|
#typing-text {
|
|
visibility:hidden;
|
|
position: absolute;
|
|
}
|
|
|
|
#startButton {
|
|
width: 200px;
|
|
font-size: 36px;
|
|
background-color: steelblue;
|
|
}
|
|
|
|
#content-area {
|
|
border: 2px solid black;
|
|
margin-top: 100px;
|
|
border-radius: 4px;
|
|
} |