show keyboard shortcuts
This commit is contained in:
64
style.css
64
style.css
@@ -6,81 +6,81 @@ h1 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
div {
|
||||
section, div {
|
||||
display: flex;
|
||||
row-gap: 0.5em;
|
||||
column-gap: 0.5em;
|
||||
margin: 1em auto;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
align-items: center;
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
table {
|
||||
.grid {
|
||||
border-spacing: 0;
|
||||
border: 1px solid black;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
td, tr {
|
||||
.grid td, tr {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
tr:first-child td:first-child {
|
||||
.grid tr:first-child td:first-child {
|
||||
border-top-left-radius: 5px;
|
||||
}
|
||||
|
||||
tr:first-child td:first-child input {
|
||||
.grid tr:first-child td:first-child input {
|
||||
border-top-left-radius: 4px;
|
||||
}
|
||||
|
||||
tr:first-child td:last-child {
|
||||
.grid tr:first-child td:last-child {
|
||||
border-top-right-radius: 5px;
|
||||
}
|
||||
|
||||
tr:first-child td:last-child input {
|
||||
.grid tr:first-child td:last-child input {
|
||||
border-top-right-radius: 4px;
|
||||
}
|
||||
|
||||
tr:last-child td:first-child {
|
||||
.grid tr:last-child td:first-child {
|
||||
border-bottom-left-radius: 5px;
|
||||
}
|
||||
|
||||
tr:last-child td:first-child > input {
|
||||
.grid tr:last-child td:first-child > input {
|
||||
border-bottom-left-radius: 4px;
|
||||
}
|
||||
|
||||
tr:last-child td:last-child {
|
||||
.grid tr:last-child td:last-child {
|
||||
border-bottom-right-radius: 5px;
|
||||
}
|
||||
|
||||
tr:last-child td:last-child input {
|
||||
.grid tr:last-child td:last-child input {
|
||||
border-bottom-right-radius: 4px;
|
||||
}
|
||||
|
||||
tr:nth-child(3n+1) td {
|
||||
.grid tr:nth-child(3n+1) td {
|
||||
border-top: 1px solid black;
|
||||
}
|
||||
|
||||
tr:nth-child(3n+2) td {
|
||||
.grid tr:nth-child(3n+2) td {
|
||||
border-top: 1px solid grey;
|
||||
border-bottom: 1px solid grey;
|
||||
}
|
||||
|
||||
tr:nth-child(3n) td {
|
||||
.grid tr:nth-child(3n) td {
|
||||
border-bottom: 1px solid black;
|
||||
}
|
||||
|
||||
td:nth-child(3n+1) {
|
||||
.grid td:nth-child(3n+1) {
|
||||
border-left: 1px solid black;
|
||||
}
|
||||
|
||||
td:nth-child(3n+2) {
|
||||
.grid td:nth-child(3n+2) {
|
||||
border-left: 1px solid grey;
|
||||
border-right: 1px solid grey;
|
||||
}
|
||||
|
||||
td:nth-child(3n+3) {
|
||||
.grid td:nth-child(3n+3) {
|
||||
border-right: 1px solid black;
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ input {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
transition: 0.3s;
|
||||
transition: 0.5s;
|
||||
}
|
||||
|
||||
input:enabled {
|
||||
@@ -129,11 +129,35 @@ input::placeholder {
|
||||
.buttons {
|
||||
flex-wrap: wrap;
|
||||
column-gap: 0.2em;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
input[type="color"] {
|
||||
font-size: 1em;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.shortcuts caption {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.shortcuts td {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
kbd {
|
||||
/* from https://developer.mozilla.org */
|
||||
background-color: #eee;
|
||||
border-radius: 3px;
|
||||
border: 1px solid #b4b4b4;
|
||||
box-shadow: 0 1px 1px rgba(0,0,0,.2),0 2px 0 0 rgba(255,255,255,.7) inset;
|
||||
color: #333;
|
||||
display: inline-block;
|
||||
font-family: consolas,"Liberation Mono",courier,monospace;
|
||||
font-size: .85em;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
padding: 4px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
a {
|
||||
|
||||
Reference in New Issue
Block a user