Flexbox
フレックスボックス
Flexboxは、一度に1つの方向のためのCSSレイアウトシステムです。アイテムを行または列に沿って並べ、均等に配置します。
もう一つの例
ツールバーは、左にタイトルを置き、右に操作ボタンを置きます。すべてのコントロールが、上から下まで中央に揃います。
主な部分
- 01Outer constraint
- 02Content and spacing model
- 03Computed size or reflow result
以下の場合に使用します
揃え、折り返し、またはコンテンツベースのサイズが必要な行や列にはFlexboxを使用してください。
以下の場合は使用しないでください
明確な二方向レイアウトにはCSSグリッドを使用してください。Flexboxで行と列を同時に管理しようとしないでください。
コードで使用する名前
display: flex 出荷前に
Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience.
Outcome:Complete the task with フレックスボックス (Flexbox)。 User context:ツールバーは、左にタイトルを置き、右に操作ボタンを置きます。すべてのコントロールが、上から下まで中央に揃います。 Design concept to apply:フレックスボックス (Flexbox)。 Why it fits:揃え、折り返し、またはコンテンツベースのサイズが必要な行や列にはFlexboxを使用してください。 Do not use it when:明確な二方向レイアウトにはCSSグリッドを使用してください。Flexboxで行と列を同時に管理しようとしないでください。 Design requirements: Set the content order, shared design values, and reusable components. Define how the layout changes by screen size and state. Keep useful design choices separate from decoration. Inclusion and resilience: Check contrast, zoom, languages, themes, and reduced motion when needed. Do not use color or effects as the only way to show meaning. Acceptance criteria: The design stays clear on phones and desktops, at zoom, in every theme, and in all supported languages. Interactive states stay clear and consistent. Evidence and limits (evidence boundary):きちんとした書類でも、まだドラフトやリリース候補、あるいは最終版かもしれません。ステータスや、ブラウザやプラットフォームの対応状況を確認しましょう。 Unknowns to confirm: Brand limits, amount of content, supported themes and languages, target devices, and design-system rules.
このリクエストを確認する
Review how フレックスボックス (Flexbox) is used now. Definition: Flexboxは、一度に1つの方向のためのCSSレイアウトシステムです。アイテムを行または列に沿って並べ、均等に配置します。 Release checks: Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.