Sha256: ae13d6f52ca6d943f1545d6eca962d7168a883c83a2de48b3e924cb6b475c195
Contents?: true
Size: 711 Bytes
Versions: 8
Compression:
Stored size: 711 Bytes
Contents
--- sort: 3 --- # 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
8 entries across 8 versions & 1 rubygems