diff options
author | Gleb Mazovetskiy <glebm@google.com> | 2015-01-21 23:36:08 +0300 |
---|---|---|
committer | Gleb Mazovetskiy <glebm@google.com> | 2015-01-21 23:36:08 +0300 |
commit | 21098b331e67a223349d271e646ebec775ffa4d3 (patch) | |
tree | c2b8d1804a32bc4a73b9aa83c057e48e1f6f08a4 /README.md | |
parent | 107ca189e406bbe314eb84f0372ed3706b81c761 (diff) |
Readme .css.scss -> .scss #831
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -23,7 +23,7 @@ gem 'sass-rails', '>= 3.2' `bundle install` and restart your server to make the files available through the pipeline. -Import Bootstrap styles in `app/assets/stylesheets/application.css.scss`: +Import Bootstrap styles in `app/assets/stylesheets/application.scss`: ```scss // "bootstrap-sprockets" must be imported before "bootstrap" and "bootstrap/variables" @@ -33,11 +33,11 @@ Import Bootstrap styles in `app/assets/stylesheets/application.css.scss`: `bootstrap-sprockets` must be imported before `bootstrap` for the icon fonts to work. -Make sure the file has `.css.scss` extension (or `.css.sass` for Sass syntax). If you have just generated a new Rails app, +Make sure the file has `.scss` extension (or `.sass` for Sass syntax). If you have just generated a new Rails app, it may come with a `.css` file instead. If this file exists, it will be served instead of Sass, so rename it: ```console -$ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.css.scss +$ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.scss ``` Then, remove all the `//= require` and `//= require_tree` statements from the file. Instead, use `@import` to import Sass files. @@ -67,7 +67,7 @@ config.assets.precompile << %r(bootstrap-sass/assets/fonts/bootstrap/[\w-]+\.(?: ::Sass::Script::Number.precision = [8, ::Sass::Script::Number.precision].max ``` -Replace Bootstrap `@import` statements in `application.css.scss` with: +Replace Bootstrap `@import` statements in `application.scss` with: ```scss $icon-font-path: "bootstrap-sass/assets/fonts/bootstrap/"; @@ -241,7 +241,7 @@ When using bootstrap-sass with Compass, Sprockets, or Mincer, you **must** impor ### Sass -Import Bootstrap into a Sass file (for example, application.css.scss) to get all of Bootstrap's styles, mixins and variables! +Import Bootstrap into a Sass file (for example, application.scss) to get all of Bootstrap's styles, mixins and variables! ```scss @import "bootstrap"; |