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

@citizensadvice/background-size

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@citizensadvice/background-size

Defines the size of the background image.

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by125%
Maintainers
2
Weekly downloads
 
Created
Source

Background-size npm (scoped)

Defines the size of the background image.

Classes

.bg-cover   { background-size: cover   }
.bg-contain { background-size: contain }

Responsive background-size classes

To apply specific classes at set screen widths, use the following classes:

Class nameDescription
[aboveClassName]-nsScreens with a min-width of 48rem
[aboveClassName]-mScreens with widths from 48rem to 64rem
[aboveClassName]-lScreens with a min-width of 64rem

Examples

<div class="bg-contain bg-cover-ns">...</div>

Installation

$ npm install @citizensadvice/background-size

now import into your stylesheet...

@import '@citizensadvice/background-size/index.scss';

You can also make use of the unpkg service, try adding the link below to the head of your HTML file

<link src="https://unpkg.com/@citizensadvice/background-size@latest/build/background-size.css" />

FAQs

Package last updated on 04 Jul 2019

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