More Components
Over a dozen reusable components built to provide Leap users with a decent web browsing experience
Over a dozen reusable components built to provide Leap users with a decent web browsing experience
Provide pagination links for your site or app with the multi-page pagination component, or the simpler pager alternative.
Simple pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.
<ul class="pagination">
<li><a class="leap-interactive" href="#">«</a></li>
<li><a class="leap-interactive" href="#">1</a></li>
<li><a class="leap-interactive" href="#">2</a></li>
<li><a class="leap-interactive" href="#">3</a></li>
<li><a class="leap-interactive" href="#">4</a></li>
<li><a class="leap-interactive" href="#">5</a></li>
<li><a class="leap-interactive" href="#">»</a></li>
</ul>
Links are customizable for different circumstances. Use .disabled
for unclickable links and .active
to indicate the current page.
<ul class="pagination">
<li class="disabled"><a class="leap-interactive" href="#">«</a></li>
<li class="active"><a class="leap-interactive" href="#">1 <span class="sr-only">(current)</span></a></li>
...
</ul>
You can optionally swap out active or disabled anchors for <span>
to remove click functionality while retaining intended styles.
<ul class="pagination">
<li class="disabled"><span>«</span></li>
<li class="active"><span>1 <span class="sr-only">(current)</span></span></li>
...
</ul>
Quick previous and next links for simple pagination implementations with light markup and styles. It's great for simple sites like blogs or magazines.
By default, the pager centers links.
<ul class="pager">
<li><a class="leap-interactive" href="#">Previous</a></li>
<li><a class="leap-interactive" href="#">Next</a></li>
</ul>
Alternatively, you can align each link to the sides:
<ul class="pager">
<li class="previous"><a class="leap-interactive" href="#">← Older</a></li>
<li class="next"><a class="leap-interactive" href="#">Newer →</a></li>
</ul>
Pager links also use the general .disabled
utility class from the pagination. You have two options, you can either not use leap-interactive
on the element, or specify leap-disabled-hover="true"
and leap-disabled-tap="true"
<ul class="pager">
<li class="previous disabled"><a class="leap-interactive" href="#" leap-disabled-hover="true" leap-disabled-tap="true">← Older</a></li>
<li class="next"><a class="leap-interactive" href="#">Newer →</a></li>
</ul>
List groups are a flexible and powerful component for displaying not only simple lists of elements, but complex ones with custom content.
Linkify list group items by using anchor tags instead of list items (that also means a parent <div>
instead of an <ul>
). No need for individual parents around each element.
<div class="list-group">
<a href="#" class="list-group-item active leap-interactive"><span class="badge">14</span> Cras justo odio </a> <a href="#" class="list-group-item leap-interactive"><span class="badge">14</span>Dapibus ac facilisis in</a> <a href="#" class="list-group-item leap-interactive"><span class="badge">14</span>Morbi leo risus</a> <a href="#" class="list-group-item leap-interactive"><span class="badge">14</span>Porta ac consectetur ac</a> <a href="#" class="list-group-item leap-interactive"><span class="badge">14</span>Vestibulum at eros</a>
</div>
Add nearly any HTML within, even for linked list groups like the one below. Just add leap-interactive
to the anchor.
Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.
Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.
Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.
<div class="list-group">
<a href="#" class="list-group-item active leap-interactive">
<h4 class="list-group-item-heading">
List group item heading
</h4>
<p class="list-group-item-text">
...
</p>
</a> <a href="#" class="list-group-item leap-interactive">
<h4 class="list-group-item-heading">
List group item heading
</h4>
<p class="list-group-item-text">
...
</p>
</a>
</div>
Navbars are responsive meta components that serve as navigation headers for your application or site. They begin collapsed (and are toggleable) in mobile views and become horizontal as the available viewport width increases.
Depending on the content in your navbar, you might need to change the point at which your navbar switches between collapsed and horizontal mode. Customize the @grid-float-breakpoint
variable or add your own media query.
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle leap-interactive" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand leap-interactive" href="#">Brand</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a class="leap-interactive" href="#">Link</a></li>
<li><a class="leap-interactive" href="#">Link</a></li>
<li class="dropdown"> <a href="#" class="dropdown-toggle leap-interactive" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a class="leap-interactive" href="#">Action</a></li>
<li><a class="leap-interactive" href="#">Another action</a></li>
<li><a class="leap-interactive" href="#">Something else here</a></li>
<li class="divider"></li>
<li><a class="leap-interactive" href="#">Separated link</a></li>
<li class="divider"></li>
<li><a class="leap-interactive" href="#">One more separated link</a></li>
</ul>
</li>
</ul>
<form class="navbar-form navbar-left" role="search">
<div class="form-group">
<input type="text" class="form-control leap-interactive" placeholder="Search">
</div>
<button type="submit" class="btn btn-default leap-interactive">Submit</button>
</form>
<ul class="nav navbar-nav navbar-right">
<li><a class="leap-interactive" href="#">Link</a></li>
</ul>
</div>
<!-- /.navbar-collapse -->
</nav>
The responsive navbar requires the collapse plugin to be included in your version of Leapstrap.
Be sure to add a role="navigation"
to every navbar to help with accessibility.
Align nav links, forms, buttons, or text, using the .navbar-left
or .navbar-right
utility classes. Both classes will add a CSS float in the specified direction. For example, to align nav links, put them in a separate <ul>
with the respective utility class applied.
These classes are mixin-ed versions of .pull-left
and .pull-right
, but they're scoped to media queries for easier handling of navbar components across device sizes.
Add .navbar-fixed-top
.
Or add .navbar-fixed-bottom
instead.
<nav class="navbar navbar-default navbar-fixed-top" role="navigation"> ... </nav>
<nav class="navbar navbar-default navbar-fixed-bottom" role="navigation"> ... </nav>
The fixed navbar will overlay your other content, unless you add padding
to the top of the <body>
. Try out your own values or use our snippet below. Tip: By default, the navbar is 50px high.
body { padding-top: 70px; }
body { padding-bottom: 70px; }
Make sure to include this after the core Leapstrap CSS.
Create a full-width navbar that scrolls away with the page by adding .navbar-static-top
. Unlike the .navbar-fixed-*
classes, you do not need to change any padding on the body
.
<nav class="navbar navbar-default navbar-static-top" role="navigation"> ... </nav>
Indicate the current page's location within a navigational hierarchy.
Separators are automatically added in CSS through :before
and content
. Just add CSS class leap-interactive
to make your breadcrumbs leapable.
<ol class="breadcrumb">
<li><a class="leap-interactive" href="#">Home</a></li>
<li><a class="leap-interactive" href="#">Library</a></li>
<li class="active">Data</li>
</ol>
Includes 200 glyphs in font format from the Glyphicon Halflings set. Glyphicons Halflings are normally not available for free, but their creator has made them available for Leapstrap free of cost. As a thank you, we only ask that you to include a link back to Glyphicons whenever possible.
For performance reasons, all icons require a base class and individual icon class. To use, place the following code just about anywhere. Be sure to leave a space between the icon and text for proper padding.
<span class="glyphicon glyphicon-search"></span>
Use them in buttons, button groups for a toolbar, navigation, or prepended form inputs.
<button type="button" class="btn btn-default btn-lg leap-interactive">
<span class="glyphicon glyphicon-star"></span> Star
</button>