- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在尝试为 chrome 启用源映射后,我从 heroku 收到以下警告 http://blog.vhyza.eu/blog/2013/09/22/debugging-rails-4-coffeescript-and-sass-source-files-in-google-chrome/
它们表示什么,如果有的话,我应该改变什么?
我的 gem 文件:
source 'https://rubygems.org'
ruby '2.0.0'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
# Use sqlite3 as the database for Active Record
#gem 'sqlite3'
gem 'pg'
gem 'devise'
gem 'font-awesome-rails'
gem 'bootstrap-sass', github: 'thomas-mcdonald/bootstrap-sass'
gem 'simple_form', git: 'https://github.com/plataformatec/simple_form.git'
gem 'carrierwave'
gem 'fog', '~> 1.3.1'
gem 'mini_magick'
gem 'rails_12factor'
gem 'friendly_id', '~> 5.0.0'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
gem 'bourbon'
group :development do
gem 'sass-rails-source-maps'
end
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails', '~> 3.0'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
# gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
# Use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano', group: :development
# Use debugger
#
Running: rake assets:precompile
Warning. Error encountered while saving cache caaf9b127eacbc8d55c6b0df080ed0d983d6c0ac/application.css.scssc: can't dump anonymous class #<Class:0x007f9af404e7a0>
Warning. Error encountered while saving cache 29b09f293164ce1d09e4f27743f6d079f2f4f07e/_bourbon.scssc: can't dump anonymous class #<Class:0x007f9af404e7a0>
Warning. Error encountered while saving cache f432cc7b803f4c796599d16a379d862748156dd8/_deprecated-webkit-gradient.scssc: can't dump anonymous class #<Class:0x007f9af404e7a0>
Warning. Error encountered while saving cache 1a45a1496fb361a3cf719ffc3cecf01b3639f108/_clearfix.scssc: can't dump anonymous class #<Class:0x007f9af404e7a0>
Warning. Error encountered while saving cache 1a45a1496fb361a3cf719ffc3cecf01b3639f108/_font-family.scssc: can't dump anonymous class #<Class:0x007f9af404e7a0>
Warning. Error encountered while saving cache 1a45a1496fb361a3cf719ffc3cecf01b3639f108/_hide-text.scssc: can't dump anonymous class #<Class:0x007f9af404e7a0>
Warning. Error encountered while saving cache 1a45a1496fb361a3cf719ffc3cecf01b3639f108/_html5-input-types.scssc: can't dump anonymous class #<Class:0x007f9af404e7a0>
DEPRECATION WARNING on line 25 of /tmp/build_502e235d-b5cc-428d-b0dc-0ba968b29b22/vendor/bundle/ruby/2.0.0/gems/bourbon-3.1.8/app/assets/stylesheets/addons/_html5-input-types.scss:
Assigning to global variable "$unquoted-inputs-list" by default is deprecated.
In future versions of Sass, this will create a new local variable.
If you want to assign to the global variable, use "$unquoted-inputs-list: append($unquoted-inputs-list, unquote($input-type), comma) !global" instead.
DEPRECATION WARNING on line 25 of /tmp/build_502e235d-b5cc-428d-b0dc-0ba968b29b22/vendor/bundle/ruby/2.0.0/gems/bourbon-3.1.8/app/assets/stylesheets/addons/_html5-input-types.scss:
Assigning to global variable "$unquoted-inputs-list" by default is deprecated.
In future versions of Sass, this will create a new local variable.
If you want to assign to the global variable, use "$unquoted-inputs-list: append($unquoted-inputs-list, unquote($input-type), comma) !global" instead.
DEPRECATION WARNING on line 25 of /tmp/build_502e235d-b5cc-428d-b0dc-0ba968b29b22/vendor/bundle/ruby/2.0.0/gems/bourbon-3.1.8/app/assets/stylesheets/addons/_html5-input-types.scss:
Assigning to global variable "$unquoted-inputs-list" by default is deprecated.
In future versions of Sass, this will create a new local variable.
If you want to assign to the global variable, use "$unquoted-inputs-list: append($unquoted-inputs-list, unquote($input-type), comma) !global" instead.
DEPRECATION WARNING on line 44 of /tmp/build_502e235d-b5cc-428d-b0dc-0ba968b29b22/vendor/bundle/ruby/2.0.0/gems/bourbon-3.1.8/app/assets/stylesheets/addons/_html5-input-types.scss:
Assigning to global variable "$all-text-inputs-focus" by default is deprecated.
In future versions of Sass, this will create a new local variable.
If you want to assign to the global variable, use "$all-text-inputs-focus: append($all-text-inputs-focus, $input-type-focus, comma) !global" instead.
DEPRECATION WARNING on line 44 of /tmp/build_502e235d-b5cc-428d-b0dc-0ba968b29b22/vendor/bundle/ruby/2.0.0/gems/bourbon-3.1.8/app/assets/stylesheets/addons/_html5-input-types.scss:
Assigning to global variable "$all-text-inputs-focus" by default is deprecated.
In future versions of Sass, this will create a new local variable.
If you want to assign to the global variable, use "$all-text-inputs-focus: append($all-text-inputs-focus, $input-type-focus, comma) !global" instead.
DEPRECATION WARNING on line 44 of /tmp/build_502e235d-b5cc-428d-b0dc-0ba968b29b22/vendor/bundle/ruby/2.0.0/gems/bourbon-3.1.8/app/assets/stylesheets/addons/_html5-input-types.scss:
Assigning to global variable "$all-text-inputs-focus" by default is deprecated.
In future versions of Sass, this will create a new local variable.
If you want to assign to the global variable, use "$all-text-inputs-focus: append($all-text-inputs-focus, $input-type-focus, comma) !global" instead.
Warning. Error encountered while saving cache 1a45a1496fb361a3cf719ffc3cecf01b3639f108/_position.scssc: can't dump anonymous class #<Class:0x007f9af404e7a0>
Warning. Error encountered while saving cache 1a45a1496fb361a3cf719ffc3cecf01b3639f108/_prefixer.scssc: can't dump anonymous class #<Class:0x007f9af404e7a0>
Warning. Error encountered while saving cache 1a45a1496fb361a3cf719ffc3cecf01b3639f108/_retina-image.scssc: can't dump anonymous class #<Class:0x007f9af404e7a0>
Warning. Error encountered while saving cache caaf9b127eacbc8d55c6b0df080ed0d983d6c0ac/users.css.scssc: can't dump anonymous class #<Class:0x007f9af404e7a0>
Warning. Error encountered while saving cache 46ee9071a8688db94b0b5f37c155438469009e50/font-awesome.css.erbc: can't dump anonymous class #<Class:0x007f9af404e7a0>
Warning. Error encountered while saving cache caaf9b127eacbc8d55c6b0df080ed0d983d6c0ac/comments.css.scssc: can't dump anonymous class #<Class:0x007f9af404e7a0>
I, [2013-12-14T02:00:10.168503 #765] INFO -- : Writing /tmp/build_502e235d-b5cc-428d-b0dc-0ba968b29b22/public/assets/application-26c0def79d3f5f44f52eb91252ea1cc5.css
Asset precompilation completed (20.56s)
最佳答案
我发现问题出在我的 env 文件中。
config.cache_store = :dalli_store
关于ruby-on-rails - heroku 上的 rails 应用程序中的 sass 错误 : can't dump anonymous class,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20578956/
我实际上正在尝试构建一个 gulp 计划来做网络相关的事情,比如编译 sass、缩小 css、丑化 javascript 等等。但我真的在使用 sass 时遇到了麻烦。 这是我的代码示例: gulp.
为了简化样式的描述,浏览器设计了 css 作为 DSL(领域特定语言)。css 写起来简单,但在很多方面都不太方便,比如不支持嵌套,代码比较冗余;不支持继承和混合,代码不好复用等。 为了给 c
如何编译sass模块(新版sass)? https://css-tricks.com/introducing-sass-modules/ 我尝试了 sass-migrator 终端,但它没有编译 ht
在 SASS 中,当出现错误时,它会在浏览器的页面顶部显示一条消息。它的一个样本在附图中。 该文本不可选择。它不是图像。它不会出现在“查看源代码”中。它在 Firebug 中不可见。 错误文本是如何呈
我想决定何时编译.sass文件。换句话说,我不想看文件,而是手动编译。 我该怎么做? 最佳答案 它比我想象的要简单: sass style.scss style.css 关于sass - 我如何在不观
我希望有一个像 +stacktextshadow(blue, red, green) 这样的 mixin吐了text-shadow: 1px 1px 0 blue, 2px 2px 0 red, 3p
我想在我们公司的 Web 应用程序上使用 SASS,但我无法在生产机器上安装任何程序。我搜索的有关 SASS 的所有内容都需要您运行 gem 之类的安装程序,并且还需要 HAML。 我希望找到一个脚本
From the docs我看到您可以更改 SASS 的缓存位置。 但是,我不确定要使用的确切语法。我有一个 Zurb 基金会项目,随之而来的是一个 config.rb文件。我认为这是需要更新以更改缓
也许更好的问题是,有没有更有效的方法来覆盖 mixin 的一部分? 这段SCSS: @mixin button { .button { background-color: red;
我正在使用多行注释 /** 常见样式请看这里*/样式定义继续... 我在编译时遇到错误。它说: Error: Invalid CSS after "*/": expected identifier,
我正在尝试在 Nuxt.js 中使用 sass 包而不是 node-sass 。我找到了这样的配置; // vue.config.js module.exports = { css: {
我正在使用多行注释 /** 常见样式请看这里*/样式定义继续... 我在编译时遇到错误。它说: Error: Invalid CSS after "*/": expected identifier,
我正在尝试在 Nuxt.js 中使用 sass 包而不是 node-sass 。我找到了这样的配置; // vue.config.js module.exports = { css: {
重复问题? 是的。但与this有点不同 概述: 我也是括号文本编辑器的新用户。我知道 Scss 和 Sass 之间的区别。但是我使用方括号文本编辑器的原因只是为了 Sass 而不是 Scss。 看了J
我正在寻找像 +stacktextshadow(blue, red, green) 这样的 mixin text-shadow: 1px 1px 0 blue, 2px 2px 0 red, 3px
我决定删除 node-sass来自我的 gatsby 项目并使用 sass反而。我遵循了所提到的here对于 v3。我删除了 node-sass现在我的 package.json 中有这些版本: "g
我正在使用 vanilla Sass(没有 Compass/SUZY/Bourbon/etc.),但我无法确定将 *.rb 文件放在哪里。我不是 Ruby 程序员,但我确实找到了一个其他人编写的函数,
我刚开始使用gulp-sass ,是否有一种“简单”的方法来找出正在使用的 Sass 版本? 并不是说我认为这太重要了,但我正在使用 gulp-sass在 Visual Studio 2015 (CT
我正在为 sass 实现 grunt 插件到 css 处理,但有 2 个选项可用 grunt-contrib-sass 和 grunt-sass。 我在互联网上搜索但找不到任何相关答案 grunt-c
我试图在 Angular 项目中使用 CSS 变量和 Sass 函数(准确地说是 lighten()/darken()),据我所知,最新版本的 LibSass 允许这样做。 我已安装 node-sas
我是一名优秀的程序员,十分优秀!