Typography

InvisCSS's styling is pretty much the default styling that you get after NormalizeCSS is finished:

H1 Heading

H2 Heading

H3 Heading

H4 Heading

H5 Heading
Block Quote

A simple paragraph with a hyperlink. Keep on reading to see what InvisCSS brings to you:

Containers

InvisCss provides an optional containing element to wrap site contents.

Use container for a responsive, variable width container, with a pleasant amount of whitespace to the left and right, as you can see on this page.

If you prefer a more rigid system, you can use container-fixed instead.

<div class="container">
	...
</div>

Flexbox Grid

InvisCss uses a modified version of FlexBox Grid for grids. For anyone familiar with Bootstrap's Grid, you'll feel right at home.

.col-xs-12 .col-sm-6 .col-md-8
.col-xs-6 .col-md-4
.col-xs-6 .col-sm-4
.col-xs-6 .col-sm-4
.col-xs-6 .col-sm-4
.col-md-4
.col-md-4 .col-md-offset-4
.col-md-3 .col-md-offset-3
.col-md-3 .col-md-offset-3
.col-md-6 .col-md-offset-3

Also provided is a generic, but also responsive, flex system. Start with a surrounding div having .flex (or .row):

.flex.spaced-sm
Item 1
Item 2
Item 3
.flex.start-xs NB: .start-xs is implied through browser defaults & isn't necessary.
Item 1
.flex-grow-sm
Item 3
.flex.center-xs.reverse-md
Item 1
Item 2
Item 3
.flex.end-sm.start-md.center-lg
Item 1
Item 2
Item 3
.flex.spaced-sm.wrap-xs & responsive reordered
Item 1
.last-md
Item 3
.col-sm-2
Item 5
Item 6
Item 7
Item 8
.first-xs
Item 10
Item 11
Item 12
.flex.top-xs.middle-sm.baseline-md.bottom-lg
Item 1
Item 2
Item 3
.flex.vertical-xs.vertical-reverse-sm.horizontal-md
Item 1
Item 2
Item 3

Responsive Visibility

Extra Small Devices Small Devices Medium Devices Large Devices State
.hidden-xs Hidden Visible Visible Visible
.hidden-sm Visible Hidden Visible Visible
.hidden-md Visible Visible Hidden Visible Visible
.hidden-lg Visible Visible Visible Hidden
.hidden-xs-sm Hidden Hidden Visible Visible Visible
.hidden-xs-md Hidden Hidden Hidden Visible Visible
.hidden-sm-lg Visible Hidden Hidden Hidden Visible
.hidden-md-lg Visible Visible Hidden Hidden Visible

CSS Tables

Gone are the days of html tables for anything but data. InvisCss reinvigorates table layouts using properly formatted div's and CSS.

Cell 1.1
Cell 1.2
Cell 1.3
Cell 2.1 This is wide, but nowrap is on
Cell 2.2
Cell 2.3
Cell 3.1
Cell 3.2
Cell 3.3 and wider
Cell 4.1
Cell 4.2
Cell 4.3
Cell 5.1
Cell 5.2
Cell 5.3
<div class="table stripe border">
	<div class="row">
		<div class="cell nowrap">...</div>
	</div>
</div>

Responsive Tables

.col-md-5 .small
.col-sm-5 .col-md-5 .small
.col-xs-5 .col-md-2 .small
Wider than normal
Cell 2.2
Cell 2.3
Cell 3.1
Cell 3.2
Cell 3.3
Cell 4.1
Cell 4.2
Cell 4.3
Cell 5.1
Cell 5.2
Cell 5.3
<div class="table vert-stripe horiz-border outer-border">
	<div class="row">
		<div class="cell col-md-5">...</div>
	</div>
</div>

...or on the table itself

Cell 1.1
Cell 1.2
Cell 1.3
Cell 2.1
Cell 2.2
Cell 2.3
Cell 3.1
Cell 3.2
Cell 3.3
Cell 4.1
Cell 4.2
Cell 4.3
Cell 5.1
Cell 5.2
Cell 5.3
<div class="table stripe border col-md-8 center">
	...
</div>

Forms

Standard form

This is the default layout, with only aligned specified on the form. Label elements are rendered as right-aligned table cells automatically, and are responsive.

Drop Files or Click Here... Drop Files or Click Here...


<form ...>
	<div class="row"> 
		<label for="exampleInputEmail1">Email address</label> 
		<input id="exampleInputEmail1" placeholder="Email" type="email"> 
	</div> 
	...
</form>

* Requires Javascript

Stacked

Just add stacked to the form's class (or to a parent of the form elements) to always stack elements vertically.

<form class="center stack" ...>
	...
</form>

* Requires Javascript

Buttons

Grouped

Alerts

Well done! You successfully read this important alert message.
Heads up! This alert needs your attention, but it's not super important. You can close this & it will fade out.
Warning! Better check yourself, you're not looking too good.
Oh snap! Change a few things up and try submitting again.
Have an iconic day.

<div class="alert success">
  ...
</div>
<div class="alert info fade">
  ...<i class="inv-cancel close"></i>
</div>
<div class="alert warning">
  ...
</div>
<div class="alert danger">
  ...
</div>
	

Timed Alerts

By adding .timeout and optional data-timeout="2500", you can choose to automatically close the alert. The timeout value is in milli-seconds.

Note: Dynamically adding alerts at run-time is supported on most browsers* (*except IE10, Opera Mini, Android 4.3)

Try It!

<div class="alert success fade timeout" data-timeout="3000">
  ...
</div>
	

Media

64x64

Media heading

Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.

64x64

Media heading

Image at middle. Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.

64x64

Nested Media heading

Image at bottom. Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.


<div class="media">
	<div class="thumbnail">...</div>
	<div class="body">...</div>
</div>
	

Alternating Media

Wrap it in .media-alternate, or set individually using .right

64x64

Media heading

Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.

64x64

Media heading

Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.

64x64

Media heading

Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.

A Panel

Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.

A Well

Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.