23 |
24 |
25 |
52 |
...
53 |
...
54 |
...
55 |
56 |
57 | ...
58 |
59 | ```
60 |
61 | Integration
62 | ---
63 | - Clone the [bulma repo](https://github.com/jgthms/bulma)
64 | - Under the `sass` folder, create a new folder called `extensions`
65 | - In this new folder, create a new file `megamenu.scss`
66 | - Copy the code from the `bulma-megamenu repo`'s [megamenu.scss](https://raw.githubusercontent.com/hunzaboy/bulma-megamenu/master/megamenu.scss) file into your new file
67 | - In the same folder create a new file `_all.sass` (this is not required, but will help when you add more extensions)
68 | - In this file add this code:
69 | ```
70 | @charset "utf-8"
71 |
72 | @import "megamenu.scss"
73 | ```
74 | At the end of the `bulma.sass` file, add this line: `@import "sass/extensions/_all"`
75 |
76 | Now, you can just build the bulma project with `npm run build`, and the output will be available in the `css folder`.
77 |
78 |
79 |

80 |
--------------------------------------------------------------------------------
/megamenu.scss:
--------------------------------------------------------------------------------
1 | .navbar-item.is-mega {
2 | position: static;
3 |
4 | .is-mega-menu-title {
5 | margin-bottom: 0;
6 | padding: .375rem 1rem;
7 | }
8 | }
9 |
--------------------------------------------------------------------------------