minmax()
minmax()
`minmax()` は、行や列に最小サイズと最大サイズの両方を設定できる CSS グリッド関数です。
もう一つの例
ケースグリッドは `repeat(auto-fit,minmax(min(18rem,100%),1fr))` を使用します。デスクトップでは 4 枚のカードが 1 行に並び、1 枚のカードは 320px で収まり、ページがはみ出ることはありません。非常に長いクライアント名はトラックを広げずにカード内で折り返されます。
主な部分
- 01最小トラックサイズ
- 02最大トラックサイズ
- 03利用可能空間の分布
以下の場合に使用します
すべてのブレークポイントで異なる列幅を書く代わりに、グリッドトラックに柔軟な制限を与えるために使用してください。
以下の場合は使用しないでください
最小スロットに`1fr`のような柔軟な値を設定しないでください。コンテンツの自動最小サイズも確認してください。
コードで使用する名前
grid-template-columns: repeat(auto-fit, minmax(minimum, maximum)) 出荷前に
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 minmax() (minmax())。 User context:ケースグリッドは `repeat(auto-fit,minmax(min(18rem,100%),1fr))` を使用します。デスクトップでは 4 枚のカードが 1 行に並び、1 枚のカードは 320px で収まり、ページがはみ出ることはありません。非常に長いクライアント名はトラックを広げずにカード内で折り返されます。 Design concept to apply:minmax() (minmax())。 Why it fits:すべてのブレークポイントで異なる列幅を書く代わりに、グリッドトラックに柔軟な制限を与えるために使用してください。 Do not use it when:最小スロットに`1fr`のような柔軟な値を設定しないでください。コンテンツの自動最小サイズも確認してください。 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 minmax() (minmax()) is used now. Definition: `minmax()` は、行や列に最小サイズと最大サイズの両方を設定できる 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.