New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

basscss-responsive-states

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basscss-responsive-states

Responsive state utilities module for Basscss

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
84
decreased by-64.56%
Maintainers
1
Weekly downloads
 
Created
Source

Use these utilities to conditionally show and hide elements based on viewport width using a mobile-first approach.

Prefix Naming Convention

All breakpoint-based styles in Basscss follow the same naming convention.

PrefixDescription
(no prefix)Not scoped to a breakpoint
sm---breakpoint-sm (default: min-width 40em)
md---breakpoint-md (default: min-width 52em)
lg---breakpoint-lg (default: min-width 64em)

Adjust the custom media queries to suite your needs.

Show and hide content

Resize the browser window to see the effect.

<h3 class="sm-show">Visible from <code>--breakpoint-sm</code> and up.</h3>
<h3 class="sm-hide red">Hidden from <code>--breakpoint-sm</code> and up.</h3>

Responsive Line Break

Control wrapping at different screen widths.

<h1>
  Responsive Line Break
  <br class="md-show">
  To Control Wrapping
</h1>

Accessible Hide

To visually hide things like form labels in an accessible way, use the .hide utility.

<form>
  <label for="search" class="hide">Search</label>
  <input id="search" type="search" class="field">
  <button class="btn btn-primary">Go</button>
</form>

FAQs

Package last updated on 01 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc