Skip to content

Instantly share code, notes, and snippets.

@jdeagle
Created January 7, 2015 14:42
Show Gist options
  • Save jdeagle/23bc3b43f4658bb63c06 to your computer and use it in GitHub Desktop.
Save jdeagle/23bc3b43f4658bb63c06 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<section>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
<div>9</div>
<div>10</div>
<div>11</div>
<div>12</div>
<div>13</div>
<div>14</div>
<div>15</div>
<div>16</div>
</section>
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
@function grid-width($count, $width) {
$grid-width: ($count - 1) * ($count * $width);
@return $grid-width;
}
@function col-width($count, $gutter, $width) {
$grid-width: ($count - 1) * $gutter + ($count * $width);
@return $grid-width;
}
<section>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
<div>9</div>
<div>10</div>
<div>11</div>
<div>12</div>
<div>13</div>
<div>14</div>
<div>15</div>
<div>16</div>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment