# scss-aspect-ratio

> Simple SCSS Aspect Ratios

Latest version **1.0.0** (published 2017-10-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install scss-aspect-ratio
pnpm add scss-aspect-ratio
yarn add scss-aspect-ratio
bun add scss-aspect-ratio
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-10-21 |
| First published | 2017-10-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | hmphry |
| Maintainers | hmphry |
| Keywords | aspect, ratio, scss |

## Links

- npm: https://www.npmjs.com/package/scss-aspect-ratio
- Repository: https://github.com/hmphry/scss-aspect-ratio
- Homepage: https://github.com/hmphry/scss-aspect-ratio#readme
- Issues: https://github.com/hmphry/scss-aspect-ratio/issues
- npm.io page: https://npm.io/package/scss-aspect-ratio

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-10-21

## README

# scss-aspect-ratio

## overview

Simple SCSS Aspect Ratios.

## installation

npm install --save scss-aspect-ratio

## usage

```scss

@import "scss-aspect-ratio/scss-aspect-ratio";

.ratio-16-9 {
  @include aspect-ratio(16,9); // creates an element that is 16x9
  .content{
    position: absolute;
    width: 100%;
    height: 100%;
  }
}

```

## output

```scss

  .ratio-16-9 {
    position: relative;
  }
  .ratio-16-9:before {
    content: "";
    display: block;
    width: 100%;
    padding-top: 56.25%;
  }
  .ratio-16-9 .content{
    position: absolute;
    width: 100%;
    height: 100%;
  }
}

```

---
_Source: https://npm.io/package/scss-aspect-ratio · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
