Skip to content

splex7/trashTracker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

MALIBU

Made with love ❤️ by Malibu Studio

Intro

DEMO: http://malibu-framework.meteor.com

Prerequesites

  • Jade Templating Engine
  • LESS (with autoprefixer)
  • Coffeescript
  • GSAP

The packages in the above list is already includes in the .meteor/packages file.


Global

  • Typography (wip)
  • Flex (wip)

UI Components

  • Buttons
  • Modal

Buttons

Modal

Basic Modal Structure

.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

Triggering a Modal

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

Closing a 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

Remove Modal Overlay

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

Shorthand Modal Trigger

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')

Modal Variations

// Sets Modal Color to @brand-primary
.modal.modal-primary

// Box Shadow on Modal
.modal.modal-shadow

About

Trash Tracker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 78.3%
  • HTML 18.4%
  • CSS 3.3%