Made with love ❤️ by Malibu Studio
DEMO: http://malibu-framework.meteor.com
- Jade Templating Engine
- LESS (with autoprefixer)
- Coffeescript
- GSAP
The packages in the above list is already includes in the .meteor/packages
file.
- Typography (wip)
- Flex (wip)
- Buttons
- Modal
.modal
.modal-header
.close
i.close.icon
h1 I am a Modal
.modal-body
h4 It's just great
P Malibu Modal
.modal-footer
.pull-right
button.close.btn-black Close
To trigger a modal simply add data-action="modal"
and data-target="modal target here"
to the element to trigger the modal.
button.btn.btn-primary.btn-xl(data-action="modal" data-target=".modal")
| Open Modal
To close a modal, simply add .close
to the element that would trigger the modal. The triggering element has to be inside modal itself.
.modal
.modal-footer
button.btn.btn-black.close
| Close
To remove an overlay when modal is opened, add data-overlay="false"
to the triggering element.
button.btn(data-action="modal" data-target=".modal" data-overlay="false")
| Open without Overlay
If you do not want to use the markup way of triggering a modal for whatever reason or situation, you can trigger a modal like so.
# Open modal
MODAL.open('.modal')
# Open modal without overlay
MODAL.open('.modal',
overlay: false
)
# Close an already open modal
MODAL.close('.modal')
// Sets Modal Color to @brand-primary
.modal.modal-primary
// Box Shadow on Modal
.modal.modal-shadow