Skip to content

Instantly share code, notes, and snippets.

View tdominey's full-sized avatar

Todd Dominey tdominey

View GitHub Profile
@tdominey
tdominey / gist:8732938
Last active August 29, 2015 13:55
Use essay tags or categories to control layout
/* Tags - essay.lens */
<koken:load>
<div id="layout" class="essay-<koken:tags><koken:loop separator="-">{{ tag.title }}</koken:loop></koken:tags>">
</div>
</koken:load>
/* Categories - essay.lens */
<koken:load>
@tdominey
tdominey / gist:8862239
Created February 7, 2014 13:00
Hide content titles in Chastain
/* Hides them on the single photo page */
body.k-lens-content h4 {
display:none;
}
/* Hides them on the album page */
body.k-lens-album h4 {
display:none;
}
@tdominey
tdominey / gist:8864208
Created February 7, 2014 14:57
Center two collections in Axis albums/sets/set layout
div#sets-layout.col_3 .item:nth-of-type(n) {
width:50%;
margin:0;
padding:0 50px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
@tdominey
tdominey / gist:8910129
Created February 10, 2014 03:57
Vertical align fix for new facebook button
.fb_iframe_widget span {
vertical-align:baseline !important;
}
@tdominey
tdominey / gist:9103546
Created February 19, 2014 23:06
Remove lightbox link on Axis
body.k-lens-content ul#nav-content li:nth-child(2) {
display:none !important;
}
@tdominey
tdominey / gist:9156417
Created February 22, 2014 15:17
Select displaying essay archive links
<koken:dates limit_to="essays">
<koken:select label="Select month" />
</koken:dates>
@tdominey
tdominey / gist:9276670
Last active August 29, 2015 13:56
Show featured content on content.lens if content is featured
<koken:if true="content.featured">
<koken:load source="featured_content">
<ul>
<koken:loop>
<li><koken:img preset="small" /></li>
@tdominey
tdominey / gist:9410914
Created March 7, 2014 12:52
Remove Twitter button, center Facebook button in Axis
#social-bttns .cell.right {
display:none !important;
}
div#social-bttns div.cell.left > div {
float:none !important;
}
div#social-bttns div.cell {
width:100%;
@tdominey
tdominey / gist:9473500
Created March 10, 2014 20:22
iOS 7.1 minimal-ui viewport example. Gets rid of the huge browser header/footer in Safari on iPhones.
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimal-ui" />
@tdominey
tdominey / gist:9577643
Created March 16, 2014 02:23
Force portraits in Axis to height of landscapes
body.k-lens-content img.img-content {
max-height:505px !important;
width:auto;
}