Skip to content

Instantly share code, notes, and snippets.

@Sitebase
Created March 19, 2015 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sitebase/d7604fd5be9515b595da to your computer and use it in GitHub Desktop.
Save Sitebase/d7604fd5be9515b595da to your computer and use it in GitHub Desktop.
Quote template
<link href='http://fonts.googleapis.com/css?family=Lora' rel='stylesheet' type='text/css'>
<style>
body{
/* defaults, use for testing the template without PhantomJS */
width: 400px;
height: 400px;
background-color: #2e3192;
font-size: 400px;
width: {{ width }}px;
height: {{ height }}px;
display: inline-block;
padding: 0 10% 0 10%;
background: #{{ color }};
color: #FFF;
font-size: {{ width }}px;
font-family: 'Lora', serif;
/* vertical align text */
display: table-cell;
vertical-align: middle;
}
.quote {
font-size: .1em;
line-height: 1.1em;
}
.info {
margin-top: .9em;
font-size: .05em;
}
</style>
<div>
<div class="quote">&#8220;{{ quote }}&#8222;</div>
<div class="info">&boxh; {{ info }}</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment