corner-ribbon
[colors]
, [sizes]
<div class="corner-ribbon" data-ribbon="Sale"></div>
<div class="corner-ribbon-pink" data-ribbon="Pink"></div>
<div class="corner-ribbon-large" data-ribbon="Large"></div>
The corner-ribbons can be customized using the following options:
Property Name | Default Value | Description |
---|---|---|
text-color |
white |
The color of the corner-ribbon text. |
colors |
[green, pink, purple, blue] |
The different colors that should be created. |
sizes |
[default, small, large] |
The different sizes that should be created. |
To change one of the above values, pass your new value(s) to the corner-ribbons()
mixin in your theme file (e.g. assets/themes/Kayzen/_kayzen.scss).
@include corner-ribbons(( 'colors' : ( 'orange' : #ff6600 ), 'sizes' ( 'small' : 0.85em ) ));