Reference · Cube engine and views
MOVE_LIST_CSSconstant
The list's stylesheet, put in the page once.
Import it
import { MOVE_LIST_CSS } from "@johnmorrisdotca/kyuubu";
Definition
const MOVE_LIST_CSS: "\n.kyuubu-moves{display:grid;gap:.5rem;box-sizing:border-box;max-width:100%;max-height:var(--kyuubu-moves-height,13.5rem);overflow-y:auto;overscroll-behavior:contain;padding:2px;font:inherit;color:inherit;position:relative}\n.kyuubu-moves-group{display:flex;flex-wrap:wrap;gap:.25rem;align-items:center}\n.kyuubu-moves-label{flex:0 0 100%;font-size:.75em;font-weight:700;letter-spacing:.04em;opacity:.75}\n.kyuubu-moves button{touch-action:manipulation;font:600 .9375rem/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-variant-ligatures:none;color:inherit;min-height:44px;min-width:44px;padding:0 .4rem;border-radius:10px;border:1px solid var(--kyuubu-moves-rule,var(--kyuubu-player-rule,color-mix(in srgb,currentColor 28%,transparent)));background:transparent;cursor:pointer}\n.kyuubu-moves button[data-done]{opacity:.9}\n.kyuubu-moves button:not([data-done]):not([aria-current]){opacity:.7}\n.kyuubu-moves button[aria-current=\"step\"]{opacity:1;background:var(--kyuubu-moves-ink,var(--kyuubu-player-ink,currentColor));border-color:var(--kyuubu-moves-ink,var(--kyuubu-player-ink,currentColor))}\n.kyuubu-moves button[aria-current=\"step\"]>span{color:var(--kyuubu-moves-paper,var(--kyuubu-player-paper,Canvas))}\n.kyuubu-moves button:focus-visible{outline:2px solid var(--kyuubu-moves-focus,var(--kyuubu-player-focus,Highlight));outline-offset:2px}\n" = `
.kyuubu-moves{display:grid;gap:.5rem;box-sizing:border-box;max-width:100%;max-height:var(--kyuubu-moves-height,13.5rem);overflow-y:auto;overscroll-behavior:contain;padding:2px;font:inherit;color:inherit;position:relative}
.kyuubu-moves-group{display:flex;flex-wrap:wrap;gap:.25rem;align-items:center}
.kyuubu-moves-label{flex:0 0 100%;font-size:.75em;font-weight:700;letter-spacing:.04em;opacity:.75}
.kyuubu-moves button{touch-action:manipulation;font:600 .9375rem/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-variant-ligatures:none;color:inherit;min-height:44px;min-width:44px;padding:0 .4rem;border-radius:10px;border:1px solid ${RULE};background:transparent;cursor:pointer}
.kyuubu-moves button[data-done]{opacity:.9}
.kyuubu-moves button:not([data-done]):not([aria-current]){opacity:.7}
.kyuubu-moves button[aria-current="step"]{opacity:1;background:${INK};border-color:${INK}}
.kyuubu-moves button[aria-current="step"]>span{color:${PAPER}}
.kyuubu-moves button:focus-visible{outline:2px solid var(--kyuubu-moves-focus,var(--kyuubu-player-focus,Highlight));outline-offset:2px}
`
Examples
import { MOVE_LIST_CSS } from "@johnmorrisdotca/kyuubu";
console.log(MOVE_LIST_CSS.includes("."));trueWhat it prints (run when this page was built)