Skip to content
This repository has been archived by the owner on Sep 15, 2020. It is now read-only.

Commit

Permalink
Add more detail to the margin mixin documentation example
Browse files Browse the repository at this point in the history
Show use with only two values in the arglist
  • Loading branch information
Tyson Gach committed Mar 24, 2016
1 parent a591940 commit c44324d
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions core/bourbon/library/_margin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,24 @@
/// List of margin values, defined as CSS shorthand.
///
/// @example scss
/// .element {
/// @include margin(null 10px 3em 20vh);
/// .element-one {
/// @include margin(null auto);
/// }
///
/// .element-two {
/// @include margin(10px 3em 20vh null);
/// }
///
/// @example css
/// .element {
/// margin-bottom: 3em;
/// margin-left: 20vh;
/// margin-right: 10px;
/// .element-one {
/// margin-left: auto;
/// margin-right: auto;
/// }
///
/// .element-two {
/// margin-bottom: 20vh;
/// margin-right: 3em;
/// margin-top: 10px;
/// }
///
/// @require {mixin} _directional-property
Expand Down

0 comments on commit c44324d

Please sign in to comment.