Created
May 12, 2015 15:06
-
-
Save AllThingsSmitty/0a5b7e06a6fae1126cb9 to your computer and use it in GitHub Desktop.
Different types of comments used in Sass
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
/* | |
This is for multiline comments | |
It will output into your CSS depending on your mode. | |
If you are using the compressed mode, this will be removed. | |
*/ | |
/* This can be used for inline comments */ | |
/*! | |
This is for multiline comments. | |
It will ALWAYS output into your CSS, no matter what mode. | |
*/ | |
/*! This can be used for inline comments */ | |
// This is for multiline comments. | |
// It does not output into CSS. | |
// This can also be used for an inline comment | |
/* ===================================== | |
This is a section header | |
===================================== */ | |
/* This is a sub-section header | |
===================================== */ | |
/** | |
* This is a long description | |
* | |
* It spans across multiple lines and | |
* sentences can span from multiple lines | |
* until you finally want to end the sentence. | |
**/ | |
/* ========= This is a section header ========= */ | |
/* === This is a sub-section header === */ | |
/* | |
This is a long description | |
This might be a sentence that talks about something | |
in your code and it spans multiple lines and it | |
might even be a run on sentence | |
*/ | |
/* This is a basic comment */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment