首页 > 解决方案 > 在从 4.1 rails 移动到 6.0 期间,出现错误:“...”之后的无效 CSS:sass 文件中发生预期的“}”

问题描述

我一直在将一个项目从 4.1 rails 替换为 6.0。移动 sass 文件时发生错误:

SassC::语法错误

错误:“...px #0088cc; } }”之后的 CSS 无效:预期为“}”,为“&.editable-open:hov”

这是我的 sass 代码:

   a
     &.editable
       text-decoration: none
       border-bottom: dashed 1px #0088cc
       &:hover
         text-decoration: none
         border-bottom: dashed 1px #0088cc
     &.editable-open:hover!

以下是我使用的宝石:

知道发生了什么吗?

标签: ruby-on-railssass

解决方案


推荐阅读