Skip to content

Commit

Permalink
fixup! Add deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyson Gach committed May 20, 2016
1 parent f915738 commit c80b557
Show file tree
Hide file tree
Showing 27 changed files with 33 additions and 33 deletions.
8 changes: 4 additions & 4 deletions app/assets/stylesheets/_bourbon-deprecated-upcoming.scss
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@

// Flexible grid
@function flex-grid($columns, $container-columns: $fg-max-columns) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `flex-grid` is deprecated and will be " +
"removed in 5.0.0. For grid functions, check out Bourbon's sister library" +
"Neat.";
Expand All @@ -389,7 +389,7 @@

// Flexible gutter
@function flex-gutter($container-columns: $fg-max-columns, $gutter: $fg-gutter) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `flex-gutter` is deprecated and will be " +
"removed in 5.0.0. For grid functions, check out Bourbon's sister library" +
"Neat.";
Expand All @@ -400,7 +400,7 @@
}

@function grid-width($n) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `grid-width` is deprecated and will be " +
"removed in 5.0.0. For grid functions, check out Bourbon's sister library" +
"Neat.";
Expand All @@ -410,7 +410,7 @@
}

@function golden-ratio($value, $increment) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `golden-ratio` is deprecated and will be " +
"removed in 5.0.0. You can use the `modular-scale` function instead.";
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/functions/_assign-inputs.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@function assign-inputs($inputs, $pseudo: null) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `assign-inputs` is deprecated and will be " +
"removed in 5.0.0.";
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/functions/_contains-falsy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/// @return {Bool}
@function contains-falsy($list) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `contains-falsy` is deprecated and will be " +
"removed in 5.0.0.";
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/functions/_contains.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/// @return {Bool}
@function contains($list, $values...) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `contains` is deprecated and will be " +
"removed in 5.0.0.";
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/functions/_is-length.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/// @param {String} $value

@function is-length($value) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `is-length` is deprecated and will be " +
"removed in 5.0.0.";
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/functions/_is-light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/// @return {Bool}
@function is-light($hex-color) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `is-light` is deprecated and will be " +
"removed in 5.0.0.";
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/functions/_is-number.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/// @require {function} contains

@function is-number($value) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `is-number` is deprecated and will be " +
"removed in 5.0.0.";
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/functions/_is-size.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// @require {function} is-length

@function is-size($value) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `is-size` is deprecated and will be " +
"removed in 5.0.0.";
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/functions/_px-to-em.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// if the parent is another value say 24px write em(12, 24)

@function em($pxval, $base: $em-base) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `em` is deprecated and will be " +
"removed in 5.0.0.";
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/functions/_px-to-rem.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Assumes $em-base is the font-size of <html>

@function rem($pxval) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `rem` is deprecated and will be " +
"removed in 5.0.0.";
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/functions/_strip-units.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/// @return {Number (Unitless)}
@function strip-units($value) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `strip-units` is deprecated and will be " +
"removed in 5.0.0. Use the renamed `strip-unit` function instead.";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Example: transition-property-names((transform, color, background), moz) -> -moz-transform, color, background
//************************************************************************//
@function transition-property-names($props, $vendor: false) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `transition-property-names` is deprecated " +
"and will be removed in 5.0.0.";
}
Expand All @@ -17,7 +17,7 @@
}

@function transition-property-name($prop, $vendor: false) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `transition-property-name` is deprecated " +
"and will be removed in 5.0.0.";
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/functions/_unpack.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/// }
@function unpack($shorthand) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `unpack` is deprecated and will be " +
"removed in 5.0.0.";
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/helpers/_convert-units.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Source: http://sassmeister.com/gist/9647408
//************************************************************************//
@function _convert-units($number, $unit) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `_convert-units` is deprecated and will " +
"be removed in 5.0.0.";
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/helpers/_directional-values.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/// @return {List}
@function collapse-directionals($vals) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `collapse-directionals` is deprecated and " +
"will be removed in 5.0.0.";
}
Expand Down
4 changes: 2 additions & 2 deletions app/assets/stylesheets/helpers/_font-source-declaration.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Reference: http://goo.gl/Ru1bKP

@function font-url-prefixer($asset-pipeline) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `font-url-prefixer` is deprecated and " +
"will be removed in 5.0.0.";
}
Expand All @@ -21,7 +21,7 @@
$file-formats,
$font-url) {

@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `font-source-declaration` is deprecated " +
"and will be removed in 5.0.0.";
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@function _gradient-positions-parser($gradient-type, $gradient-positions) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `_gradient-positions-parser` is " +
"deprecated and will be removed in 5.0.0.";
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/helpers/_linear-angle-parser.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Private function for linear-gradient-parser
@function _linear-angle-parser($image, $first-val, $prefix, $suffix) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `_linear-angle-parser` is " +
"deprecated and will be removed in 5.0.0.";
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@function _linear-gradient-parser($image) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `_linear-gradient-parser` is " +
"deprecated and will be removed in 5.0.0.";
}
Expand Down
4 changes: 2 additions & 2 deletions app/assets/stylesheets/helpers/_linear-positions-parser.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@function _linear-positions-parser($pos) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `_linear-positions-parser` is " +
"deprecated and will be removed in 5.0.0.";
}
Expand Down Expand Up @@ -59,7 +59,7 @@
}

@function _position-flipper($pos) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `_position-flipper` is " +
"deprecated and will be removed in 5.0.0.";
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Private function for linear-gradient-parser
@function _linear-side-corner-parser($image, $first-val, $prefix, $suffix, $has-multiple-vals) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `_linear-side-corner-parser` is " +
"deprecated and will be removed in 5.0.0.";
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/helpers/_radial-arg-parser.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@function _radial-arg-parser($g1, $g2, $pos, $shape-size) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `_radial-arg-parser` is " +
"deprecated and will be removed in 5.0.0.";
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@function _radial-gradient-parser($image) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `_radial-gradient-parser` is " +
"deprecated and will be removed in 5.0.0.";
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@function _radial-positions-parser($gradient-pos) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `_radial-positions-parser` is " +
"deprecated and will be removed in 5.0.0.";
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/helpers/_render-gradients.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// User for linear and radial gradients within background-image or border-image properties

@function _render-gradients($gradient-positions, $gradients, $gradient-type, $vendor: false) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `_render-gradients` is " +
"deprecated and will be removed in 5.0.0.";
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/helpers/_shape-size-stripper.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@function _shape-size-stripper($shape-size) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `_shape-size-stripper` is " +
"deprecated and will be removed in 5.0.0.";
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/helpers/_str-to-num.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Source: http://sassmeister.com/gist/9647408
//************************************************************************//
@function _str-to-num($string) {
@if $disable-bourbon-deprecation-warnings == false {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `_str-to-num` is " +
"deprecated and will be removed in 5.0.0.";
}
Expand Down

0 comments on commit c80b557

Please sign in to comment.