Skip to the content

Kyuubuキューブ

Turn CSS 3D cubes by touch, keys or notation, reproduce a scramble from a seed, and follow a solve one named step at a time.

Kyuubu (キューブ) is the Japanese spelling of cube. About the name

Contents

Reference · Cube engine and views

GUIDE_CSSconstant

The guide's stylesheet, put in the page once.

Import it

import { GUIDE_CSS } from "@johnmorrisdotca/kyuubu";

Definition

const GUIDE_CSS: "\n.kyuubu-guide{display:grid;gap:.3rem;font:inherit;color:inherit;max-width:100%}\n.kyuubu-guide p{margin:0}\n.kyuubu-guide-move{display:flex;align-items:baseline;gap:.75rem;flex-wrap:wrap}\n.kyuubu-guide-move b{font:700 1.6em/1.1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--kyuubu-guide-ink,inherit)}\n.kyuubu-guide-at{font-size:.85em;opacity:.75;margin-inline-start:auto;font-variant-numeric:tabular-nums}\n.kyuubu-guide-stage{font-size:.875em;opacity:.8}\n.kyuubu-guide-says{font-weight:600}\n.kyuubu-guide-how{font-size:.875em;opacity:.8}\n.kyuubu-guide-off{font-size:.875em;font-weight:700;color:var(--kyuubu-guide-alert,inherit)}\n.kyuubu-guide-row{display:flex;flex-wrap:wrap;gap:.375rem}\n.kyuubu-guide button{touch-action:manipulation;font:inherit;color:inherit;min-height:44px;min-width:44px;padding:0 .9rem;border-radius:999px;border:1px solid var(--kyuubu-guide-rule,color-mix(in srgb,currentColor 28%,transparent));background:var(--kyuubu-guide-button,transparent);cursor:pointer}\n.kyuubu-guide button:focus-visible{outline:2px solid var(--kyuubu-guide-focus,Highlight);outline-offset:2px}\n.kyuubu-guide [hidden]{display:none!important}\n" = `
.kyuubu-guide{display:grid;gap:.3rem;font:inherit;color:inherit;max-width:100%}
.kyuubu-guide p{margin:0}
.kyuubu-guide-move{display:flex;align-items:baseline;gap:.75rem;flex-wrap:wrap}
.kyuubu-guide-move b{font:700 1.6em/1.1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--kyuubu-guide-ink,inherit)}
.kyuubu-guide-at{font-size:.85em;opacity:.75;margin-inline-start:auto;font-variant-numeric:tabular-nums}
.kyuubu-guide-stage{font-size:.875em;opacity:.8}
.kyuubu-guide-says{font-weight:600}
.kyuubu-guide-how{font-size:.875em;opacity:.8}
.kyuubu-guide-off{font-size:.875em;font-weight:700;color:var(--kyuubu-guide-alert,inherit)}
.kyuubu-guide-row{display:flex;flex-wrap:wrap;gap:.375rem}
.kyuubu-guide button{touch-action:manipulation;font:inherit;color:inherit;min-height:44px;min-width:44px;padding:0 .9rem;border-radius:999px;border:1px solid var(--kyuubu-guide-rule,color-mix(in srgb,currentColor 28%,transparent));background:var(--kyuubu-guide-button,transparent);cursor:pointer}
.kyuubu-guide button:focus-visible{outline:2px solid var(--kyuubu-guide-focus,Highlight);outline-offset:2px}
.kyuubu-guide [hidden]{display:none!important}
`

Examples

import { GUIDE_CSS } from "@johnmorrisdotca/kyuubu";

console.log(GUIDE_CSS.includes("."));
true

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kyuubu 1.14.1.