website/assets/sass/bourbon/functions/_contains.scss

13 lines
294 B
SCSS
Raw Permalink Normal View History

2015-08-30 12:34:43 -04:00
// Test a Sass list to see if it contains a defined value
// Allows for checking if a list contains several values at once
@function contains($list, $values...) {
@each $value in $values {
@if type-of(index($list, $value)) != "number" {
@return false;
}
}
@return true;
}