--- layout: default title: Components slug: components lead: "Over a dozen reusable components built to provide Leap users with a decent web browsing experience" base_url: "../" ---
Toggleable, contextual menu for displaying lists of links. Made interactive with the dropdown JavaScript plugin.
Wrap the dropdown's trigger and the dropdown menu within .dropdown
, or another element that declares position: relative;
. Then add the menu's HTML. Make the button and the menu item anchor links .leap-interactive
.
Wrap a series of buttons with .btn
in .btn-group
. Make all buttons have the class leap-interactive
.
Extend Leapstrap's grid system with the thumbnail component to easily display grids of images, videos, text, and more.
By default, Leapstrap's thumbnails are designed to showcase linked images with minimal required markup. Add CSS class leap-interactive
and you'll get a border.
With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.
Abstract object styles for building various types of components (like blog comments, Tweets, etc) that feature a left- or right-aligned image alongside textual content.
The default media allow to float a media object (images, video, audio) to the left or right of a content block. Add CSS classes media-leap leap-interactive
to get a border on hover.
Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages. For inline dismissal, use the alerts jQuery plugin.
Wrap any text and an optional dismiss button in .alert
and one of the four contextual classes (e.g., .alert-success
) for basic alert messages.
Alerts don't have default classes, only base and modifier classes. A default gray alert doesn't make too much sense, so you're required to specify a type via contextual class. Choose from success, info, warning, or danger.
Build on any alert by adding an optional .alert-dismissable
and close button.
Be sure to use the <button>
element with the data-dismiss="alert"
data attribute.
Use the .alert-link
utility class to quickly provide matching colored links within any alert.
While not always necessary, sometimes you need to put your DOM in a box. For those situations, try the panel component.
Hovering over a leap-panel gives a basic border outline effect.
Easily add a heading container to your panel with .panel-heading
. You may also include any <h1>
-<h6>
with a .panel-title
class to add a pre-styled heading.
Wrap buttons or secondary text in .panel-footer
. Note that panel footers do not inherit colors and borders when using contextual variations as they are not meant to be in the foreground.
Like other components, easily make a panel more meaningful to a particular context by adding any of the contextual state classes.
Use the Leap well as a simple effect on an element to give it a general hover effect.
Add any of the below mentioned modifier classes to change the appearance of a label.
Easily highlight new or unread items by adding a <span class="badge">
to links, Leapstrap navs, and more.
When there are no new or unread items, badges will simply collapse (via CSS's :empty
selector) provided no content exists within.
Badges won't self collapse in Internet Explorer 8 because it lacks support for the :empty
selector.