# basscss-utility-responsive-states

> Responsive state utilities module for Basscss

Latest version **0.0.5** (published 2015-04-11) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install basscss-utility-responsive-states
pnpm add basscss-utility-responsive-states
yarn add basscss-utility-responsive-states
bun add basscss-utility-responsive-states
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2015-04-11 |
| First published | 2014-12-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Brent Jackson |
| Maintainers | jxnblk |
| Keywords | CSS, OOCSS, Basscss, Rework |

## Links

- npm: https://www.npmjs.com/package/basscss-utility-responsive-states
- Repository: https://github.com/basscss/responsive-states
- Issues: https://github.com/basscss/responsive-states/issues
- npm.io page: https://npm.io/package/basscss-utility-responsive-states

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2015-04-11
- 0.0.4 — 2015-04-10
- 0.0.3 — 2015-04-09
- 0.0.2 — 2014-12-22
- 0.0.1 — 2014-12-11

## README

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.

<div class="overflow-auto">
  <table class="mb2 table-flush table-light">
    <thead>
      <tr> <th>Prefix</th> <th>Description</th> </tr>
    </thead>
    <tbody>
      <tr> <td>(no prefix)</td> <td>Not scoped to a breakpoint</td> </tr>
      <tr> <td>sm-</td> <td>--breakpoint-sm (default: min-width 40em)</td> </tr>
      <tr> <td>md-</td> <td>--breakpoint-md (default: min-width 52em)</td> </tr>
      <tr> <td>lg-</td> <td>--breakpoint-lg (default: min-width 64em)</td> </tr>
    </tbody>
  </table>
</div>

Adjust the custom media queries to suite your needs.


## Show and hide content
Resize the browser window to see the effect.

```html
<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.

```html
<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.

```html
<form>
  <label for="search" class="hide">Search</label>
  <input id="search" type="search" class="field-light">
  <button class="button">Go</button>
</form>
```

---
_Source: https://npm.io/package/basscss-utility-responsive-states · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
