Introduction
Bootstrap is an opensource HTML, CSS and Javascript framework, developed by Twitter. The core Bootstrap framework is included with this RapidWeaver theme, providing you with another layer of functionality. Bootstrap makes it easier to add a wide array of different interface embellishments to your websites and build-in further functionality. It really is a sweetshop for web developers who wish to improve their pages.
Many of the features Bootstrap supports are achieved through use of HTML code snippets. We have a pack of free Bootstrap code snippets available for download from the ThemeFlood website (which can be installed into RapidWeaver and show up in the snippets window). So if for example you wanted to add a nice zebra-striped table to your RapidWeaver website, you simply need to open the snippets window, drag and drop in the zebra-striped table snippet, and populate it with your own content. Even if you are not an HTML wizz-kid, most of the code snippets are easy to use and you can probably work out which content to replace and which code to customise. Snippets which are more complicated to use include comments (instructions) at the top. The other option of course, is that you can browse the Bootstrap website, read the presented information and copy any of the code examples given.
The great thing about Bootstrap code snippets is that once they have been added to your website, they are saved as part of the RapidWeaver sandwich file (project file). So if you reopen the project on another computer or forward it to a colleague, you're not in the tricky position of content missing (as a result of not having the correct stacks or plugins installed). Bootstrap is not exactly a Stacks replacement, but in some instances it may compliment existing workflows and provide solutions.
This page provides examples of some of the Bootstrap modules supported by this theme. All of these examples are available as code snippets which are ready to be dragged and dropped into your pages.
Accordion
Using the collapse plugin, we built a simple accordion style widget:
Alert Box
The alert box creates a simple and stylish message box, which a user can close:
Hello World!
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus et erat ut lectus fermentum tincidunt. Donec sed leo risus. Sed ut eros mi, a pellentesque purus. Donec leo elit, facilisis euismod accumsan in, mollis vel massa. Donec at turpis massa, nec tincidunt erat. In venenatis dolor sem. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam euismod egestas facilisis. Aenean vestibulum sapien nec libero imperdiet semper. In risus nulla, eleifend at pharetra sodales, consectetur non justo. Phasellus faucibus, leo eget blandit semper, augue felis ullamcorper lectus, vel luctus urna quam quis nunc. Nullam vel nibh sit amet felis tincidunt convallis eu nec purus. Sed tempor velit ut nulla pretium sodales. Quisque dapibus massa non velit elementum quis aliquam nibh pharetra. In arcu mauris, bibendum eget laoreet at, congue vitae tortor.
Badges
Badges are small, simple components for displaying an indicator or count of some sort. They're commonly found in email clients like Mail.app or on mobile apps for push notifications. Equally there are lots of other uses for them in websites:
12
3
4
5
6
Blockquote Boxes
Blockquotes are used to mark-up a block of text quoted directly from another person, organsiation or source. The quotation itself is presented with bolder styling to the body content, and the reference or citation is presented underneath against a hyphen. Adding a class attribute class="pull-right" lets you align the blockquote right:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.
Someone famous in Body of work
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.
Someone famous in Body of work
Buttons
Any link can be turned into a button, to make it clearer for people to see and click. Just give the link a class="" attribute, and enter the button style in the quotes (look at this page in RapidWeaver edit mode to see the available selector names). Buttons come in various sizes and colours. The length of a button is governed by the amount of text or icons it contains. Blue and silver are the most common colours to use, but other colours may be used. Button groups are also available, which let you 'stitch' multiple buttons together:
Standard Buttons
My Button
My Button
My Button
My Button
My Button
My Button
My Button
Large Buttons
My Button
My Button
My Button
My Button
My Button
My Button
My Button
Small Buttons
My Button
My Button
My Button
My Button
My Button
My Button
My Button
Mini Buttons
My Button
My Button
My Button
My Button
My Button
My Button
My Button
Button Groups
Carousel image slider
This Bootstrap module provides you with a fully responsive image slider, complete with navigation buttons and captions. It can source images from your theme or from an image warehouse:
Code box
A very useful piece of mark-up if you need to display code snippets. If using it for HTML code, replace opening tags with HTML 'less-than' entities to prevent the code being rendered:
<p>Sample text here...</p>
Glyphicons
About
GLYPHICONS are small monachrome icons that are distributed as part of the Bootstrap Toolkit. They were orgionally created by Jan Kovarik and are released under the Creative Commons Attribution 3.0 Unported (CC BY 3.0) license. This basically means that you can use them freely for both personal and commercial websites, however you cannot claim them as your own, resell them or redistribute them. You should provide a small credit or link somewhere on your website, back to the GLYPHICONS.com website, to acknowledge where the icons orgionally came from.Get More
GLYPHICONS are brilliant icons for many different projects and Jan is a very talented graphic designer. If you are able to make use of his icons in your websites, I can personally recommend you purchase his 'PRO' pack of icons. This instantly gives you a staggering 350 royalty-free icons, available in AI, PDF, PSD and PNG format. Purchased icons can be used without restrictions and you get free updates for life.For more information, please visit GLYPHICONS.com
How to use
This code snippet provides a list of all the available Halfling icons bundled with this theme. View the source code by switching RapidWeaver to edit mode. Copy the italic tags like<i class="icon-home"></i> for the desired icon you wish to use. When this code is entered in a page, it will then create a nice little icon. Bigger icons or icons you can edit yourself in a graphics application can be purchased from the GLYPHICONS.com website.
Icons are also available in white, by adding a class name of icon-white to your italic tags like this:
<i class="icon-search icon-white"></i>
Available icons in this theme...
Hero unit
This is ideal to use at the top of a page, and creates a bold and stylish container to place important or introductory content within:
Hello World!
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus et erat ut lectus fermentum tincidunt. Donec sed leo risus. Sed ut eros mi, a pellentesque purus. Donec leo elit, facilisis euismod accumsan in, mollis vel massa. Donec at turpis massa, nec tincidunt erat. In venenatis dolor sem. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam euismod egestas facilisis. Aenean vestibulum sapien nec libero imperdiet semper. In risus nulla, eleifend at pharetra sodales, consectetur non justo. Phasellus faucibus, leo eget blandit semper, augue felis ullamcorper lectus, vel luctus urna quam quis nunc. Nullam vel nibh sit amet felis tincidunt convallis eu nec purus. Sed tempor velit ut nulla pretium sodales. Quisque dapibus massa non velit elementum quis aliquam nibh pharetra. In arcu mauris, bibendum eget laoreet at, congue vitae tortor.
Labels
Use labels to highlight important sections of content in your pages:
DefaultSuccess
Warning
Important
Info
Inverse
List (ordered)
Create a numbered list of items:
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Integer molestie lorem at massa
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
- Faucibus porta lacus fringilla vel
- Aenean sit amet erat nunc
- Eget porttitor lorem
List (unordered)
Create a bulleted list of items:
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Integer molestie lorem at massa
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
- Phasellus iaculis neque
- Purus sodales ultricies
- Vestibulum laoreet porttitor sem
- Ac tristique libero volutpat at
- Faucibus porta lacus fringilla vel
- Aenean sit amet erat nunc
- Eget porttitor lorem
Modal window
Use the modal window to create basic popups and lighboxes within a page. Aspects like the header, body content and footer can be customised. Modal windows can be triggered from links and can be used to display different content types like text, images and video:
Navigation styles
Bootstrap has options for you to manaully build several navigation structures. These can either be used for page navigation, tables of contents or as links to resources and file downloads:
Basic Tabs
These are ideal to place at the top of a page. Just customise the address and link title. Each link sits inside a standard pair of HTML <li> and </li> List Item tags. Optionally you can mark a navigation item as 'active' by adding a class="active" attribute to it.
Basic Pills
These are ideal to place at the top of a page. Just customise the address and link title. Each link sits inside a standard pair of HTML <li> and </li> List Item tags. Optionally you can mark a navigation item as 'active' by adding a class="active" attribute to it.
Stacked Tabs
Stacked tabs are great to place in a column, sidebar or ExtraContent area. Just customise the address and link title. Each link sits inside a standard pair of HTML <li> and </li> List Item tags. Optionally you can mark a navigation item as 'active' by adding a class="active" attribute to it.
Stacked Pills
Stacked pills are perfect to place in a column, sidebar or ExtraContent area. Just customise the address and link title. Each link sits inside a standard pair of HTML <li> and </li> List Item tags. Optionally you can mark a navigation item as 'active' by adding a class="active" attribute to it.
Navigation Lists
Navigation lists are very useful for building a 'table of contents' and equally work just as well in a column, sidebar or ExtraContent area. Just customise the address and link title. Each link sits inside a standard pair of HTML <li> and </li> List Item tags. To create the section headings, insert <li class="nav-header">Section Heading</li> wherever you want a title shown.
Navigation tabs and drop-downs
This module can be used to build a simple horizontal line of links, with attractive drop-downs:
Popovers
These are great for displaying vivid dialogue boxes against links and buttons. The position of the popover can be changed:
Hover For A PopoverResponsive grid system
A completely fluid and responsive 12-point grid system, which can be used to construct complex page designs. On mobile devices, the RAFT system will automatically consolidate grids down to a single column:
Column One
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus et erat ut lectus fermentum tincidunt.Column Two
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus et erat ut lectus fermentum tincidunt.Column Three
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus et erat ut lectus fermentum tincidunt.Column One
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus et erat ut lectus fermentum tincidunt.Column Two
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus et erat ut lectus fermentum tincidunt. Consectetur adipiscing elit. Consectetur adipiscing elit. Vivamus et erat ut lectus fermentum tincidunt.Column One
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus et erat ut lectus fermentum tincidunt.Column Two
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus et erat ut lectus fermentum tincidunt.Column One
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus et erat ut lectus fermentum tincidunt. Consectetur adipiscing elit. Consectetur adipiscing elit. Vivamus et erat ut lectus fermentum tincidunt.Column Two
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus et erat ut lectus fermentum tincidunt.Section header
Useful for breaking large chunks of content into seperate parts, complete with title, slogan and horizonatal rule:
A section title goes here A catchy subtitle goes here to compliment
Tabs
As the name suggests, this module allows you to build a simple set of tabs, which can be toggled to reveal different blocks of content:
Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.
Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.
Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.
Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.
Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.
Thumbnails
Thumbnails are a superb way to frame your images and can also be used for videos, retail products, portfolios, and much more. They can be links or static content. Thumbnail markup is simple - a ul (unordered list) with any number of li (list item) elements is all that is required. It's also super flexible, allowing for any type of content with just a bit more markup to wrap your contents. The thumbnails component can also use existing grid system classes for control of thumbnail dimensions and improved responsiveness:
Tooltips
A useful method of providing additional information on links:
Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.
Well placeholder
This is just a simple box, suitable for extra information or messages:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus et erat ut lectus fermentum tincidunt. Donec sed leo risus. Sed ut eros mi, a pellentesque purus. Donec leo elit, facilisis euismod accumsan in, mollis vel massa. Donec at turpis massa, nec tincidunt erat. In venenatis dolor sem. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam euismod egestas facilisis. Aenean vestibulum sapien nec libero imperdiet semper. In risus nulla, eleifend at pharetra sodales, consectetur non justo. Phasellus faucibus, leo eget blandit semper, augue felis ullamcorper lectus, vel luctus urna quam quis nunc. Nullam vel nibh sit amet felis tincidunt convallis eu nec purus. Sed tempor velit ut nulla pretium sodales. Quisque dapibus massa non velit elementum quis aliquam nibh pharetra. In arcu mauris, bibendum eget laoreet at, congue vitae tortor.
Aenean sed lacus vitae ante sagittis pellentesque. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Etiam mattis velit sed odio sollicitudin dapibus. Aenean pellentesque lectus quis quam hendrerit vel rhoncus augue facilisis. Aenean tempus malesuada augue vitae commodo. Etiam sed lorem dolor, et congue mauris. Nullam sit amet erat nisl, ac imperdiet dolor. Donec vel ligula odio. Maecenas pretium leo sit amet libero vulputate molestie in at arcu. Suspendisse potenti. Maecenas pellentesque, dolor id scelerisque vehicula, magna dolor luctus lectus, ut ornare lectus ipsum ut ligula. Aenean ante libero, consectetur vel ultricies quis, feugiat sed lorem. Aenean sollicitudin erat quis massa imperdiet et malesuada dui malesuada. Ut id augue nisi, nec placerat ligula. Sed imperdiet neque eget nibh hendrerit accumsan. In eget dolor sem, quis volutpat urna. Proin tempor nunc vitae felis iaculis bibendum.
Zebra-striped table
Creates a standard HTML table. Odd and even rows are different colours, and rows change colour when you hover over them. To make a larger table scroll horizontally on mobile devices, place the table inside a pair of <div class="scrollWrap"> and </div> tags:
| Table Cell Heading | Table Cell Heading | Table Cell Heading | Table Cell Heading |
|---|---|---|---|
| Table Cell | Table Cell | Table Cell | Table Cell |
| Table Cell | Table Cell | Table Cell | Table Cell |
| Table Cell | Table Cell | Table Cell | Table Cell |