Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

corner-ribbon

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

corner-ribbon

Corner ribbon CSS (Sass).

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
Maintainers
1
Weekly downloads
 
Created
Source

corner-ribbon

npm version

Corner ribbon CSS (Sass). Demo

Usage

npm install corner-ribbon

HTML

<div style="position: relative; overflow: hidden;">
  <span class="corner-ribbon corner-ribbon--success corner-ribbon--shadow corner-ribbon--default-left-top">Free</span>
</div>

CSS

<link rel="stylesheet" href="node_modules/corner-ribbon/dist/corner-ribbon.min.css">

Sass

Install dependencies.

npm install sass-math

Load dependencies.

@import 'node_modules/sass-math/math';

Custom corner ribbon sizes.

// id => (width, height)
// generates .corner-ribbon--#{ $id }-[left|right]-[top|bottom] modifier classes
// i.e. .corner-ribbon--large-left-top

$corner-ribbon-sizes: (
  large: (200px, 30px)
) !default;

Custom corner ribbon background colors.

// id => #color
// generates .corner-ribbon--#{ $id } modifier classes
// i.e. .corner-ribbon--red

$corner-ribbon-colors: (
    red: #ff0000
) !default;

Import corner ribbon Sass files in your project.

@import 'node_modules/corner-ribbon/sass/variables';
@import 'node_modules/corner-ribbon/sass/corner-ribbon';

Keywords

FAQs

Package last updated on 05 Jun 2016

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