Skip to content

Use import without .css #749

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ If you use Rails in the default mode without any pre-processor, you'll have to a

If you followed the [official bootstrap installation guide](https://github.com/twbs/bootstrap-rubygem#a-ruby-on-rails), you'll probably have switched to SCSS. In this case add the following line to your `application.scss`:


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have enough GitHub fu to know how to do this better, so what I would suggest is something like move your added lines to after line 52. The current line 53 would become the last paragraph. We'd also have to update the wording, because it's been a long time since that was likely the "default" way of adding.

If you make those changes, then maybe I can make any other small edits via GitHub suggestions.

If you're using Propshaft (for example, the Rails 8 default), do it like this:

```scss
@use "rails_bootstrap_forms";
```

Else if you're using Sprockets (the Rails default before Rails 8), do it like this:

```scss
@import "rails_bootstrap_forms.css";
```
Expand Down