Skip to content

Instantly share code, notes, and snippets.

@mburakerman
mburakerman / style.scss
Last active December 15, 2022 16:17
Usefull CSS/SASS Shortcuts for Everyday Front End Development
/// Mixin to prefix a property
/// @author Hugo Giraudel
/// @param {String} $property - Property name
/// @param {*} $value - Property value
/// @param {List} $prefixes (()) - List of prefixes to print
@mixin prefix($property, $value, $prefixes: ()) {
@each $prefix in $prefixes {
#{'-' + $prefix + '-' + $property}: $value;
}