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

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tysongach committed Mar 31, 2017
1 parent c6dfc48 commit 6ef7091
Show file tree
Hide file tree
Showing 16 changed files with 66 additions and 81 deletions.
9 changes: 4 additions & 5 deletions core/bourbon/library/_contrast-switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@
/// @since 5.0.0

@function contrast-switch(
$base-color,
$dark-color: _fetch-bourbon-setting("contrast-switch-dark-color"),
$light-color: _fetch-bourbon-setting("contrast-switch-light-color")
) {

$base-color,
$dark-color: _fetch-bourbon-setting("contrast-switch-dark-color"),
$light-color: _fetch-bourbon-setting("contrast-switch-light-color")
) {
@if not _is-color($base-color) {
@error "`#{$base-color}` is not a valid color for the `$base-color` " +
"argument in the `contrast-switch` function.";
Expand Down
7 changes: 3 additions & 4 deletions core/bourbon/library/_ellipsis.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@
/// }

@mixin ellipsis(
$width: 100%,
$display: inline-block
) {

$width: 100%,
$display: inline-block
) {
display: $display;
max-width: $width;
overflow: hidden;
Expand Down
19 changes: 9 additions & 10 deletions core/bourbon/library/_font-face.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
///
/// @example scss
/// @include font-face(
/// "source-sans-pro",
/// "fonts/source-sans-pro-regular",
/// ("woff2", "woff")
/// ) {
/// "source-sans-pro",
/// "fonts/source-sans-pro-regular",
/// ("woff2", "woff")
/// ) {
/// font-style: normal;
/// font-weight: 400;
/// }
Expand All @@ -47,12 +47,11 @@
/// @require {function} _fetch-bourbon-setting

@mixin font-face(
$font-family,
$file-path,
$file-formats: _fetch-bourbon-setting("global-font-file-formats"),
$asset-pipeline: _fetch-bourbon-setting("rails-asset-pipeline")
) {

$font-family,
$file-path,
$file-formats: _fetch-bourbon-setting("global-font-file-formats"),
$asset-pipeline: _fetch-bourbon-setting("rails-asset-pipeline")
) {
@font-face {
font-family: $font-family;
src: _font-source-declaration(
Expand Down
9 changes: 4 additions & 5 deletions core/bourbon/library/_modular-scale.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,10 @@
/// @require {function} _fetch-bourbon-setting

@function modular-scale(
$increment,
$value: _fetch-bourbon-setting("modular-scale-base"),
$ratio: _fetch-bourbon-setting("modular-scale-ratio")
) {

$increment,
$value: _fetch-bourbon-setting("modular-scale-base"),
$ratio: _fetch-bourbon-setting("modular-scale-ratio")
) {
$v1: nth($value, 1);
$v2: nth($value, length($value));
$value: $v1;
Expand Down
8 changes: 3 additions & 5 deletions core/bourbon/library/_position.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@
/// @require {function} _unpack-shorthand

@mixin position(
$position,
$box-edge-values
) {

$position,
$box-edge-values
) {
$box-edge-values: _unpack-shorthand($box-edge-values);

$offsets: (
top: nth($box-edge-values, 1),
right: nth($box-edge-values, 2),
Expand Down
9 changes: 4 additions & 5 deletions core/bourbon/library/_prefixer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@
/// @author Hugo Giraudel

@mixin prefixer(
$property,
$value,
$prefixes: ()
) {

$property,
$value,
$prefixes: ()
) {
@each $prefix in $prefixes {
#{"-" + $prefix + "-" + $property}: $value;
}
Expand Down
7 changes: 3 additions & 4 deletions core/bourbon/library/_shade.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@
/// }

@function shade(
$color,
$percent
) {

$color,
$percent
) {
@if not _is-color($color) {
@error "`#{$color}` is not a valid color for the `$color` argument in " +
"the `shade` mixin.";
Expand Down
7 changes: 3 additions & 4 deletions core/bourbon/library/_size.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@
/// @require {function} _is-size

@mixin size(
$width,
$height: $width
) {

$width,
$height: $width
) {
@if _is-size($height) {
height: $height;
} @else {
Expand Down
7 changes: 3 additions & 4 deletions core/bourbon/library/_tint.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@
/// }

@function tint(
$color,
$percent
) {

$color,
$percent
) {
@if not _is-color($color) {
@error "`#{$color}` is not a valid color for the `$color` argument in " +
"the `tint` mixin.";
Expand Down
16 changes: 8 additions & 8 deletions core/bourbon/library/_triangle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@
/// }

@mixin triangle(
$direction,
$width,
$height,
$color
) {
$direction,
$width,
$height,
$color
) {
@if not index(
"up" "up-right" "right" "down-right" "down" "down-left" "left" "up-left",
$direction
) {
"up" "up-right" "right" "down-right" "down" "down-left" "left" "up-left",
$direction
) {
@error "Direction must be `up`, `up-right`, `right`, `down-right`, " +
"`down`, `down-left`, `left` or `up-left`.";
} @else if not _is-color($color) {
Expand Down
9 changes: 4 additions & 5 deletions core/bourbon/library/_value-prefixer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@
/// @author Matthew Tobiasz

@mixin value-prefixer(
$property,
$value,
$prefixes: ()
) {

$property,
$value,
$prefixes: ()
) {
@each $prefix in $prefixes {
#{$property}: #{"-" + $prefix + "-" + $value};
}
Expand Down
7 changes: 3 additions & 4 deletions core/bourbon/utilities/_assign-inputs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
/// @access private

@function _assign-inputs(
$inputs,
$pseudo: null
) {

$inputs,
$pseudo: null
) {
$list: ();

@each $input in $inputs {
Expand Down
9 changes: 4 additions & 5 deletions core/bourbon/utilities/_directional-property.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@
/// @access private

@mixin _directional-property(
$property,
$suffix,
$values
) {

$property,
$suffix,
$values
) {
$top: $property + "-top" + if($suffix, "-#{$suffix}", "");
$bottom: $property + "-bottom" + if($suffix, "-#{$suffix}", "");
$left: $property + "-left" + if($suffix, "-#{$suffix}", "");
Expand Down
11 changes: 5 additions & 6 deletions core/bourbon/utilities/_font-source-declaration.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@
/// @access private

@function _font-source-declaration(
$font-family,
$file-path,
$asset-pipeline,
$file-formats
) {

$font-family,
$file-path,
$asset-pipeline,
$file-formats
) {
$src: ();

$formats-map: (
Expand Down
7 changes: 3 additions & 4 deletions core/bourbon/validators/_contains.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
/// @access private

@function _contains(
$list,
$values...
) {

$list,
$values...
) {
@each $value in $values {
@if type-of(index($list, $value)) != "number" {
@return false;
Expand Down
6 changes: 3 additions & 3 deletions spec/fixtures/library/font-face-2.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@import "setup";

@include font-face(
"calibre",
"fonts/calibre"
) {
"calibre",
"fonts/calibre"
) {
font-style: normal;
font-weight: 600;
unicode-range: U+26;
Expand Down

0 comments on commit 6ef7091

Please sign in to comment.