kitbash Sign in Connect agent
Components

Question slips

Questions on tilted paper slips that open in place; an open slip straightens and shows its answer.

Part of the style

Scattered Paper Cards

7 parts that belong together, with their tokens, type and rules.

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --field: #f1f1f1;
  --on-field: #ffffff;
  --paper: #ffffff;
  --paper-bright: #ffffff;
  --paper-shade: #ffffff;
  --paper-blue: #ffffff;
  --ink: #2c1608;
  --ink-soft: #9c988d;
  --line-draw: #ffffff;
  --creature-dark: #1f0a01;
  --card-sun: #d86d02;
  --card-orange: #d36c0f;
  --card-lemon: #d8721e;
  --creature-cream: #b99c8a;
  --card-mint: #dc621f;
  --card-aqua: #602607;
  --field-deep: #d15912;
  --card-red: #c3743f;
  --creature-brown: #4e3423;
  --creature-rust: #a1653f;
}
</style>

<section class="help" aria-labelledby="help-title">
  <div class="help__side">
    <span class="help__badge" aria-hidden="true">?</span>
    <h2 class="help__title" id="help-title">Questions from the grown-ups</h2>
    <p class="help__text">The short answers. The long ones are in the box with the cards.</p>
  </div>

  <div class="help__slips">
    <details class="help__slip help__slip--paper" open>
      <summary class="help__q">What age are the cards for?</summary>
      <p class="help__a">Four and up with a helper, eight and up alone. The pictures carry the steps, so reading is optional.</p>
    </details>
    <details class="help__slip help__slip--sun">
      <summary class="help__q">Does it really need sound on?</summary>
      <p class="help__a">No. Every sound has a word on the card too, so the kitchen can stay as quiet as the house needs.</p>
    </details>
    <details class="help__slip help__slip--mint">
      <summary class="help__q">Is there anything sharp?</summary>
      <p class="help__a">Cards with a knife or the hob have a red corner. Those steps belong to whoever is tallest.</p>
    </details>
    <details class="help__slip help__slip--paper">
      <summary class="help__q">Can we print our own?</summary>
      <p class="help__a">Yes. Every card comes as a printable sheet, and a blank one for family recipes.</p>
    </details>
  </div>
</section>

<style>
  .help {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--space-xl);
    align-items: start;
    padding: var(--section-space) var(--edge);
    background: var(--field);
    color: var(--on-field);
  }
  .help__badge {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-l);
    border: var(--ring) solid currentColor;
    border-radius: var(--pill);
    font: 700 2rem/1 var(--font-display);
    rotate: -10deg;
  }
  .help__title { margin: 0 0 var(--space-m); font: 700 var(--text-xl)/1.02 var(--font-display); text-wrap: balance; }
  .help__text { margin: 0; max-width: 30ch; }

  .help__slips { display: grid; gap: var(--space-m); }
  .help__slip {
    color: var(--ink);
    clip-path: var(--q);
    rotate: var(--r);
    transition: rotate var(--settle) var(--ease-pop);
  }
  .help__slip:nth-child(1) { --r: -1.5deg; --q: var(--quad-a); }
  .help__slip:nth-child(2) { --r: 1.8deg; --q: var(--quad-b); margin-inline: var(--space-l) 0; }
  .help__slip:nth-child(3) { --r: -2.4deg; --q: var(--quad-c); margin-inline: var(--space-s) var(--space-l); }
  .help__slip:nth-child(4) { --r: 1.2deg; --q: var(--quad-a); margin-inline: var(--space-xl) 0; }
  .help__slip[open] { rotate: 0deg; }
  .help__slip--paper { background: var(--paper); }
  .help__slip--sun { background: var(--card-sun); }
  .help__slip--mint { background: var(--card-mint); }
  .help__q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-m);
    min-height: 60px;
    padding: var(--space-m) var(--space-l);
    font: 600 var(--text-l)/1.15 var(--font-display);
    list-style: none;
    cursor: pointer;
  }
  .help__q::-webkit-details-marker { display: none; }
  .help__q::after {
    content: "+";
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: var(--ring) solid currentColor;
    border-radius: var(--pill);
    font-size: 1.25rem;
    transition: rotate var(--settle) var(--ease-pop);
  }
  .help__slip[open] .help__q::after { rotate: 45deg; }
  .help__q:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 4px; }
  .help__a {
    margin: 0;
    padding: 0 var(--space-l) var(--space-l);
    max-width: 52ch;
    animation: help-drop var(--settle) var(--ease);
  }
  @keyframes help-drop { from { opacity: 0; translate: 0 -8px; } }

  @media (max-width: 48rem) {
    .help { grid-template-columns: minmax(0, 1fr); }
    .help__slip:nth-child(n) { margin-inline: 0; }
  }
</style>

Similar components

Numbered questions

Numbered questions

Pill questions

Pill questions

Question wheel

Question wheel

Before you come

Before you come

Information accordion

Information accordion

Good-to-know list

Good-to-know list

Question rows

Question rows

Questions

Questions