Clean and intuitive front-end framework that helps create bold and modern web development.
Fully responsive 12 column grid based on 80% width.
Look at all the pretty colors.
The Metro Bootstrap is very helpful with helping you create beautiful, clean, and quick frontend markup for your applications.
Since we are all about supporting standards, we encourage you use the awesome normalize.css.
LESS CSS is also used to allow for some really great cross-browser compatibility in the MIXINS section.
|- css/
|---- normalize.css
|---- metro.less
|---- style.less
|- js/
|---- jquery.js
|---- less.js
Add these lines to the <head>
of your document.
<!-- CSS -->
<link rel="stylesheet" href="normalize.css">
<link rel="stylesheet/less" href="metro.less">
<link rel="stylesheet/less" href="metro.less">
<!-- JS -->
<script src="jquery.js"></script>
<script src="less.js"></script>
For LESS development purposes, add this line before loading less.js
With this line, if there are any syntax errors in your .less files, an error will be shown. Very helpful.
<script>less = { env : development };</script>
The fluid grid is based on a 12 column approach. It is based on 3 main CSS classes:
container-fluid
or container-fixed
row
span
The span
classes must add up to 12 to make a full grid.
The first span
must also carry a class of first
.
<div class="container-fluid">
<div class="row">
<div class="span6 first">
this is half of the row
</div>
<div class="span6">
this is the second half of a row
</div>
</div>
</div>
container-fluid
is used on your overall container class.
row
is used for every row you want to use.
span
is the size for each grid item. the first item on the row also needs the first
class
<div class="container-fluid">
<div class="row">
<div class="span2 first">section one</div>
<div class="span2">sections two</div>
<div class="span2">sections three</div>
<div class="span2">sections four</div>
<div class="span2">sections five</div>
<div class="span2">sections six</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="span2 first">section one</div>
<div class="span2">sections two</div>
<div class="span2">sections three</div>
<div class="span2">sections four</div>
<div class="span2">sections five</div>
<div class="span2">sections six</div>
</div>
</div>
These colors are LESS variables that can be used for anything from background to color.
They can also be tweaked using the LESS lighten, darken, and
.circle { background: @magenta; }
.circle:hover { background: lighten(@magenta, 20%); }
Tables with the added class of table
are given clean and easy to use styles.
<table class="table table-striped table-hover">
<thead>
<tr>
<td>Superhero</td>
<td>Secret Identity</td>
<td>Email</td>
</tr>
</thead>
<tbody>
<tr>
<td>Iron Man</td>
<td>Tony Stark</td>
<td>titanium@titan.com</td>
</tr>
</tbody>
</table>
Superhero | Secret Identity | |
Iron Man | Tony Stark | titanium@titan.com |
Batman | Bruce Wayne | caped@crusader.com |
Flash | Wally West | fastestmanalive@speedforce.com |
Superhero | Secret Identity | |
Iron Man | Tony Stark | titanium@titan.com |
Batman | Bruce Wayne | caped@crusader.com |
Flash | Wally West | fastestmanalive@speedforce.com |
Superhero | Secret Identity | |
Iron Man | Tony Stark | titanium@titan.com |
Batman | Bruce Wayne | caped@crusader.com |
Flash | Wally West | fastestmanalive@speedforce.com |
Superhero | Secret Identity | |
Iron Man | Tony Stark | titanium@titan.com |
Batman | Bruce Wayne | caped@crusader.com |
Flash | Wally West | fastestmanalive@speedforce.com |
LESS.js provides a great deal of power to take CSS even further.
.border-radius(4px);
.border-radius-all(
4px, 4px, 0, 0
);
.border-radius-all(
@topleft,
@topright,
@bottomright,
@bottomleft
);
.opacity(1);
.opacity(0.5);
.opacity(.2);
.box-shadow(2px, 2px, 10px, #000, 0);
.box-shadow(
@x-size,
@y-size,
@blur,
@color,
@spread
);
.box-shadow-inset(2px, 2px, 10px, #FFF, 0);
.box-shadow-inset(
@x-size,
@y-size,
@blur,
@color,
@spread
);
.gradient-vertical(#C2C2C2, #838383);
.gradient-vertical(
@firstColor,
@secondColor
);
.gradient-horizontal(#C2C2C2, #838383);
.gradient-horizontal(
@firstColor,
@secondColor
);