Skip to content

Instantly share code, notes, and snippets.

View martindubenet's full-sized avatar

Martin Dubé martindubenet

View GitHub Profile
@martindubenet
martindubenet / input.scss
Last active February 10, 2022 20:31
Testing Sass maps - Generated by SassMeister.com.
// Simple sass maps
$alphaValues: 70 50 20;
$hexColors: (
"primary": #67486b,
"secondary": #749ee8
);
// Lists are complex multi-level sass maps
$mappedItems: (primary, #67486B, 70 50),
(secondary, #749EE8, 80 40 20);
@martindubenet
martindubenet / bgSpriteFit_mixins.less
Created December 21, 2015 17:32
A mixin to resize a (rasterized pixel type) background-image using the CSS background-size property
/*
* BACKGROUND-IMAGE SPRITE FIT
*
* This mixin resize a background-image via the background-size property.
* Requirements:
* * icon ratio 1:1 (square shape),
* * the first & second var are strings, all the others are digits ONLY,
* * don't put the 'px', only value as digit!
*
* -----------------------------------------------------------------