jonkemp / jonkemp/gulp-cssbeautify

Add bad espace with @media keyword

Open
#14 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
19
Forks
2
PR merge metrics
No merged PRs in 30d

Description

With code
```css
@supports not (inset: 10px) {
.articles-wrapper.grid {
margin: 0 0 5rem 0;
}

@media screen and (min-width: 750px) {
.articles-wrapper.grid {
margin-bottom: 7rem;
}
}
}
```
Be beautifyed like this
```css
@supports not (inset: 10px) {
.articles-wrapper.grid {
margin: 0 0 5rem 0;
}
@ media screen and (min-width: 750px) {
.articles-wrapper.grid {
margin-bottom: 7rem;
}
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the formatter output using the nested CSS example in the issue, then inspect the repository's CSS beautification entry point to trace how the nested @media keyword is handled. Done means the formatted output no longer inserts a space inside @media while preserving the surrounding indentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.