From 0af42d1dd2eb8954ab11725b4a7eb207218c0bf6 Mon Sep 17 00:00:00 2001 From: harry Date: Sun, 12 Feb 2017 14:43:22 +0530 Subject: [PATCH] Add parameters to bordered mixin - `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 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scss/prototype/_bordered.scss b/scss/prototype/_bordered.scss index 665db8a68..7669df04c 100644 --- a/scss/prototype/_bordered.scss +++ b/scss/prototype/_bordered.scss @@ -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 { -- 2.47.2