πŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more β†’
Socket
Book a DemoInstallSign in
Socket

basscss-hide

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basscss-hide

Responsive hide utilities module for Basscss

1.0.1
latest
Source
npm
Version published
Weekly downloads
4.7K
3.05%
Maintainers
1
Weekly downloads
Β 
Created
Source

Use these utilities to conditionally hide elements based on viewport width.

Prefix Naming Convention

Hide utilities differ from other breakpoint-based styles in Basscss. Each hide utility only applies to one breakpoint range.

PrefixDescription
xs-below 40em
sm-40em – 52em
md-52em – 64em
lg-above 64em

Hide content

Resize the browser window to see the effect.

<h3 class="xs-hide">Hidden below 40em</h3>
<h3 class="sm-hide red">Hidden between 40 and 52em</h3>
<h3 class="md-hide red">Hidden between 52 and 64em</h3>
<h3 class="lg-hide red">Hidden above 64em</h3>

Responsive Line Break

Control wrapping at different screen widths.

<h1>
  Responsive Line Break
  <br class="xs-hide">
  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="input">
</form>

Display None

Set display none with this utility. Use this with caution as it might cause accessibility issues depending on where it’s used.

<div>Visible</div>
<div class="display-none">Hidden</div>

FAQs

Package last updated on 07 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