css - creating custom scss file -


i'm install bootstrap gem , follow direction change application.css, when create custom .scss file, customizations custom file werent included in application.css.scss . have tried import boot strap , bootstrap-sprockets custom file well, no changes made on website. how can make customizations on newly created custom.scss file show on website.

the application.css.scss file contains 2 lines

@import "bootstrap-sprockets"; @import "bootstrap"; 

if i've read question correctly, have application.scss, contains

@import "bootstrap-sprockets"; @import "bootstrap"; 

and custom.scss file, contents of want end in application.css. need add application.scss file, ie -

@import "bootstrap-sprockets"; @import "bootstrap"; @import "custom"; 

it's recommended begin name of .scss files importing (also known partials) underscore, in case custom.scss becomes _custom.scss.

and make sure recompile application.scss application.css changes made - i'm not sure you're using compile sass think may step missing.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -