Module: Bridgetown::ImagePipeline::BgImageSet

Defined in:
lib/bridgetown/image_pipeline/bg_image_set.rb

Class Method Summary collapse

Class Method Details

.css(class_name:, variants:, breakpoints:, default_width:, breakpoint_only: nil) ⇒ Object

variants: { width_int => { avif: path, webp: path } } breakpoints: { px_int => width_int }, e.g. { 640 => 400, 768 => 600, 1024 => 800, 1280 => 1200 } default_width: the width used for the un-prefixed rule (largest tier) breakpoint_only: if set, wrap the entire output in @media (min-width: Npx) returns: a single line of CSS (no