Mercurial > nebulaweb3
view default/assets/scss/vendors/bourbon/library/_margin.scss @ 0:1d038bc9b3d2 default tip
Up:default
author | Liny <dev@neowd.com> |
---|---|
date | Sat, 31 May 2025 09:21:51 +0800 |
parents | |
children |
line wrap: on
line source
@charset "UTF-8"; /// Provides a quick method for targeting `margin` on specific sides of a /// box. Use a `null` value to “skip” a side. /// /// @argument {arglist} $values /// List of margin values, defined as CSS shorthand. /// /// @example scss /// .element { /// @include margin(null auto); /// } /// /// // CSS Output /// .element { /// margin-left: auto; /// margin-right: auto; /// } /// /// @example scss /// .element { /// @include margin(10px 3em 20vh null); /// } /// /// // CSS Output /// .element { /// margin-bottom: 20vh; /// margin-right: 3em; /// margin-top: 10px; /// } /// /// @require {mixin} _directional-property @mixin margin($values...) { @include _directional-property(margin, false, $values...); }