【发布时间】:2014-08-08 02:00:36
【问题描述】:
我正在使用 Koala 自动编译 style.sass,显然它不喜欢文件开头所需的多行 cmets(即:/* Theme Name:...*/)。
每次尝试编译时都会出错:
style.sass 第 2 行的警告: 这个选择器没有任何属性并且不会被渲染。 style.sass 第 3 行的警告: 这个选择器没有任何属性并且不会被渲染。 style.sass 第 5 行的警告: 这个选择器没有任何属性并且不会被渲染。 语法错误:“...nsive,modern,”后的 CSS 无效:预期表达式(例如 1px,粗体)是“和优雅的婚礼...” 在 style.sass 的第 6 行
我应该只编译它然后将多行 cmets 添加到压缩的 style.css 中吗?那会很头疼。
似乎因为 cmets 有一个“:”它认为它是一个 css 属性。
编辑,代码如下:
/*
Theme Name: ...
Theme URI: ...
Author: ...
Author URI: ...
Description: A responsive, modern, and elegant wedding theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ...
*/
// Micro Clearfix //
.cf:before,
.cf:after
content: " " // 1
display: table // 2
.cf:after
clear: both
// For IE 6/7 only. Include this rule to trigger hasLayout and contain floats.
.cf
*zoom: 1
// Defaults //
html,
body
font-size: 100%
width: 100%
// SASS Variables //
$fuchsia: #fe4365
$pink: #fc9d9a
$salmon: #f9cdad
$olive: #c8c8a9
$teal: #83af9b
【问题讨论】:
-
你能告诉我们与错误相关的样式表吗?
标签: css wordpress sass comments