]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add parameters to bordered mixin
authorharry <harmanmanchanda182@gmail.com>
Sun, 12 Feb 2017 09:13:22 +0000 (14:43 +0530)
committerharry <harmanmanchanda182@gmail.com>
Sun, 12 Feb 2017 09:13:22 +0000 (14:43 +0530)
- `width[prototype-border-width]` Width of the border
- `type[prototype-border-type]` Type of the border
- `color[prototype-border-color]` Color of the border

scss/prototype/_bordered.scss

index 665db8a68b076675fbb64dd683a362e68eab0b2d..7669df04c998352797b00743fb425fdec65cbddd 100644 (file)
@@ -22,8 +22,16 @@ $prototype-border-type: solid !default;
 /// @type Color
 $prototype-border-color: $medium-gray !default;
 
-@mixin bordered {
-  border: $prototype-border-width $prototype-border-type $prototype-border-color;
+/// Bordered Utility: Adds a light border to an element by default.
+/// @param {Number} $width [$prototype-border-width] Width of the border
+/// @param {String} $type [$prototype-border-type] Type of the border
+/// @param {Color} $color [$prototype-border-color] Color of the border 
+@mixin bordered(
+  $width: $prototype-border-width,
+  $type: $prototype-border-type,
+  $color: $prototype-border-color
+) {
+  border: $width $type $color;
 }
 
 @mixin foundation-prototype-bordered {