Created
May 18, 2023 08:05
-
-
Save paullessing/54700b15ba30df759eb25c4cc2efb5da to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
@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); | |
} |
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
.red { | |
font-size: 12px ""; | |
} | |
.blue { | |
font-size: 14px "!important"; | |
} |
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": { | |
"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