/**
 * TYPOlight webCMS
 * Copyright (C) 2005-2009 Leo Feyer
 *
 * 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 2.1 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-2009
 * @author     Leo Feyer <leo@typolight.org>
 * @license    LGPL
 * @version    1.0
 */

/* Basic configuration */
.g1, .g2, .g3, .g4, .g5, .g6, .g7, .g8, .g9, .g10, .g11, .g12 {
  float: left;
  display: inline;
  margin-right: 10px;
  margin-left: 10px;
}

/* Widths */
.g1 {
  width: 60px;
}
.g2 {
  width: 140px;
}
.g3 {
  width: 220px;
}
.g4 {
  width: 300px;
}
.g5 {
  width: 380px;
}
.g6 {
  width: 460px;
}
.g7 {
  width: 540px;
}
.g8 {
  width: 620px;
}
.g9 {
  width: 700px;
}
.g10 {
  width: 780px;
}
.g11 {
  width: 860px;
}
.g12 {
  width: 940px;
}

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

/* Except if the article itself is floated  */
.g1 .block, .g2 .block, .g3 .block, .g4 .block, .g5 .block, .g6 .block, .g7 .block, .g8 .block, .g9 .block, .g10 .block, .g11 .block, .g12 .block {
  margin-right: 0;
  margin-left: 0;
}

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