我遇到的问题是我的 SASS 无法编译并且它向我显示相同的错误: Expected NewLine
#topper, h3 {
text-align: center;
text-decoration:underline;
}
.list-group{
.active{
text-decoration: underline;
font-weight:bold
}
}
显示错误。尝试了一切,甚至删除并将左大括号放在新行中
╷
1 │ #topper, h3 {
│ ^
╵
home.sass 1:13 root stylesheet
根据Sass-lang.com https://sass-lang.com/documentation/syntax以及 @Nit 的评论,您选择了错误的编译选项。
这是SCSS
@mixin button-base() {
@include typography(button);
@include ripple-surface;
@include ripple-radius-bounded;
display: inline-flex;
position: relative;
height: $button-height;
border: none;
vertical-align: middle;
&:hover { cursor: pointer; }
&:disabled {
color: $mdc-button-disabled-ink-color;
cursor: default;
pointer-events: none;
}
}
在 SASS 中也一样
@mixin button-base()
@include typography(button)
@include ripple-surface
@include ripple-radius-bounded
display: inline-flex
position: relative
height: $button-height
border: none
vertical-align: middle
&:hover
cursor: pointer
&:disabled
color: $mdc-button-disabled-ink-color
cursor: default
pointer-events: none
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)