在 rails 内完全去除粉底
Remove foundation completely in rails
如何在 rails 项目中完全删除 Foundation?添加到 Gemfile
后,我使用 rails g foundation:install
进行安装。
我已经在 Gemfile
中删除了它,但我仍然在浏览器中收到与 Foundation 相关的错误。
这是manual installation from foundation。恢复这些步骤就足够了
Add Foundation to your CSS
Append the following line to your app/assets/stylesheets/application.css file:
/*= require foundation
If you're planning on using Sass, then you'll want to rename application.css to application.scss. That file should then look like:
@import "foundation_and_overrides";
/* Add imports of custom sass/scss files here */
所以请务必从您的 application.css
或 application.scss
中删除这些文件
Add Foundation to your JS
Append the following lines to your app/assets/javascripts/application.js file:
//= require foundation
$(document).foundation();
删除这些文件并 .foundation()
从 application.js
调用
Set Viewport Width
Add the following line to the head of your page layout:
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
我已经为 bootstrap 设置了视口宽度,我认为这不会造成任何问题。
from Cess
that worked, i also had to delete all the contents _settings.css
如何在 rails 项目中完全删除 Foundation?添加到 Gemfile
后,我使用 rails g foundation:install
进行安装。
我已经在 Gemfile
中删除了它,但我仍然在浏览器中收到与 Foundation 相关的错误。
这是manual installation from foundation。恢复这些步骤就足够了
Add Foundation to your CSS
Append the following line to your app/assets/stylesheets/application.css file:
/*= require foundation
If you're planning on using Sass, then you'll want to rename application.css to application.scss. That file should then look like:
@import "foundation_and_overrides";
/* Add imports of custom sass/scss files here */
所以请务必从您的 application.css
或 application.scss
Add Foundation to your JS
Append the following lines to your app/assets/javascripts/application.js file:
//= require foundation
$(document).foundation();
删除这些文件并 .foundation()
从 application.js
Set Viewport Width
Add the following line to the head of your page layout:
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
我已经为 bootstrap 设置了视口宽度,我认为这不会造成任何问题。
from Cess that worked, i also had to delete all the contents
_settings.css