bootstrap3-datetimepicker-rails icon indicating copy to clipboard operation
bootstrap3-datetimepicker-rails copied to clipboard

Incorrect readme instructions for CSS

Open bluengreen opened this issue 8 years ago • 3 comments

This section is incorrect in my app. Not sure why or how you get the actual scss into your project since its a link to the other repo. But this section doesn't work

If you are using SCSS, modify your application.css.scss

// import bootstrap-sprockets before bootstrap if using bootstrap >= 3.2
@import 'bootstrap-sprockets';
@import 'bootstrap';
@import 'bootstrap-datetimepicker';

application.scss is now the default.

And @import 'bootstrap-datetimepicker'; should be @import 'bootstrap-datetimepicker.css';

Thanks

bluengreen avatar Jan 09 '17 17:01 bluengreen

Same problem, but to import bootstrap-datetimepicker.css don't solves the problem for me: the CSS file is not loading really, you can see it in rails log or in the browser console (Chrome).

@bluengreen It is working for you with .css extension? Did you found another solution. Thanks.

skuark avatar Jan 18 '17 12:01 skuark

Oh, I've found a solution. This application.scss works for me:

/*
 *= require_tree .
 *= require_self
 *= require bootstrap-datetimepicker
 */

@import 'bootstrap-sprockets';
@import 'bootstrap';

skuark avatar Jan 18 '17 12:01 skuark

@bluengreen is correct. You should be doing @import 'bootstrap-datetimepicker.css';, if your manifest file is a sass file, application.css.scss.

The other thing they could do, is just add a bootstrap-datetimepicker.scss file to the gem and it should be just fine.

Let me know if you want me to just make a pull request.

rdavid369 avatar Mar 22 '18 18:03 rdavid369