Skip to content

Instantly share code, notes, and snippets.

@deepthawtz
Created March 6, 2010 17:52
Show Gist options
  • Select an option

  • Save deepthawtz/323823 to your computer and use it in GitHub Desktop.

Select an option

Save deepthawtz/323823 to your computer and use it in GitHub Desktop.
# inspired somehow by kennyshen, though if I were him I'd want no association with this
# CSS as Python
from hiss import HissBuilder, HissStyle
from hiss.tools import *
blue = "#0000fb"
class funky(HissStyle):
color = "#ff00ff"
font-family = "Monaco"
class html(HissBuilder):
height = "100%"
margin-bottom = "1px"
class container(funky): # inherits "funky"
margin = "auto"
padding = "10px"
class h1():
color = blue # defined above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment