forumone / nextjs-project

Next.js project template
0 stars 0 forks source link

Container query mixin #102

Closed kmonahan closed 2 months ago

kmonahan commented 3 months ago

Ports https://github.com/forumone/gesso/pull/773 from Gesso Drupal and adjusts syntax to work with postcss-advanced-variables, which doesn't support conditional variables like Sass does, but instead handles scope similar to JavaScript. Also uses the range syntax for container queries and removes the default container-query() mixin, since that proved to be one nested level too far for postcss.