qwörtle/index.css
2022-02-23 11:16:34 +01:00

83 lines
1.1 KiB
CSS

body {
background-color: #1f2937;
color: #fff;
}
.centering {
display: flex;
flex-direction: column;
align-items: center;
}
#main {
display: grid;
grid-template-columns: repeat(2, max-content);
grid-template-rows: repeat(2, max-content);
gap: 2em;
}
.row {
margin-top: 0;
margin-bottom: 0;
}
.invalid {
color: red;
}
.correct {
background-color: rgb(0 204 136);
color: #000;
}
.wrong-position {
background-color: rgb(255 204 0);
color: #000;
}
.cell {
padding: 0.5em;
display: inline-block;
width: 1em;
height: 1em;
font-family: monospace;
font-size: xx-large;
border: 1px solid #bbb;
vertical-align: top;
text-align: center;
}
#keyboard {
margin-top: 1em;
}
/*
.keyboard-row:nth-child(2) {
margin-left: 0.75em;
}
.keyboard-row:nth-child(3) {
margin-left: 1.5em;
}
*/
.key {
width: 1.5em;
height: 1.5em;
font-size: xx-large;
margin: 0.05em;
vertical-align: top;
color: #fff;
background-color: rgb(107 114 128);
border-color: rgb(55 65 81);
cursor: pointer;
}
#backspace, #enter {
width: 3em;
margin: 0.1em;
display: inline-flex;
justify-content: center;
align-items: center;
}