Skip to content

Instantly share code, notes, and snippets.

@bergie
Created October 17, 2014 10:48
Show Gist options
  • Save bergie/0da832c1ec85d6bde68c to your computer and use it in GitHub Desktop.
Save bergie/0da832c1ec85d6bde68c to your computer and use it in GitHub Desktop.
GSS example
@horizontal .TutorialPage gap(0);
.TutorialPage {
x :>= 0;
y :>= 0;
width:== ::window[width];
height:== ::window[height];
}
<!DOCTYPE html>
<html>
<head>
<script>
window.GSS_CONFIG = {
worker: "bower_components/gss/dist/worker.js"
}
</script>
<script src="bower_components/gss/dist/gss.js"></script>
<link rel="stylesheet" type="text/gss" href="my-awesome-styles.gss"/>
</head>
<body>
<div class="TutorialPage">
Foo
</div>
<div class="TutorialPage">
Bar
</div>
<div class="TutorialPage">
Baz
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment