JigSass Button allows for some modification through configuration variables.
Redefine them to your liking before importing JigSass Buttons.
$jigsass-btn-padding
Type: Map
A map of button padding modifiers, each key should contain a list of two
unitless numbers, representing the number of rhythm units used as padding
on the horizontal and vertical axes, respectively.
Default: (default: 2 1)
Properties:
Name |
Description |
Type |
Default Value |
default |
Sets the padding of default button object |
List |
2 1 |
Example:
$jigsass-btn-padding: (
default: 2 1,
small: 1 0.5,
large: 3 3,
);
$jigsass-btn-outline
Type: List
The border width and style (and optionally color) of outlined buttons (.o-btn--outline
)
Default: 1px solid
$jigsass-btn-style
Type: Map
Style declarations to add to the .o-btn
class.
Default: ()
Example:
$jigsass-btn-style: (
transition: all 0.25s ease-out,
);
$jigsass-btn-modifiers
Type: Map
CSS declarations for button modifiers, with each modifier being a nested
map at the first level.
Default: ()
Example:
$jigsass-btn-modifiers: (
primary: (
background-color: #09a5d9,
color: #fff,
'&:hover, &:focus, &:active': (
background-color: darken(#09a5d9, 5%),
)
),
facebook: (
background-color: #3b5998,
color: #fff,
'&:hover, &:focus, &:active': (
background-color: darken(#3b5998, 5%),
)
),
twitter: (
background-color: #55acee,
color: #fff,
'&:hover, &:focus, &:active': (
background-color: darken(#55acee, 5%),
)
),
gplus: (
background-color: #dc4e41,
color: #fff,
'&:hover, &:focus, &:active': (
background-color: darken(#dc4e41, 5%),
)
),
);
$jigsass-btn-disabled
Type: Map
Style declarations for the .o-btn-is-disabled
class.
Default: `
(
opacity: 0.4,
cursor: default,
)