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

| Name | Type | Version | |-----------------------------------|--------|------------------------------------------------------------------------------

  • 1.0.0
  • npm
  • Socket score

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

Background-size

NameTypeVersion
@citizensadvice/background-sizeUtiltynpm (scoped)

Dependencies

NameDescription
@citizensadvice/supportSystem wide settings/config

Installation

Using your package manager of choice...

$ npm install @citizensadvice/background-size

Then bring into your stylesheets with...

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

OR

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"/>

Introduction

Defines the size of the background image.

.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:

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

Example markup

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

FAQs

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