Skip to content

csuwildcat/element-queries

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 

Element Queries

How to use Element Queries

  1. Add the main.js amd main.css files located in /src to your page
  2. Start having hyper-responsive, element query fun!

Example Markup:

  <section media="query(small-width, (max-width: 300px))">

    <ul>
      <li>One</li>
      <li>Two</li>
      <li>Three</li>
    </ul>

  </section>

Example CSS:

  section[matched-media~="small-width"] {
    font-size: 50%; /* small text for a wee lil element! */
  }

About

A library agnostic bit of code that enables element queries for hyper-responsive layouts and UI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published