Sha256: 0bf6c514794f8b67ded2aa33bba0723336cd484cfcc42f12d99c7b6ac70b6173
Contents?: true
Size: 711 Bytes
Versions: 3
Compression:
Stored size: 711 Bytes
Contents
--- sort: 1 --- # Media Queries Jekyll Picture Tag handles media queries by letting you define them by name in `_data/picture.yml`, and then referencing that name whenever you need it. _Format:_ ```yaml # _data/picture.yml media_queries: (name): (css media query) (name): (css media query) (...) ``` _Example:_ ```yaml # _data/picture.yml media_queries: mobile: "max-width: 600px" tablet: "max-width: 800px" ultrawide: "min-width: 1400px" ``` They are used in a few different places: specifying alternate source images in your liquid tag, building the 'sizes' attribute within your presets, and in a few configuration settings. Quotes are recommended, because yml gets confused by colons.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jekyll_picture_tag-1.14.0 | docs/users/presets/media_queries.md |
jekyll_picture_tag-1.13.0 | docs/users/presets/media_queries.md |
jekyll_picture_tag-1.12.0 | docs/users/presets/media_queries.md |