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.
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.
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.