if you happen to have three different files:
SASS FORMAT
The first file looks like this:
SASS SYNTAX
// foundation/_code.sass
code
padding: .25em
line-height: 0
The second file is as follows:
// foundation/_lists.sass
ul, ol
text-align: left
& &
padding:
bottom: 0
left: 0
You are able to combine your files using imports in the following manner.
Please note: The file name must adhere to this specific syntax:
_{name of file}.sass
// app.sass
@import foundation/code, foundation/lists
SCSS STYLE
The first file appears like this:
// foundation/_code.scss
code {
padding: .25em;
line-height: 0;
}
And the second file has the structure below:
// foundation/_lists.scss
ul, ol {
text-align: left;
& & {
padding: {
bottom: 0;
left: 0;
}
}
}
Lastly, there is a third file included:
// style.scss
@import 'foundation/code', 'foundation/lists';
To delve deeper into this topic, check out: sass docs @import