Skip to content

Commit

Permalink
some scss style for devise menu
Browse files Browse the repository at this point in the history
  • Loading branch information
HLFH authored Mar 28, 2020
1 parent cd2d245 commit b1240f5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,24 @@ In `app/views/devise/registrations/new.html.erb`, add:
```
Don't forget to add a bit of style for Webpacker in `app/javascript/src/application.scss`:
```scss
ul.hmenu {
list-style: none;
margin: 0 0 2em;
padding: 0;
li {
display: inline;
}
}
```

And add in `app/javascript/packs/application.js`:
```js
import '../src/application.scss'
```

## Usage

Specs are created automatically when you generate a Devise model, e.g. `User`:
Expand Down

0 comments on commit b1240f5

Please sign in to comment.