#set ($maxColumns = "$!request.maxColumns")
#set ($maxColumnsNumber = $mathtool.toInteger($maxColumns))
#if (!$maxColumnsNumber || $maxColumnsNumber <= 0)
  #set ($maxColumnsNumber = 50)
#end
/* Don't fill 100% because IE doesn't fit things properly in. */
#set($columnsTotalWidth = 99)
/* 1.5% padding right to all the columns except last one. */
#set($columnPadding = 0.75)

/* Render generic css first */

/* FIXME: this style should not be here, it's style for the container overall, not for the columns layout. For the moment
   it's here to minimize the number of requested css, since there are no other container rules at the moment (like
   border, title, or other decoration). */
.container-justified {
  text-align: justify;
}

.container-columns .column {
  float: left;
}

/* Responsiveness, upon the same limit than Twitter Bootstrap (768px) */
@media (max-width: 768px) {
  .container-columns .column {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }
}

/* Make sure that the columns take space when they're empty: if height is auto, and they are floated, they will collapse
   as if they didn't exist, which breaks the layout */
.container-columns .column {
  min-height: 10px;
}

.container-columns .first-column {
  padding-left: 0;
}
.container-columns .last-column {
  padding-right: 0;
}


/* Generate column-specific css classes */
#foreach($columns in [1..$maxColumnsNumber])
  /* Compute the percent of the screen width of a column. Round so that the java upper rounding doesn't screw IE, and because 2 decimals should be enough for everyone. */
  #set($rawComputedColumnWidth = (($columnsTotalWidth - $columnPadding * 2 * ($columns - 1)) / $columns))
  #set($computedColumnWidth = $mathtool.roundTo(2, $rawComputedColumnWidth))
  .container-columns-$columns .column{
    width: $computedColumnWidth%;
    padding-right: $columnPadding%;
    padding-left: $columnPadding%;
  }
#end

Upgrade XWiki to 7.4.6 Bug: homepage gadgets are too small Step 1: added the upstream version of the file
PT-3624: Upgrade XWiki to 7.4.6
Bug: homepage gadgets are too small
Step 1: added the upstream version of the file
