ruby-on-rails - 在从 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!
以下是我使用的宝石:
- gem 'sprockets-rails',需要:'sprockets/railtie'
- 宝石'sass-rails'
- 宝石“指南针导轨”
知道发生了什么吗?
解决方案
推荐阅读
- ruby-on-rails - 对 ActionMailer 及其配置的困惑 - Rails
- python - 在具有返回值的数组中查找最小值
- c# - 无法将带间隙的范围添加到 ExcelSparklineGroupCollection EPPlus
- ruby-on-rails - Ruby on Rails 中的关联问题
- css - 成功将 Angular 从 7 更新到 12 版本,但在主题文件夹中收到 scss 警告
- botframework - Bot Framework Composer - 触发短语上的多个实体
- google-analytics - 一个谷歌分析属性的多个谷歌标签管理器容器
- reactjs - 带有 Material UI TextField 的 react-hooks-form 依赖字段
- python - 从 C++/boost::process 实时获取 Python 输出
- c# - 有什么方法可以通过 onclick onclick on partial view button in asp.net mvc 更改主布局的类或样式