This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.14) | |
// Compass (v1.0.3) | |
// ---- | |
@function replace-attr($message) { | |
$has-attr: str-index($message, 'attr('); | |
$first-paren: str-index($message, ')'); | |
@if not $has-attr { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.0.rc.5) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
// Sass to CSV converter | |
// Just for the sake of it. | |
// -------------------------------------------- | |
// @param [list|map] $value: value to convert | |
// @param [bool] $labels: enable first line as labels |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.1) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
// Sass polyfill for :matches() | |
// https://developer.mozilla.org/en-US/docs/Web/CSS/:any | |
// --- | |
// @param [string] $string: selector as a string, must contain %m where there would be :matches() | |
// @param [list] $selectors: list of selectors that would be passed to :matches() function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.4) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
// Map storing values when the mixin is being called | |
$cache: ( | |
width : (), | |
height : (), | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.3) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
// A little function for your frameworks | |
// Allowing users to use a prefixer mixin | |
// With various aliases, and not necessarily official vendors | |
// List of aliases for each vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.4) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
// A Sass walk function, | |
// Calling a given function to each member of a list | |
// --- | |
// @param [list] $list: list to walk through | |
// @param [string] $function: function to apply to all members |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.1.0-beta) | |
// ---- | |
/// Power function | |
/// @param {Number} $x | |
/// @param {Number} $n | |
/// @return {Number} | |
@function pow($x, $n) { | |
$ret: 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
/// Deep set function to set a value in nested maps | |
/// @param {Map} $map - map | |
/// @param {List} $keys - list of keys to reach | |
/// @param {Literal} $value - value to assign | |
/// @return {Map} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.4) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
// Here is a map containing all placeholders | |
// (Follow-up from: http://hugogiraudel.com/2014/03/31/getting-the-most-out-of-sass-placeholders/) | |
// --- | |
// - The key is the placeholder's name | |
// - The value is a map of declarations for the placeholder's content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.4) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
// [Helper] | |
// Cast a stringified number to an actual number | |
// --- | |
// @param [string] $input: stringified number to cast | |
// --- |
OlderNewer