awesome-repositories.com
Blog
awesome-repositories.com

Descubre los mejores repositorios open-source con nuestra búsqueda potenciada por IA.

ExplorarBúsquedas curadasAlternativas open-sourceSoftware autohospedableBlogMapa del sitio
ProyectoAcerca deCómo clasificamosPrensaServidor MCP
Aviso legalPrivacidadTérminos
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
marcj avatar

marcj/css-element-queries

0
View on GitHub↗
4,243 estrellas·478 forks·JavaScript·MIT·1 vistamarcj.github.io/css-element-queries↗

Css Element Queries

Este proyecto es una biblioteca CSS responsiva y un monitor de dimensiones de elementos. Proporciona un polyfill para consultas de contenedores CSS, permitiendo que los estilos se apliquen en función de las dimensiones específicas de un elemento en entornos donde el soporte nativo del navegador no está disponible.

La biblioteca monitorea el ancho y el alto de los elementos DOM objetivo en tiempo real, activando devoluciones de llamada personalizadas cada vez que cambian las dimensiones. Adapta los componentes de la UI ejecutando ajustes de diseño y cambios de estilo basados en umbrales de tamaño predefinidos en lugar del tamaño general de la ventana del navegador.

La herramienta gestiona estas adaptaciones a través de varios mecanismos, incluyendo la inyección de variables CSS dinámicas, el cambio de clases basado en umbrales y el uso de la API ResizeObserver para sincronizar las dimensiones de los elementos con las hojas de estilo.

Features

  • Container Queries - Implements size-based styling logic for elements, providing a polyfill for CSS container queries.
  • Dynamic Component Layouts - Automatically adjusts the appearance of UI components as their containing space expands or shrinks.
  • Element Resize Callbacks - Executes custom callback functions immediately whenever the dimensions of a target element change.
  • ResizeObserver Integrations - Uses the ResizeObserver API to watch for changes in element dimensions and trigger style updates.
  • Container Query Polyfills - Provides a polyfill for applying styles based on element dimensions in browsers lacking native container query support.
  • Container-Relative Styling - Applies different CSS rules based on the size of a specific element rather than the browser window.
  • CSS Custom Property Injections - Calculates element sizes and injects them as CSS custom properties for use in style sheets.
  • Element Dimension Tracking - Monitors the width and height of specific HTML elements and triggers updates when they change.
  • Geometric State Mappings - Binds specific CSS rules to the real-time geometric state of target DOM elements.
  • Threshold-Based Styling - Allows CSS rules to change automatically when an element reaches defined width or height thresholds.
  • State-Driven Callbacks - Executes user-defined JavaScript functions when element dimensions cross specific size thresholds.
  • Responsive Layout Adapters - Ships a set of styles and logic for fluid layouts that adapt to parent container sizes.
  • CSS Class-Based Styling - Toggles specific CSS classes when an element crosses predefined width or height boundaries.

Historial de estrellas

Gráfico del historial de estrellas de marcj/css-element-queriesGráfico del historial de estrellas de marcj/css-element-queries

Búsqueda con IA

Explora más repositorios increíbles

Describe lo que necesitas en lenguaje sencillo: la IA clasifica miles de proyectos open-source curados por relevancia.

Start searching with AI

Preguntas frecuentes

¿Qué hace marcj/css-element-queries?

Este proyecto es una biblioteca CSS responsiva y un monitor de dimensiones de elementos. Proporciona un polyfill para consultas de contenedores CSS, permitiendo que los estilos se apliquen en función de las dimensiones específicas de un elemento en entornos donde el soporte nativo del navegador no está disponible.

¿Cuáles son las características principales de marcj/css-element-queries?

Las características principales de marcj/css-element-queries son: Container Queries, Dynamic Component Layouts, Element Resize Callbacks, ResizeObserver Integrations, Container Query Polyfills, Container-Relative Styling, CSS Custom Property Injections, Element Dimension Tracking.

¿Qué alternativas de código abierto existen para marcj/css-element-queries?

Las alternativas de código abierto para marcj/css-element-queries incluyen: jackmoore/autosize — autosize is a client-side JavaScript utility that automatically adjusts the height of HTML textarea elements to fit… sbstjn/timesheet.js — timesheet.js is a JavaScript library for rendering time-series data and event lists as responsive HTML and CSS… ripple-ts/ripple — Ripple is a full-stack TypeScript web framework and reactive UI library used for building interfaces with server-side… cewendel/swtableviewcell — SWTableViewCell is a UIKit component and library for adding interactive swipe-to-reveal action buttons to table view… benhowdle89/grade — Grade is a JavaScript library for image color analysis and dynamic theme generation. It extracts the most prominent… jekip/naive-ui-admin — Naive UI Admin is a Vue 3 admin dashboard framework built with TypeScript, Vite, and the Naive UI component library.…

Alternativas open-source a Css Element Queries

Proyectos open-source similares, clasificados según cuántas características comparten con Css Element Queries.
  • jackmoore/autosizeAvatar de jackmoore

    jackmoore/autosize

    5,092Ver en GitHub↗

    autosize is a client-side JavaScript utility that automatically adjusts the height of HTML textarea elements to fit their text content. It functions as a DOM layout tool designed to manage the dimensions and scrolling behavior of input fields in real time. The utility handles dynamic resizing during user typing and window resize events. It supports height constraints by comparing calculated dimensions against CSS minimum and maximum properties to restore overflow scrolling when limits are reached. The tool provides capabilities to monitor resize events, manually trigger layout refreshes for

    JavaScript
    Ver en GitHub↗5,092
  • sbstjn/timesheet.jsAvatar de sbstjn

    sbstjn/timesheet.js

    6,979Ver en GitHub↗

    timesheet.js is a JavaScript library for rendering time-series data and event lists as responsive HTML and CSS timelines. It serves as a date-based event renderer that converts lists of dated activities into visual chronologies, supporting the creation of web-based timesheets and activity logs. The library provides components for generating visual timelines, time-tracking tables, and project scheduling displays. It transforms raw event data—including start dates, end dates, descriptions, and categories—into structured HTML interfaces that adapt to different screen sizes.

    JavaScript
    Ver en GitHub↗6,979
  • ripple-ts/rippleAvatar de Ripple-TS

    Ripple-TS/ripple

    7,379Ver en GitHub↗

    Ripple is a full-stack TypeScript web framework and reactive UI library used for building interfaces with server-side rendering. It organizes user interfaces into a hierarchy of reusable, scoped components with built-in state management and client-side hydration. The framework is distinguished by its fine-grained reactivity, which updates specific DOM elements without requiring full component re-renders. It integrates server-side logic and client-side components within a single TypeScript codebase, enabling a unified full-stack development workflow. The system covers a broad range of capabil

    JavaScript
    Ver en GitHub↗7,379
  • benhowdle89/gradeAvatar de benhowdle89

    benhowdle89/grade

    3,761Ver en GitHub↗

    Grade is a JavaScript library for image color analysis and dynamic theme generation. It extracts the most prominent colors from an image to automatically generate complementary CSS gradients and coordinated color palettes for web interfaces. The tool identifies dominant colors using pixel-data analysis and applies mathematical offsets to determine matching hues. It can inject these calculated values directly into the document as CSS custom properties or export the gradient data as a raw array for custom visual implementation.

    JavaScript
    Ver en GitHub↗3,761
Ver las 30 alternativas a Css Element Queries→