Skip to content

Instantly share code, notes, and snippets.

@depoulo
Created February 26, 2014 09:27
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 depoulo/9226443 to your computer and use it in GitHub Desktop.
Save depoulo/9226443 to your computer and use it in GitHub Desktop.
Attempt for Essen & Trinken small stage teasers
/**
* Attempt for Essen & Trinken small stage teasers
*/
* { padding: 0; margin: 0; }
body { padding: 2%; max-width: 25em; font-family: Verdana; } a { color: black; text-decoration: none; }
.left { float: left; }
.right { float: right; }
.left, .right {
width: 48%;
}
a.left, a.right {
display: block;
}
.kicker, .headline {
overflow: hidden;
text-overflow: ellipsis;
}
.kicker {
font-size: 85%;
text-transform: uppercase;
min-height: 1rem;
max-height: 1rem;
}
.imgs {
clear: both;
overflow: hidden; /* clearfix */
padding-top: 1em;
}
.imgs img {
width: 100%;
height: auto;
}
<div class="mod-teaser teaser-stage-small-both article-type-video">
<a class="left" href="http://dev.m.essen.und-trinken.de/article_standard">
<h2 class="kicker">Lorem & ipsum & dolor sit amet</h2>
<h3 class="headline">Investigationes demonstraverunt lecto</h3>
</a>
<a class="right" href="http://dev.m.essen.und-trinken.de/article_standard">
<h2 class="kicker"></h2>
<h3 class="headline">A Typi non Habent</h3>
</a>
<div class="imgs">
<figure class="left image-place-holder" style="/*padding-top: 63%*/">
<img src="http://dev.m.essen-und-trinken.de/mocked-feed/images/238x150.jpg" width="238" height="150">
</figure>
<figure class="right image-place-holder" style="/*padding-top: 63%*/">
<img src="http://dev.m.essen-und-trinken.de/mocked-feed/images/238x150.jpg" width="238" height="150">
</figure>
</div>
</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment