154 lines
2.6 KiB
CSS
154 lines
2.6 KiB
CSS
|
/*
|
||
|
Variable Grid System (Fluid Version).
|
||
|
Learn more ~ http://www.spry-soft.com/grids/
|
||
|
Based on 960 Grid System - http://960.gs/ & 960 Fluid - http://www.designinfluences.com/
|
||
|
|
||
|
Licensed under GPL and MIT.
|
||
|
*/
|
||
|
|
||
|
|
||
|
/* Containers
|
||
|
----------------------------------------------------------------------------------------------------*/
|
||
|
.container_3 {
|
||
|
width: 92%;
|
||
|
margin-left: 4%;
|
||
|
margin-right: 4%;
|
||
|
}
|
||
|
|
||
|
/* Grid >> Global
|
||
|
----------------------------------------------------------------------------------------------------*/
|
||
|
|
||
|
.grid_1,
|
||
|
.grid_2,
|
||
|
.grid_3 {
|
||
|
display:inline;
|
||
|
float: left;
|
||
|
position: relative;
|
||
|
margin-left: 1%;
|
||
|
margin-right: 1%;
|
||
|
}
|
||
|
|
||
|
/* Grid >> Children (Alpha ~ First, Omega ~ Last)
|
||
|
----------------------------------------------------------------------------------------------------*/
|
||
|
|
||
|
.alpha {
|
||
|
margin-left: 0;
|
||
|
}
|
||
|
|
||
|
.omega {
|
||
|
margin-right: 0;
|
||
|
}
|
||
|
|
||
|
/* Grid >> 3 Columns
|
||
|
----------------------------------------------------------------------------------------------------*/
|
||
|
|
||
|
|
||
|
.container_3 .grid_1 {
|
||
|
width:31.333%;
|
||
|
}
|
||
|
|
||
|
.container_3 .grid_2 {
|
||
|
width:64.667%;
|
||
|
}
|
||
|
|
||
|
.container_3 .grid_3 {
|
||
|
width:98.0%;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
/* Prefix Extra Space >> 3 Columns
|
||
|
----------------------------------------------------------------------------------------------------*/
|
||
|
|
||
|
|
||
|
.container_3 .prefix_1 {
|
||
|
padding-left:33.333%;
|
||
|
}
|
||
|
|
||
|
.container_3 .prefix_2 {
|
||
|
padding-left:66.667%;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
/* Suffix Extra Space >> 3 Columns
|
||
|
----------------------------------------------------------------------------------------------------*/
|
||
|
|
||
|
|
||
|
.container_3 .suffix_1 {
|
||
|
padding-right:33.333%;
|
||
|
}
|
||
|
|
||
|
.container_3 .suffix_2 {
|
||
|
padding-right:66.667%;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
/* Push Space >> 3 Columns
|
||
|
----------------------------------------------------------------------------------------------------*/
|
||
|
|
||
|
|
||
|
.container_3 .push_1 {
|
||
|
left:33.333%;
|
||
|
}
|
||
|
|
||
|
.container_3 .push_2 {
|
||
|
left:66.667%;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
/* Pull Space >> 3 Columns
|
||
|
----------------------------------------------------------------------------------------------------*/
|
||
|
|
||
|
|
||
|
.container_3 .pull_1 {
|
||
|
left:-33.333%;
|
||
|
}
|
||
|
|
||
|
.container_3 .pull_2 {
|
||
|
left:-66.667%;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/* Clear Floated Elements
|
||
|
----------------------------------------------------------------------------------------------------*/
|
||
|
|
||
|
/* http://sonspring.com/journal/clearing-floats */
|
||
|
|
||
|
.clear {
|
||
|
clear: both;
|
||
|
display: block;
|
||
|
overflow: hidden;
|
||
|
visibility: hidden;
|
||
|
width: 0;
|
||
|
height: 0;
|
||
|
}
|
||
|
|
||
|
/* http://perishablepress.com/press/2008/02/05/lessons-learned-concerning-the-clearfix-css-hack */
|
||
|
|
||
|
.clearfix:after {
|
||
|
clear: both;
|
||
|
content: ' ';
|
||
|
display: block;
|
||
|
font-size: 0;
|
||
|
line-height: 0;
|
||
|
visibility: hidden;
|
||
|
width: 0;
|
||
|
height: 0;
|
||
|
}
|
||
|
|
||
|
.clearfix {
|
||
|
display: inline-block;
|
||
|
}
|
||
|
|
||
|
* html .clearfix {
|
||
|
height: 1%;
|
||
|
}
|
||
|
|
||
|
.clearfix {
|
||
|
display: block;
|
||
|
}
|