Skip to content

Instantly share code, notes, and snippets.

View zastrow's full-sized avatar
🦄
Making the Web a magical place

Philip Zastrow zastrow

🦄
Making the Web a magical place
View GitHub Profile
@zastrow
zastrow / SassMeister-input.scss
Created August 8, 2019 17:11
Generated by SassMeister.com.
// ----
// libsass (v3.5.4)
// ----
@mixin positions($top:null, $right:null, $bottom:null, $left:null) {
@if ($top != null and $right == null and $bottom == null and $left == null) {
$top: $top;
$right: $top;
$bottom: $top;
$left: $top;
@zastrow
zastrow / SassMeister-input.scss
Created August 8, 2019 17:07
Generated by SassMeister.com.
// ----
// libsass (v3.5.4)
// ----
////
/// String to number converter
/// @author Hugo Giraudel
/// @access private
////
@zastrow
zastrow / SassMeister-input.scss
Last active March 4, 2022 12:59
Generated by SassMeister.com.
// ----
// libsass (v3.5.4)
// ----
// DEMO SVG: https://codepen.io/zastrow/pen/c32b7a3823ebdf7f4329e587a9ed7e1f
// Helper function to replace characters in a string
@function str-replace($string, $search, $replace: '') {
$index: str-index($string, $search);
@return if($index, str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace), $string);
@zastrow
zastrow / SassMeister-input.scss
Last active March 4, 2022 14:34
Generated by SassMeister.com.
// ----
// libsass (v3.5.4)
// ----
// Grayscale
@function gray($level) {
@if $level == 0 {
@return white;
}
@else if $level == 100 {
@zastrow
zastrow / SassMeister-input.scss
Last active March 4, 2022 14:34
Generated by SassMeister.com.
// ----
// libsass (v3.5.4)
// ----
$spacing-limit: 4;
$spacing-key: (
"top": "top",
"right": "right",
"left": "left",
@zastrow
zastrow / SassMeister-input.scss
Created August 8, 2019 13:23
Generated by SassMeister.com.
// ----
// libsass (v3.5.4)
// ----
////
/// String to number converter
/// @author Hugo Giraudel
/// @access private
////
@zastrow
zastrow / SassMeister-input.scss
Created August 8, 2019 13:23 — forked from KittyGiraudel/SassMeister-input.scss
Generated by SassMeister.com.
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
////
/// String to number converter
/// @author Hugo Giraudel
/// @access private
////
@zastrow
zastrow / browserslist
Last active March 4, 2022 13:02
Demo 6
> 1%
last 2 versions
@zastrow
zastrow / SassMeister-input.scss
Created August 8, 2019 12:27
Generated by SassMeister.com.
// ----
// libsass (v3.5.4)
// ----
$sizes: (
sm: 1rem,
md: 1.5rem,
lg: 2rem
);
@zastrow
zastrow / SassMeister-input.scss
Created August 8, 2019 12:25
Generated by SassMeister.com.
// ----
// libsass (v3.5.4)
// ----
$sizes: (
sm: 1rem,
md: 1.5rem,
lg: 2rem
);