Getting Started
Mi. is a HTML/CSS template based on Bootstrap 3 framework. It allows to built impressive, better & faster, mobile friendly websites.
HTML Structure
This is the base of each HTML file:
<!-- Header --> <header id="header"> ... </header> <!-- Header / End --> <!-- Content --> <div id="content" class="container"> <div id="photo"> ... </div> <div id="sections-wrapper"> <!-- Section --> <section> ... </section> ... </div> </div> <!-- Content / End -->
Grid System
Mi. Template supporst all features of Bootstrap Grid System - go to Bootrstrap's page and check how does it work.
CSS Elements
Thanks to awesome CSS elements you will be able to prepare unusual websites in the fastest and the easiest way. Check them out!
Available Colors
Colour scheme:
Other:
Typography
Headings
h1. Bootstrap heading
h2. Bootstrap heading
h3. Bootstrap heading
h4. Bootstrap heading
h5. Bootstrap heading
h6. Bootstrap heading
<h1>h1. Bootstrap heading</h1> <h2>h2. Bootstrap heading</h2> <h3>h3. Bootstrap heading</h3> <h4>h4. Bootstrap heading</h4> <h5>h5. Bootstrap heading</h5> <h6>h6. Bootstrap heading</h6>
Paragraph
Maecenas a risus quis ipsum convallis fringilla in ut magna. Phasellus et sagittis odio. Sed in enim condimentum, lacinia metus id, sollicitudin libero. In ac ultricies justo.
Curabitur sit amet turpis eu diam luctus viverra. Sed viverra ornare ex, quis lobortis diam vehicula a. In imperdiet est tristique, malesuada odio quis, volutpat ante. Nulla ullamcorper, nisl sed faucibus posuere, dui turpis mattis turpis, in porttitor massa odio nec sapien.
<p class="lead">...</p> <p>...</p>
Blockquote
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
<blockquote> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> <footer><img src="..." alt="...">Someone famous in <cite title="Source Title">Source Title</cite></footer> </blockquote>
Labels
Default Primary Success Info Warning Danger
Images
Pagination
<ul class="pagination"> <li><a href="#" aria-label="Previous"><i class="fa fa-chevron-left"></i></a></li> <li class="active"><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#" aria-label="Next"><i class="fa fa-chevron-right"></i></a></li> </ul>
Icons
Mi. template includes two fantastic sets of icons - Font Awesome and Themify Icons
Basic Icons
Circle Icons
Colors
Each icon may be used in any color from Available Colors section. Please use .icon-[color-name]
- for example:
Hover effect
Icons provides nice hover effect by adding .icon-hover
class.
Social Icons
This product supports lots of social icon types.
Forms
To validate the form please add .validate-form
class and required
atribute to input
/ textarea.
<div class="form-group"> <label for="exampleInput">Input:</label> <input type="email" class="form-control" id="exampleInput" placeholder="Email"> </div> <div class="form-group"> <label for="exampleTextarea">Textarea:</label> <textarea class="form-control" id="exampleTextarea" placeholder="Example Textarea"></textarea> </div>
Alerts
<div class="alert alert-success" role="alert"> ... </div> <div class="alert alert-info" role="alert"> ... </div> <div class="alert alert-warning" role="alert"> ... </div> <div class="alert alert-danger" role="alert"> ... </div>
Testimonials
<!-- Testimonial - Default --> <div class="testimonial"> <div class="testimonial-content"> ... </div> <div class="testimonial-author with-image"> <img src="..." alt=""> <div class="name">...</div> <span class="text-muted">...</span> </div> </div> <!-- Testimonial - Primary --> <div class="testimonial testimonial-primary"> <div class="testimonial-content"> ... </div> <div class="testimonial-author"> <div class="name">...</div> <span class="text-muted">...</span> </div> </div>
Timelines
Front-End Developer
Webdesigner & Front End Developer
Front-End Developer
<div class="timeline"> <!-- Event--> <div class="timeline-event animated"> <div class="date"><span>08.2010 - 09.2011</span></div> <div class="content"> <h3>Front-End Developer</h3> <span class="caption">Envato, Sydney, Australia</span> </div> </div> <!-- Event--> <div class="timeline-event animated"> <div class="date"><span>08.2010 - 09.2011</span></div> <div class="content"> <img src="assets/img/photos/london.jpg" alt="" class="img-rounded"> <h3>Webdesigner & Front End Developer</h3> <span class="caption">Envato, Sydney, Australia</span> </div> </div> <!-- Event--> <div class="timeline-event animated"> <div class="date"><span>08.2010 - 09.2011</span></div> <div class="content"> <h3>Front-End Developer</h3> <span class="caption">Envato, Sydney, Australia</span> </div> </div> </div>
Each event on timeline may have diffrent color from Available Colors section by using .te-[color-name]
class.
Helper Classes
Text Colors
It is possible to add any color form Available Colors section by .text-[color-name]
class
Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.
Backgrounds
Similar to text colors it is possible to add backgorund color from Available Colors section by .bg-[color-name]
class.
For dark background colors it is necessary to add dark
class to adjust font colors and other styles. Sometimes, if inside dark element is placed element with light background you should add light
class to such element.
Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.
<p class="bg-success dark p-20">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p>
Free Space
It is possible to add free spaces to the site by using special classes base of this scheme: .[type][direction]-[value]
.
[type]
- sets type of free space - m (margin), p (padding)[direction]
- sets direction of free space (optional) - t (top), r (right), b (bottom), l (left)[value]
- sets value of free space - 0, 5, 10 ... 200
<div class="bg-primary dark pt-60 pb-60 pl-30 pr-30">Box with 60px vertical padding and 30px horizontal padding</div>
Border
It is possible to add border to any of html elements by adding proper class:
.border
- adds border to element.border-top
- adds top border to element.border-bottom
- adds bottom border to element
<div class="pb-10 border-bottom">Element with border-bottom and 20px bottom padding</div>
Heights & vertical center position
The template allows to set minimial height of block html element. It is possible by using .h-[value]
class.
[value] is a number from 100 to 900 with 100 gap or sm (40% of viewport), md (60% of viewport) and lg (80% of viewport).
By .fullheight
class you set elements height equal to the browser viewport height.
Using .v-center
class makes element positioned vertically center in relation to the parent.
<div class="h-200 border"><div class="p-20 v-center">Element in vertical center position inside 200px container with border.</div></div>
More useful helper classes are listed on Bootstrap's 3 website!
Components
Thanks to the prepared components you will be able to create really cool and effective, easy to use websites. Let's start exploring them!
Progress Bars
Present the data on this easy to use progress bars.
To set color of progress bar please add the .progress-bar-[color-name]
class, where [color-name]
is a name of color from Available Colors section.
<div class="progress"> <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">60%</div> </div>
Tabs
Feel free to use the tabs for dynamic content.
<!-- Nav tabs --> <nav class="tabs-wrapper mb-20"> <ul class="nav nav-tabs"> <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Home</a></li> <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">Profile</a></li> <li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">Messages</a></li> </ul> <span class="selector"></span> </nav> <!-- Tab panes --> <div class="tab-content"> <div role="tabpanel" class="tab-pane fade in active" id="home">...</div> <div role="tabpanel" class="tab-pane fade" id="profile">...</div> <div role="tabpanel" class="tab-pane fade" id="messages">...</div> </div>
Modal
Modal window is perfect place for any kind of content.
<!-- Button trigger modal --> <button type="button" class="btn btn-blue btn-lg" data-toggle="modal" data-target="#demoModal"><span>Launch demo modal</span></button> <!-- Modal / Demo --> <div class="modal fade" id="demoModal" role="dialog"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="ti-close"></i></button> <h4 class="modal-title" id="myModalLabel">Modal title</h4> </div> <div class="modal-body"> ... </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="button" class="btn btn-primary">Save changes</button> </div> </div> </div> </div>
Sizes
Modals have three optional sizes .modal-sm
, .modal-lg
available via modifier classes to be placed on a .modal-dialog.
Ajax Modal
Load dynamic content by Ajax using special modal windows.
<!-- Ajax Trigger --> <a href="..." class="btn btn-primary btn-lg" data-toggle="ajax-modal"><span>Load example ajax modal</span></a> <!-- Two mandatory elements somewhere at the end of body --> <!-- Ajax Modal --> <div id="ajax-modal"></div> <!-- Ajax Loader --> <svg id="ajax-loader" class="loader" width="65px" height="65px" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg"><circle class="circle" fill="none" stroke-width="3" stroke-linecap="round" cx="33" cy="33" r="30"></circle></svg>
Carousel
Carousel is a really cool element to preset any kind of content like photos, icons, texts, etc.
To use carousel it is necessary to set some attribuites to .carousel
element:
data-items
- sets the maximum amount of items displayed at a time with the widest browser width.data-single-item
- sets single item carouseldata-auto-play
- adds auto slideshow which value is the slide speed (default 3000)data-pagination
- disables / enables paginationdata-navigation
- disables / enables navigation
<!-- Carousel --> <div class="carousel" data-items="3" data-pagination="true" data-navigation="true"> <div class="slide">...</div> <div class="slide">...</div> <div class="slide">...</div> <div class="slide">...</div> <div class="slide">...</div> </div>
Tooltips
Hover the buttons to see the tooltips.
Configuration
The template includes some configurable elements - here you will find informations how to use them!
Google Map
To configure Google Map it is necessary to set latitude and longitude parameters by data-latitude
and data-longitude
attributes of #google-map
element. To get it please visit site like this.
<div id="google-map" class="h-400" data-latitude="40.758895" data-longitude="-73.985131"></div>
Map supports light
and dark
color themes - to set it please use data-style
attribute.
Contact Form
To configure contact form please open contact-form.php file from /assets/php directory and go the line with an e-mail address to change it to your own - like this.
$emailTo = 'your@email.com';
After that you will recieve the messages from your websites to this e-mail address.
SignUp Form
SignUp form is made with Mailchimp API.
How to create the form?
- Log into the Mailchimp site.
- Create subscribers list.
- Get into the list and go to "Signup forms" tab.
- Pick "Embedded forms".
- Pick "Classic version" and copy / paste somewhere generated code (don't change anything).
- Find
form
selector and copyaction
atribute valuse into your form. Remember to addmethod="POST"
attribute. - Modify action URI by changing
.../post?...
to.../post-json?...
. It should look like thisaction="//suelo.us12.list-manage.com/subscribe/post-json?u=ed47dbfe167d906f2bc46a01b&id=24ac8a22ad"
- Find email input and copy
type
,name
andid
to your input - it should look like this:<input type="email" value="" name="EMAIL" class="form-control input-lg" id="mce-EMAIL">
- Find input which prevents bot signups and paste it somewhere in the form - it should be hidden!
- Add submit button and enjoy your working Sign Up form!
Aniamtions
The template allows to add really cool animations for each of html elements. Let's check how to use it!
Entrance animation
This animation fires when element appears in the browser viewport. To add such animation you need to place .animated
class in the animted element and preciese which animation do you want to use by data-animation
attribute. It is also possible to add some delay to the animation (in ms) by data-animation-delay
attribute.
Files & Credits
CSS Files
The template uses mainly 3 CSS files:
styles.css
- compressed file with all necessary plugins, fonts and animations styles (more at credicts)themes/theme-[type].css
- main template file with couple of types:- blue
- navy-blue
- orange
- red
- mint
- green
- teal
- yellow
- purple
- Document Setup
- Basic
- Header
- Content
- Elements
- Widgets
- Animations
Documentation uses one addiotional prettify.css
stylesheet for code highlighter.
SASS Files
CSS files are generated thanks to well organized SCSS files.
├── _animations.scss ├── _base.scss ├── _basics.scss ├── _config.scss ├── _content │ ├── _blog.scss │ ├── _carousel.scss │ ├── _icon-boxes.scss │ ├── _media.scss │ ├── _other.scss │ ├── _testimonials.scss │ └── _timeline.scss ├── _content.scss ├── _elements │ ├── _accordion.scss │ ├── _ajax-modal.scss │ ├── _backgrounds.scss │ ├── _breadcrumbs.scss │ ├── _buttons.scss │ ├── _carousel.scss │ ├── _forms.scss │ ├── _icons.scss │ ├── _images.scss │ ├── _labels-badges.scss │ ├── _loader.scss │ ├── _modals.scss │ ├── _navs.scss │ ├── _pagination.scss │ ├── _panel.scss │ ├── _price-tables.scss │ ├── _progress-bars.scss │ └── _typography.scss ├── _elements.scss ├── _header │ ├── _navigation-bar.scss │ └── _top-bar.scss ├── _header.scss ├── _setup.scss ├── _widgets.scss ├── theme-blue-navy.scss ├── theme-blue.scss ├── theme-green.scss ├── theme-mint.scss ├── theme-orange.scss ├── theme-purple.scss ├── theme-red.scss ├── theme-teal.scss └── theme-yellow.scss
theme-[type].scss
is a main SCSS file where main colors have been set._base.css
file is a base for each theme which imports other partials._config.css
file with SASS variables which configure colors, fonts and more.
JavaScript Files
On the end of the body of each html file there are placed 4 JavaScrpt files:
jquery-1.12.3.min.js
- compressed file with necessary plugins, fonts and animations styles (more at credicts)plugins.js
- compressed file with all necessary plugins sources (more at credicts)core.js
- main JavaScript filehttp://maps.google.com/maps/api/js
Google Map API
Elements page uses one addiotional prettify.js
plugin for code highlighter.
PHP Files
The template includes few PHP scripts:
/php/contact-form.php
- configuration file for contact form/api/twitter/config.php
- configuration file for Twitter feed
Credits
Fonts:
- Roboto - https://www.google.com/fonts#UsePlace:use/Collection:Roboto
- Montserrat - https://www.google.com/fonts#UsePlace:use/Collection:Montserrat
- Font Awesome - http://fortawesome.github.io/Font-Awesome/
- Themify Icons - http://themify.me/themify-icons
Libraries:
- jQuery - http://jquery.com/
- Bootstrap 3 - http://getbootstrap.com/
Plugins:
- Appear - http://morr.github.io/appear.html
- Easing - http://gsgd.co.uk/sandbox/jquery/easing/
- LocalScroll - http://flesler.blogspot.com/2007/10/jquerylocalscroll-10.html
- ScrollTo - https://github.com/flesler/jquery.scrollTo
- Waypoint - http://imakewebthings.com/waypoints/
- Masonry - http://masonry.desandro.com/
- ImagesLoaded - http://imagesloaded.desandro.com/
- OwlCarousel - http://owlgraphic.com/owlcarousel/
- WaitForImages - https://github.com/alexanderdickson/waitForImages
- Isotope - http://isotope.metafizzy.co/
- Validate - https://jqueryvalidation.org/
- Twettie - https://github.com/sonnyt/Tweetie
- Typed - http://www.mattboldt.com/demos/typed-js/
- jquery.mb.YTPlayer - http://pupunzi.open-lab.com/mb-jquery-components/jquery-mb-ytplayer/
- Prettify - https://github.com/google/code-prettify
Images:
Some of images cannot be included in download package, and have been blurred for licensing reasons.
Included images:
- https://www.pexels.com/photo/iphone-desk-office-pen-38556/
- https://www.pexels.com/photo/white-laptop-female-hand-note-pen-phone-desk-6471/
- https://www.pexels.com/photo/apple-iphone-books-desk-232/
- https://www.pexels.com/photo/girl-writing-on-a-black-keyboard-6469/
- https://www.pexels.com/photo/white-tablet-and-cup-of-coffee-6337/
- https://www.pexels.com/photo/mock-up-technology-laptop-apple-51171/
- https://www.pexels.com/photo/black-and-white-building-architecture-24506/
- https://www.pexels.com/photo/building-high-rise-24381/
- https://www.pexels.com/photo/architecture-building-facade-windows-25474/
- https://www.pexels.com/photo/train-strong-training-workout-39688/
- https://www.pexels.com/photo/apple-office-internet-ipad-38544/
- https://www.pexels.com/photo/stack-of-magazines-pencils-in-gray-cup-6440/
- https://www.pexels.com/photo/writing-notes-idea-class-7103/
- https://www.pexels.com/photo/wood-architect-table-work-3855/
- https://www.pexels.com/photo/bench-wooden-design-steel-103674/
Other:
- Animate.css - http://daneden.github.io/animate.css/
Updates
v1.21
- Fix localscroll
v1.2
- Added 2 New Demo Versions.
- No-photo version.
- Transparent header.
v1.1
- Added background map concept.
- Design updated.
- Bug fixes.