RogerDodger (talk | contribs) (Created page with "→gonna rewrite this to use a grid layout tomorrow: .key-move { min-width: 20px; width: calc(20vw - 32px); max-width: 80px; } .key-moves-legend .key-move { wid...") |
RogerDodger (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
.key-moves { | |||
display: block; | |||
max-width: 600px; | |||
} | |||
.key- | .key-moves tbody { | ||
display: grid; | |||
grid-template-columns: auto repeat(5, 1fr); | |||
grid-auto-rows: auto; | |||
align-items: center; | |||
gap: 2px; | |||
} | } | ||
.key-moves | .key-moves tr { | ||
display: contents; | |||
} | } | ||
.key-moves td { | .key-moves td:first-of-type { | ||
text-align: center; | text-align: center; | ||
grid-column: 1; | |||
} | } | ||
.key- | .key-moves th { | ||
overflow: hidden; | |||
white-space: nowrap; | |||
text-overflow: '·'; | |||
} | |||
.key- | .key-move-cell { | ||
width: 30px; | |||
} | } | ||
@ | @supports (display: grid) { | ||
.key-moves .key-move-cell { | |||
width: 100%; | |||
} | |||
} | } | ||
.key-move-cell.primary { height: 1em; } | |||
.key-move-cell.secondary { height: 0.7em; } | |||
.key-move-cell.extra { height: 0.4em; } |
Revision as of 07:13, 9 July 2021
.key-moves {
display: block;
max-width: 600px;
}
.key-moves tbody {
display: grid;
grid-template-columns: auto repeat(5, 1fr);
grid-auto-rows: auto;
align-items: center;
gap: 2px;
}
.key-moves tr {
display: contents;
}
.key-moves td:first-of-type {
text-align: center;
grid-column: 1;
}
.key-moves th {
overflow: hidden;
white-space: nowrap;
text-overflow: '·';
}
.key-move-cell {
width: 30px;
}
@supports (display: grid) {
.key-moves .key-move-cell {
width: 100%;
}
}
.key-move-cell.primary { height: 1em; }
.key-move-cell.secondary { height: 0.7em; }
.key-move-cell.extra { height: 0.4em; }