Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

RIFT container queries

7 sites No security coverage
View on drupal.org

This module enables responsive images in Drupal that adapt to the size of their containing element, rather than just the viewport. It uses modern CSS container queries for a more context-aware and modular approach, ideal for component-based design systems. This allows images to fluidly adjust within grids, cards, or other layout regions without requiring custom JavaScript.

RIFT container queries (rift_cq)

RIFT container queries brings the power of modern CSS container queries to responsive images in Drupal.

This lightweight module allows site builders and themers to define image styles that respond to the size of their container — not just the viewport. It is especially useful in component-based design systems where images must adapt fluidly within cards, grids, or flexible layout regions.

Unlike traditional responsive image techniques that rely solely on media queries and viewport breakpoints, rift_cq utilizes container queries for a more context-aware, modular approach.

Key Features

  • Define and apply responsive images based on the size of their container
  • Seamlessly integrates with the RIFT module
  • Leverages CSS @container rules without custom JavaScript
  • Ideal for Layout Builder and design systems that embrace component-based theming

Dependencies & Status

This module is an extension of the RIFT module and relies on its underlying functionality.

Specifically, rift_cq depends on enhancements introduced in the following RIFT issue:

🔗 https://www.drupal.org/project/rift/issues/3533700

Please ensure that the patch or fix from that issue is applied until it is merged into the RIFT module.

Activity

Total releases
1
First release
Jul 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
1.0.x-dev Dev Jul 2, 2025