Skip to content

Instantly share code, notes, and snippets.

@emk
Created April 22, 2009 16:40
Show Gist options
  • Save emk/99899 to your computer and use it in GitHub Desktop.
Save emk/99899 to your computer and use it in GitHub Desktop.
Compass and Sass make CSS easier
<html>
<head>
<title>My blog</title>
</head>
<body>
<div class='container'>
<div class='header'>
<h1>My blog</h1>
</div>
<div class='content'>
<div class='article'>
<h2>My newest post</h2>
</div>
</div>
<div class='sidebar'>
<p>This is a sidebar.</p>
</div>
</div>
</body>
</html>
# Using Sass, Compass and Compass's version of Blueprint.
@import compass/reset.sass
@import compass/utilities.sass
@import blueprint/screen
@import blueprint/modules/typography.sass
# Optional: Customize the grid.
!blueprint_grid_columns = 24
!blueprint_grid_width = 30px
!blueprint_grid_margin = 10px
+blueprint-typography
.container
+container
.header
+column(24, true)
.content
+column(18)
.sidebar
+column(6, true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment