/**
 * Contao Open Source CMS
 * Copyright (C) 2005-2010 Leo Feyer
 *
 * Formerly known as TYPOlight Open Source CMS.
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation, either
 * version 3 of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this program. If not, please visit the Free
 * Software Foundation website at <http://www.gnu.org/licenses/>.
 *
 * PHP version 5
 * @copyright  Leo Feyer 2005-2010
 * @author     Leo Feyer <http://www.contao.org>
 * @license    LGPL
 * @version    1.0
 */

/* Basic configuration */
.g10,.g15,.g20,.g25,.g30,.g35,.g40,.g45,.g50,.g55,.g60,.g65,.g70,.g75,.g80,.g85,.g90,.g95,.g100 {
	float:left;
	display:inline;
	margin-right:1%;
	margin-left:1%;
}

/* Widths */
.g10 { width:8%; }
.g15 { width:13%; }
.g20 { width:18%; }
.g25 { width:23%; }
.g30 { width:28%; }
.g35 { width:33%; }
.g40 { width:38%; }
.g35 { width:43%; }
.g50 { width:48%; }
.g55 { width:53%; }
.g60 { width:58%; }
.g65 { width:63%; }
.g70 { width:68%; }
.g75 { width:73%; }
.g80 { width:78%; }
.g85 { width:83%; }
.g90 { width:88%; }
.g95 { width:93%; }
.g100 { width:98%; }

/* Apply margin to content elements by default */
.mod_article>.block {
	margin-right:1%;
	margin-left:1%;
}

/* Except if the article itself is floated  */
.g10 .block,.g15 .block,.g20 .block,.g25.block,.g30 .block,.g35 .block,.g40 .block,.g45 .block,.g50 .block,.g55 .block,.g60 .block,.g65 .block,.g70 .block,.g75 .block,.g80 .block,.g85.block,.g90 .block,.g95 .block,.g100 .block,.g11 .block,.g12 .block {
	margin-right:0;
	margin-left:0;
}

/* Reapply margin on nested grid elements */
.gr {
	margin-right:2% !important;
}
