Skip to content

Instantly share code, notes, and snippets.

@Sitebase
Created March 19, 2015 15:18
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/30503fa381987b604527 to your computer and use it in GitHub Desktop.
Save Sitebase/30503fa381987b604527 to your computer and use it in GitHub Desktop.
Twitter tegel template
<link href='http://fonts.googleapis.com/css?family=Coming+Soon' rel='stylesheet' type='text/css'>
<style>
* {
box-sizing: border-box;
}
body{
/* defaults, use for testing the template without PhantomJS */
width: 400px;
height: 400px;
font-size: 400px;
width: {{ width }}px;
height: {{ height }}px;
display: inline-block;
background: #{{ color }};
color: #FFF;
font-size: {{ width }}px;
font-family: 'Coming Soon', cursive;
/* vertical align text */
display: table-cell;
vertical-align: middle;
}
.wrapper {
/* defaults, use for testing the template without PhantomJS */
width: 400px;
height: 400px;
background-size: 400px 400px;
width: {{ width }}px;
height: {{ height }}px;
background: url(http://demo.bubobox.com/vision-templates/twitter-tegel.jpg);
background-size: 100%;
padding: 0 16% 0 16%;
display: table-cell;
vertical-align: middle;
}
.quote {
color: #000;
font-size: .06em;
line-height: 1.1em;
text-align: center;
}
</style>
<div class="wrapper">
<div class="quote">{{ quote }}</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment