要转换为SASS的CSS:
body {
background: transparent !important; color: #444 !important; text-shadow: none;
}
/* Don't show links for images */
pre, blockquote {
border: 1px solid #999; page-break-inside: avoid;
}
img {
page-break-inside: avoid;
}
/* Grade-A Mobile Browsers */
html {
-webkit-text-size-adjust:none; -ms-text-size-adjust:none;
}转换后的SASS:
body
background: transparent !important
color: #444 !important
text-shadow: none
/* Don't show links for images
pre, blockquote
border: 1px solid #999
page-break-inside: avoid
img
page-break-inside: avoid
/* Grade-A Mobile Browsers
html
-webkit-text-size-adjust: none
-ms-text-size-adjust: none注意/* Don't show links for images和/* Grade-A Mobile Browsers。
这使得在注释之后的整个块。
它应该是/* Don't show links for images */吗?
发布于 2012-04-05 16:30:49
实际上,Sass可以两边都有。你必须明白,对于Sass来说,/*只是一个块注释的起点,它将是这样的:
/* This is the beginning of a commment
* This line is indented under it, so it's part of the comment
html
// This selector is not indented so it's not part of the commentSass不需要*/来结束注释,就像它不需要}来结束选择器一样:缩进会为您处理它。
我建议您在reference page中更详细地检查Sass注释语法。
发布于 2014-05-05 18:46:43
sass-convert --从css到scss actual.css>newlyCreated.scss
sass -转换--从css到sass actual.css>newlyCreated.sass
https://stackoverflow.com/questions/8178213
复制相似问题