According to the docs (and checking 'sass-convert -h' on the command line) there is no way to change the output style when going from css to scss (or sass).

网友答案:

I had this same problem so I used the following Python to do some post-processing and fix up the generated output to the :expanded output style:

import sys
import re
path = sys.argv[1]
scss = open(path).read()
# Fix up the indentation of closing braces to use a :expanded rather than :nested style.
scss = re.sub(r'\t(\t*)([^\}\n]*;) (\}.*)', r'\t\1\2\n\1\3', scss)
for i in range(0, 10):
# This line is executed multiple times to fix up multiple closing braces on a single line.
scss = re.sub(r'\t(\t*)\};? \}', r'\t\1}\n\1}', scss)
open(path, 'w').write(scss)