This file contains hidden or 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) | |
// ---- | |
//// | |
/// Font-face importer (FFI) | |
/// @author Hugo Giraudel | |
//// |
This file contains hidden or 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 hidden or 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) | |
// ---- | |
$row-width: 1800px; | |
$row-height: 420px; | |
$my-sass-map: ( | |
1: 600px, |
This file contains hidden or 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.2.5) | |
// ---- | |
/// Very dummy implementation of spaceship operator (<=>) in Sass | |
/// which returns 1, -1 or 0 depending of the result of the comparison | |
/// between values $a and $b | |
/// @link https://wiki.php.net/rfc/combined-comparison-operator | |
/// @param {Number} $a - First value | |
/// @param {Number} $b - Second value |
This file contains hidden or 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.2.5) | |
// ---- | |
@function map-combine($source, $map) { | |
@each $key, $value in $map { | |
$new: ($key: $value); | |
@if map-has-key($source, $key) { | |
$current: map-get($source, $key); |
This file contains hidden or 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) | |
// ---- | |
/// Trim `$string` | |
/// @param {String} $string - String to trim | |
/// @return {String} | |
@function trim($string) { | |
@return str-slice( |
This file contains hidden or 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) | |
// ---- | |
$v1: 1 2 3; | |
$v2: 4 5 6; | |
$v3: 7 8 9; | |
.test { |
This file contains hidden or 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.2.4) | |
// ---- | |
/// Horizontal, vertical or absolute centering | |
/// If specified, this mixin will use negative margins | |
/// based on element's dimensions. Else, it will rely | |
/// on CSS transforms which have a lesser browser support | |
/// but are more flexible as they don't require to set | |
/// any specific dimensions to the element. |
This file contains hidden or 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.13) | |
// Compass (v1.0.3) | |
// ---- | |
//// | |
/// String to number converter | |
/// @author Hugo Giraudel | |
/// @access private | |
//// |
This file contains hidden or 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.13) | |
// Compass (v1.0.3) | |
// ---- | |
@function o-proof-quote($value) { | |
@return '"' + $value + '"'; | |
} | |
@function o-json-encode-bool($boolean) { |