mdgriffith / style-elements-design-discussion

BSD 3-Clause "New" or "Revised" License
8 stars 0 forks source link

Media Queries #6

Closed mdgriffith closed 7 years ago

mdgriffith commented 7 years ago

Media queries don't change very often. That's kinda the gist of this.

As of right now, style-elements allows you to define a media query as a string, or use any of the following premade media queries that are provided in the library.

Their actual values live in the library.

I'm not sure it's worth spending more time enhancing this (by, for example, making a type-checked set of functions to describe a media-query).

One sorta interesting approach would be to have media-queries be implemented entirely in elm by making a stylesheet be a function that takes a window and returns a stylesheet. However this feels like overkill and I can't actually come up with any real benefits to this approach.

mdgriffith commented 7 years ago

Seeing that last comment is sorta hilarious because that's where this library landed.

Layout -> view and responsiveness -> view