Sha256: 44fe801b49599e8a7e0a8cae2d0fcfb4067d94285e83152dd8c614ffb2c153c3
Contents?: true
Size: 1.97 KB
Versions: 24
Compression:
Stored size: 1.97 KB
Contents
# media-query-list-comma-newline-before Require a newline or disallow whitespace before the commas of media query lists. <!-- prettier-ignore --> ```css @media screen and (color) , projection and (color) {} /** ↑ * This comma */ ``` ## Options `string`: `"always"|"always-multi-line"|"never-multi-line"` ### `"always"` There _must always_ be a newline before the commas. The following patterns are considered violations: <!-- prettier-ignore --> ```css @media screen and (color), projection and (color) {} ``` <!-- prettier-ignore --> ```css @media screen and (color), projection and (color) {} ``` The following patterns are _not_ considered violations: <!-- prettier-ignore --> ```css @media screen and (color) ,projection and (color) {} ``` <!-- prettier-ignore --> ```css @media screen and (color) , projection and (color) {} ``` ### `"always-multi-line"` There _must always_ be a newline before the commas in multi-line media query lists. The following patterns are considered violations: <!-- prettier-ignore --> ```css @media screen and (color), projection and (color) {} ``` The following patterns are _not_ considered violations: <!-- prettier-ignore --> ```css @media screen and (color), projection and (color) {} ``` <!-- prettier-ignore --> ```css @media screen and (color) ,projection and (color) {} ``` <!-- prettier-ignore --> ```css @media screen and (color) , projection and (color) {} ``` ### `"never-multi-line"` There _must never_ be whitespace before the commas in multi-line media query lists. The following patterns are considered violations: <!-- prettier-ignore --> ```css @media screen and (color) ,projection and (color) {} ``` <!-- prettier-ignore --> ```css @media screen and (color) , projection and (color) {} ``` The following patterns are _not_ considered violations: <!-- prettier-ignore --> ```css @media screen and (color), projection and (color) {} ``` <!-- prettier-ignore --> ```css @media screen and (color), projection and (color) {} ```
Version data entries
24 entries across 24 versions & 1 rubygems