Skip to content

Instantly share code, notes, and snippets.

View tdominey's full-sized avatar

Todd Dominey tdominey

View GitHub Profile
@tdominey
tdominey / gist:5134382
Created March 11, 2013 13:52
Displaying the title and content for each essay the current album (in album.lens) is assigned to.
<!-- Display essays/pages written about this album -->
<koken:topics>
<p>
<strong>Related content:</strong>
<koken:loop separator=", ">
<koken:link>
{{ essay.title }}
{{ essay.content }}
</koken:link>
</koken:loop>
@tdominey
tdominey / gist:5172789
Created March 15, 2013 20:13
Publishing background image using <koken:background>
<style>
div.bg {
width:500px;
height:300px;
}
</style>
<koken:load source="content" filter:id="342">
<koken:background class="bg"></koken:background>
</koken:load>
@tdominey
tdominey / gist:5183325
Created March 17, 2013 19:50
Display topic title and thumbnail in essay
<koken:topics>
<h5>Discussed in this essay</h5>
<koken:loop>
<koken:link>
<span class="thumb"><koken:img width="120" height="120" /></span>
</koken:link>
<h6>
<koken:link>
{{ album.title }}
</koken:link>
@tdominey
tdominey / gist:5187369
Created March 18, 2013 14:05
Display Madison navigation links horizontally
@media only screen and (max-width: 767px) {
nav * {
display:inline-block;
margin:0 6px 0 0;
}
}
@tdominey
tdominey / gist:5218319
Created March 22, 2013 01:40
Semi-transparent album hovers in Regale
a.album-hover:hover span.overlay {
-ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=80)";
filter: alpha(opacity=80);
opacity: 0.8;
}
@tdominey
tdominey / gist:5221439
Created March 22, 2013 13:57
Make Madison images equal widths (always). Enter this in Custom CSS.
#main .media img {
max-height:none;
}
@tdominey
tdominey / gist:5223351
Created March 22, 2013 17:53
Hide content titles/captions in Regale
#content-caption h2 {
display:none;
}
/* or to hide the whole thing, uncomment: */
/*
#content-caption {
display:none;
}
*/
@tdominey
tdominey / gist:5228264
Created March 23, 2013 16:13
Changing an image's loading spinner to something else.
img.k-lazy-loading {
background-image:url(http://yourdomain.com/spinner.gif);
}
@tdominey
tdominey / gist:5234613
Created March 25, 2013 02:51
Detect for album with a particular id in set.lens
<koken:if data="album.id" equals="5">
<!-- album found -->
<koken:else>
<!-- album not found -->
</koken:if>
@tdominey
tdominey / gist:5285143
Last active December 15, 2015 15:49
Loading featured album in koken:background
<style>
.thumb {
width:400px;
height:300px;
}
</style>
<koken:load source="featured_albums">
<koken:loop>
<koken:background class="thumb">