【问题标题】:Intellij does not support sass variables inside a CSS3 calc( functionIntellij 不支持 CSS3 calc( 函数中的 sass 变量
【发布时间】:2018-05-20 17:51:51
【问题描述】:

我在 .scss 文件中有以下 sass 代码,可以完美运行。

$headerHeight: 90px;

.basePageContent {
  height: calc(100% - $headerHeight);
  width: 100%;
  position: absolute;
  top: $headerHeight;
  bottom: 0;
  display: block;
}

但 Intellij 将其显示为无效代码。这可能是我的 IDE 上的无效设置还是 Intellij 错误?

我正在以下构建中

IntelliJ IDEA 2017.3(终极版)构建 #IU-173.3727.127,已构建 2017 年 11 月 27 日 JRE:1.8.0_152-release-1024-b6 x86_64 JVM: JetBrains s.r.o Mac OS X 10.13.1 的 OpenJDK 64 位服务器虚拟机

【问题讨论】:

    标签: css intellij-idea sass


    【解决方案1】:

    IDE 工作正常。阅读interpolation

    $headerHeight: 90px;
    
    .basePageContent {
      height: calc(100% - #{$headerHeight});
      width: 100%;
      position: absolute;
      top: $headerHeight;
      bottom: 0;
      display: block;
    }
    

    【讨论】:

      猜你喜欢
      • 2013-08-01
      • 1970-01-01
      • 2014-07-03
      • 2011-12-02
      • 2018-04-20
      • 2019-03-12
      • 2014-10-31
      • 2017-03-31
      • 2019-01-12
      相关资源
      最近更新 更多