Skip to content

Instantly share code, notes, and snippets.

@machida
Created September 18, 2013 02:51
Show Gist options
  • Save machida/6603862 to your computer and use it in GitHub Desktop.
Save machida/6603862 to your computer and use it in GitHub Desktop.
// グリッドの設定
$columns-count: 12
$column-margin: 20px
.row
+row
// カラムの幅によって色を変える
=column-color($i)
background: hsl($i * 30, 46, 66)
// .columnに色を付ける
#grids
@each $break-point in $break-points
+break-points(#{$break-point})
@for $i from 1 through $columns-count
#{$column-namespace}#{$break-point}-#{$i}
+column-color($i)
border-color: hsl($i * 30, 40, 50)
h1
color: hsl($i * 30, 30, 40)
@machida
Copy link
Author

machida commented Sep 18, 2013

@machida
Copy link
Author

machida commented Sep 18, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment