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)