Skip to content

Instantly share code, notes, and snippets.

@w33ble
Last active December 12, 2015 08:08
Show Gist options
  • Save w33ble/4741463 to your computer and use it in GitHub Desktop.
Save w33ble/4741463 to your computer and use it in GitHub Desktop.
Stylus import workflow
// This is just the stylesheet from semantic.gs, with the body style removed
@import "grid"
// Make the site responsive
total-width: 100%
// Any other site stylus variables will live here
// We will always import this styl file
@import "main" //import site variables, including semantic.gs
@import "lib/normalize.css"
// Main stylesheet, included on each page load
// Responsive hiding stuff taken from bootstrap goes here
body
// body styles from semantic.gs placed here
width: 100%
clearfix()
// site specific styles go here
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif
// Any other global site styles (think bootstrap's base.css, which you could also just import at the top directly)
// This is the style for the index page, which we can load dynaically via backbone/require
@import "main"
#some-element
column(8) //use some grid system goodness
background-color: red
#another-element
column(4)
background-color: blue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment