Skip to content

Instantly share code, notes, and snippets.

@josephj
Created June 10, 2013 01:15
Show Gist options
  • Save josephj/5745975 to your computer and use it in GitHub Desktop.
Save josephj/5745975 to your computer and use it in GitHub Desktop.
@import susy
$total-columns: 49
$column-width: 20px
$gutter-width: 0px
$grid-padding: 0px
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Susy Layout</title>
<link rel="stylesheet" href="stylesheets/layout.css">
</head>
<body>
<div class="grid">
<div id="hd">
<header>
<h1>頁首</h1>
</header>
</div>
<div id="bd">
<nav class="grid-nav">主選單</nav>
<div class="grid-main">
<div class="grid-content">主要內容</div>
<aside class="grid-aside">側邊欄</aside>
</div>
</div>
<div id="ft">
<footer>頁尾</footer>
</div>
</div>
</body>
</html>
@import base
@import compass/reset
// Layout Setting
.grid
+container
#hd, #bd, #ft
+clearfix
.grid-nav
+span-columns(8)
.grid-main
+span-columns(41 omega)
.grid-content
+span-columns(36)
.grid-aside
+span-columns(13 omega)
// Just for decoration
.grid-nav
background: red
.grid-main
background: gray
.grid-aside
background: pink
.grid-content
background: yellow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment