You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@financial-times/o-big-number

Package Overview
Dependencies
Maintainers
10
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@financial-times/o-big-number

Typographical styles to highlight a big number.


Version published
Weekly downloads
2.1K
decreased by-20.53%
Maintainers
10
Created
Weekly downloads
 

Readme

Source

o-big-number

Typographical styles to highlight and describe a big number. Positioning of the big number, for example to the left in a style of a pull-quote, is left to the user. This is so o-big-number may be used in different contexts without writing extra CSS to remove existing positioning.

  • Usage
  • Markup
  • Sass
  • Migration
  • Licence

Usage

Check out how to include Origami components in your project to get started with o-big-number.

Markup

A big number has two parts. The big number itself and copy to describe the big number.

<div class="o-big-number">
	<div class="o-big-number__title">&pound;350m</div>
	<div class="o-big-number__content">Cost of the rights expected to increase by one-third — or about £350m a year — although some anticipate inflation of up to 70%</div>
</div>

Sass

To output CSS for o-big-number make a single call to the primary mixin oBigNumber.

// outputs .o-big-number, o-big-number__title, etc
@include oBigNumber();

We recommend you use oBigNumber and default o-big-number classes, however if you are unable to update your markup use the mixins oBigNumberTitle and oBigNumberContent:

.my-big-number-title {
    @include oBigNumberTitle();
}

.my-big-number-content {
    @include oBigNumberContent();
}

Migration

StateMajor VersionLast Minor ReleaseMigration guide
✨ active3N/Amigrate to v3
⚠ maintained22.0migrate to v2
╳ deprecated11.1N/A

Licence

This software is published by the Financial Times under the MIT licence.

FAQs

Package last updated on 27 Oct 2023

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc