Skip to content

Instantly share code, notes, and snippets.

View tdominey's full-sized avatar

Todd Dominey tdominey

View GitHub Profile
@tdominey
tdominey / gist:46b84f977fe90218d10c
Created September 26, 2014 01:57
Targeting koken:navigation with a class
<nav id="main">
<koken:navigation />
</nav>
/* target it in css */
<style>
#main ul li a {
/* targets the link inside the nav */
}
</style>
@tdominey
tdominey / gist:8578937
Created January 23, 2014 14:08
Make portrait images in Madison 1.x smaller
@media only screen and (min-width: 1280px) {
#main .media img
{
max-height: 600px;
}
}
@tdominey
tdominey / gist:8520735
Created January 20, 2014 14:25
Hide copyright in Madison theme
#col-xtra-content {
display:none;
}
@tdominey
tdominey / gist:8440340
Created January 15, 2014 17:17
Modify essay/page width in Regale
div#text {
width: 800px;
}
@tdominey
tdominey / gist:8282749
Created January 6, 2014 13:16
Hide lightbox link in Axis theme
ul#nav-content li:nth-child(2) { display:none; }
ul#nav-content li { padding:0 10px }
@tdominey
tdominey / gist:8023007
Created December 18, 2013 14:13
Only show titles if image is unlisted
<koken:if true="{{ content.public }}">
<h1>
{{ content.title }}
</h1>
</koken:if>
@tdominey
tdominey / gist:7986747
Created December 16, 2013 13:13
Display link to parent set from child set in set.lens
<koken:parent>
<koken:link>
{{ album.title }}
</koken:link>
</koken:parent>
@tdominey
tdominey / gist:7484023
Created November 15, 2013 13:04
Sticky footer in Regale theme on mobile
@media only screen and (max-width: 767px) {
footer.main {
position:fixed;
}
}
@tdominey
tdominey / gist:6900672
Created October 9, 2013 12:44
Load a flat list of all Library albums without parent sets
<koken:load source="albums" filter:flat="true>
<koken:loop>
<koken:if data="{{ album.album_type }}" equals="standard">
{{ album.title }}
</koken:if>
</koken:loop>
</koken:load>
@tdominey
tdominey / gist:6705665
Created September 25, 2013 20:37
Display list of months instead of select in Elementary's timeline.lens
<koken:dates filter:scope="month">
<koken:loop>
<koken:link><koken:time /></koken:link><br>
</koken:loop>
</koken:dates>