1.0.6 • Published 8 years ago

basscss-responsive-states v1.0.6

Weekly downloads
1,460
License
MIT
Repository
github
Last release
8 years ago

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.

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>
1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago