button-style-backdrop
@include button-style-backdrop($blur);Description
Add a translucent, blurred (where supported) backdrop to outlined buttons to help with legibility.
Parameters
$blur (unit)
The amount to blur the backdrop by.
Default: 10px
Return
(CSS) Styles to apply backdrop to buttons.
Example
Apply backdrops to buttons
@include button-style-backdrop();Interactive example
Blur supportNot all browsers support the
backdrop-filterproperty. When not supported, the backdrop will instead have a slightly more opaque backdrop to ensure legibility.
Updated 5 months ago