- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 Windows 7 编译 .scss 和一个名为 Prepros 的应用程序。 (http://alphapixels.com/prepros/)。我还将 Gumby 框架( http://gumbyframework.com/ )下载到我的本地主机网络服务器的文档根目录中。我的目标是将 gumby 框架与 Prepros 一起使用。
当我尝试编译 scss 文件时,我收到以下错误:
Syntax error: Undefined operation: "power(golden_ratio(), 1) times 16px".
on line 52 of Z:/Ampps/www/Gumby-master/sass/extensions/modular-scale/stylesheets/_modular-scale.scss
from line 23 of Z:\Ampps\www\Gumby-master\sass\gumby.scss Use --trace for backtrace.
此外,如果有帮助,这是文件夹 www\Gumby-master 中包含的 config.rb 文件:
# Require any additional compass plugins here.
# Tell compass where to find local extensions
# If you followed directions and ran 'gem install modular-scale' comment the next two lines out:
extensions_dir = "sass/extensions"
Compass::Frameworks.register('modular-scale', :path => File.expand_path("# {extensions_dir}/modular-scale"))
# Uncomment these to use regular Ruby gems.
# require 'modular-scale'
# require 'sassy-math'
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "img"
# You can select your preferred output style here (can be overridden via the command line) :nested or :expanded or :compact or :compressed:
output_style = :compact
# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = true
# To disable debugging comments that display the original location of your selectors. Uncomment:
line_comments = false
# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
# preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
最后,我回顾了this线程,但我没有发现它有帮助。
最佳答案
解决方案:我尝试了几种方法来修复此问题,但我不确定是哪一种方法负责修复它。
C:\Ruby193\lib\ruby\gems\1.9.1\gems
,实际上我意识到我必须提供这个C:\Ruby193\bin\ruby.exe
,就像Prepros手册中的图片一样。 )-如所述in this thread ,我打开我的指南针 config.rb 并注释掉 Compass::Frameworks.register('modular-scale', :path => File.expand_path("#{extensions_dir}/modular-scale"))
,并取消注释 #require 'modular-scale'
和 #require 'sassy-math'
。
关于css - 尝试使用 Prepros 和 Gumby 编译 sass 时,如何修复此编译错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20461020/
我正在创建一个新文件夹并在其中放置一些文件。当我尝试通过 FTP 上传新文件夹时,prepros 显示错误(没有这样的文件或目录)。据我了解,它不会创建新文件夹,而只是尝试上传文件夹内的所有文件。为什
我对 Prepros 配置有疑问。 我想查看元素中所有 *.scss 文件的变化,但我只想编译 style.css 文件。 style.scss的内容: @import "_bootstrap"; @
我是第一次使用 Prepros 预处理器,我的 less 文件中有以下 mixin。 .mq_max(@max_width; @rules) { @media only screen and
我无法在HAML中包含部分文件才能正常工作。 我有基本HAML测试的代码 # file: partial_layout.haml %h1 Partial layout used with for bl
有没有办法一般不缩小 js 文件,而是缩小单个串联版本? 基本上是这样的问题:包含 100 个文件的大型项目。在开发过程中,我们不提供缩小的 js 文件,因为它们不会增加任何好处,只会减慢我们每次进行
我有这个小 cat.js 文件: var Cat = (function( cat ){ cat.speak = function(){ return 'meew'; }; retur
我想处理我的 SASS 文件,但不想缩小 CSS。 我没有找到任何配置选项来执行此操作。有办法吗? 最佳答案 是的,你可以。您需要关闭 lib-sass 选项或只取消选中压缩 CSS 选项。 关于cs
尽管将所有边距和填充设置为 0,但我突然发现使用 Prepros(也尝试过 XAMPP)处理我的 html 和 css 时,会在我的下方添加额外(不需要的)空间最后一项即。页脚。直接从 Notepad
有什么方法可以使用 "breakpoint" 用于 sass "Prepros" ? 最佳答案 您可以将断点写在不同的文件中,并将该文件命名为“_breakpoint.scss” 在您的主 app.s
关闭。这个问题是opinion-based .它目前不接受答案。 想改善这个问题吗?更新问题,以便可以通过 editing this post 用事实和引文回答问题. 6年前关闭。 Improve t
我继承了一个使用 Sass 的元素。我是一名 NET 开发人员,所以编译 CSS 并不是我真正接触过的东西。之前的开发人员告诉我(因为我在 Windows 上运行,而他在 MAC 上运行)安装 pre
我正在尝试将 SCSS 文件转换为 CSS。我的目的是将 SCSS 文件中定义的颜色转换为 CSS 文件中的十六进制代码。我试过了,Prepros 和 Koala。两者都未能从 colours.scs
我正在使用 Windows 7 编译 .scss 和一个名为 Prepros 的应用程序。 (http://alphapixels.com/prepros/)。我还将 Gumby 框架( http:/
我的元素的样式就像我希望它在本地一样。将其推送到 GitHub 并且所有文件似乎都存在后,我将其发布到 GitHub.io 页面,但我的任何样式都不存在。 我是否从根本上误解了 Prepros 的目的
我是一名优秀的程序员,十分优秀!