0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

scaffoldで生成した画面にCSSフレームワークを適用すると、レイアウトが崩れる

Posted at

現象

scaffoldで生成した画面に対して、bootstrapやmaterializeを適用すると、
レイアウトの一部が崩れる。

原因

scaffoldで自動生成したcssが残っており、余計なスタイルが適用されていたため。

├── app
│   ├── assets
│   │   └── stylesheets
│   │       └── scaffolds.scss

対策

scaffolds.scssを削除する。

$ rm app/assets/stylesheets/scaffolds.scss
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?