CSSを最小化

余分なコード整形を除去します。 出力は圧縮ファイルではなくテキストです。

入力: テキスト結果: テキスト

テキスト入力

ツールの設定

使用例

Compact a flex layout for a copied style tag

入力

.toolbar { display: flex; gap: 8px; align-items: center; }

Expected answer

.toolbar {display: flex;gap: 8px;align-items: center;}
コメントを保持
Off
Keep the attribution comment in a distributed theme

入力

/* Theme fragment: CC0 */
:root { --accent: #005fcc; }
a { color: var(--accent); }

Expected answer

/*Theme fragment: CC0 */:root {--accent: #005fcc;}a {color: var(--accent);}
コメントを保持
On
Remove a development note from a hover rule

入力

/* temporary debug border removed */
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px #ccc; }

Expected answer

 .card:hover {transform: translateY(-2px);box-shadow: 0 2px 4px #ccc;}
コメントを保持
Off
Compact an RGB color and a quoted font family

入力

h1 { color: rgb(12, 34, 56); font-family: "Times New Roman", serif; }

Expected answer

h1 {color: rgb(12, 34, 56);font-family: "Times New Roman", serif;}
コメントを保持
Off
Reduce a reduced-motion override

入力

@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

Expected answer

@media (prefers-reduced-motion: reduce) {.spinner {animation: none;}}
コメントを保持
Off

パラメーター

パラメーター既定値入力と選択肢
コメントを保持falseオンまたはオフ

関連ツール

コード整形

操作の参考資料

元の技術文書を見る (English)