tomhodgins / element-queries-spec

A spec for a Container-Style Element Query Syntax
https://tomhodgins.github.io/element-queries-spec/element-queries.html
367 stars 14 forks source link

Production #7

Closed AndiLeni closed 7 years ago

AndiLeni commented 7 years ago

Hello, I want to know whether this project is ready to be used in production or not.

tomhodgins commented 7 years ago

Hi @AndiLeni! This repository is an unofficial spec describing a lot of the features included in EQCSS.

If you're looking for a production-ready implementation EQCSS does everything in the spec plus more, and there are some other tools like eqcss-parse that can help you with your workflow (depending on how you want to use it). The simplest way is just pulling in EQCSS like this:

<div>Hello</div>

<style>
  @element div and (min-width: 600px) {
    $this {
      background: lime;
    }
  }
</style>

<script src=http://elementqueries.com/EQCSS.js></script>
tomhodgins commented 7 years ago

You can also check out some EQCSS demos on Codepen to see examples of the syntax in use: EQCSS pens on Codepen

AndiLeni commented 7 years ago

Based on you answer I guess it's ready for production. Thanks!