]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Improve -zf-breakpoint-value description 9439/head
authorNicolas Coden <nicolas@ncoden.fr>
Mon, 5 Dec 2016 09:41:14 +0000 (10:41 +0100)
committerNicolas Coden <nicolas@ncoden.fr>
Mon, 5 Dec 2016 09:41:14 +0000 (10:41 +0100)
scss/util/_mixins.scss

index 5aed84d0da3f114fd6b22f6a7735de6f6bda0944..8959ebdf0dbb4d42418e986aaf0b6aaa239bf29b 100644 (file)
   }
 }
 
-/// Generate the content passed to the mixin with a value `$-zf-bp-value` related to a breakpoint, depending on the `$name` parameter.
-/// @param {Number|Keyword} $name [auto]
-///   The $name parameter accepts multiple values:
-///   - A single value will be directly passed as `$-zf-bp-value` to the mixin content.
-///   - A breakpoint name will make `$-zf-bp-value` the corresponding value in `$map`.
-///   - "auto" will generate the mixin content for each breakpoint in `$map` with the corresponding value as `$-zf-bp-value`.
+/// Generate the `@content` passed to the mixin with a value `$-zf-bp-value` related to a breakpoint, depending on the `$name` parameter:
+/// - For a single value, `$-zf-bp-value` is this value.
+/// - For a breakpoint name, `$-zf-bp-value` is the corresponding breakpoint value in `$map`.
+/// - For "auto", `$-zf-bp-value` is the corresponding breakpoint value in `$map` and is passed to `@content`, which is made responsive for each breakpoint of `$map`.
+/// @param {Number|Keyword} $name [auto] - Single value or breakpoint name to use. "auto" by default.
 /// @param {Number|Map} $map - Map of breakpoints and values or single value to use.
 @mixin -zf-breakpoint-value(
   $name: auto,