Skip to content

Instantly share code, notes, and snippets.

@paullessing
Created May 18, 2023 08:05
Show Gist options
  • Save paullessing/54700b15ba30df759eb25c4cc2efb5da to your computer and use it in GitHub Desktop.
Save paullessing/54700b15ba30df759eb25c4cc2efb5da to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
@mixin font-size($size, $important: false) {
font-size: $size isImportant($important);
}
@function isImportant($important) {
@if $important {
@return '!important';
} @else {
@return '';
}
}
.red {
@include font-size(12px);
}
.blue {
@include font-size(14px, true);
}
.red {
font-size: 12px "";
}
.blue {
font-size: 14px "!important";
}
{
"sass": {
"compiler": "dart-sass/1.32.12",
"extensions": {},
"syntax": "SCSS",
"outputStyle": "expanded"
},
"autoprefixer": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment