Skip to content

Instantly share code, notes, and snippets.

@boxmein
Created March 31, 2013 19:53
Show Gist options
  • Save boxmein/5281792 to your computer and use it in GitHub Desktop.
Save boxmein/5281792 to your computer and use it in GitHub Desktop.
An adjusted Tumblr theme made for Johan, the things changed should be (1) the links won't hide, and (2) the blog has 4 columns
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!--
Genevo Theme by lsaac.tumblr.com
1: Modified for 4 columns (1080px width) by punanekleeps.tumblr
(Line 141, #content.posts CSS)
2: Disabled the link box hiding thing. As much of an effect it gives, links are fun.
(Lines 17..23, $(document).ready Javascript)
Feel free to customise the theme as much as you like but please rememeber to leave at least one credit link, thank you :-)
-->
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js" type="text/javascript"><!--mce:0--></script>
<script src="toggle.js" type="text/javascript"><!--mce:1--></script>
<script type="text/javascript">
/*$(document).ready(function(){
$(".description").hide();
$(".about").click(function(){
$('.description').slideToggle("fast");
return true;
});
});*/
</script>
<link href='http://fonts.googleapis.com/css?family=Raleway:100' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Six+Caps' rel='stylesheet' type='text/css'>
<meta name="color:Background" content="#fff" />
<meta name="color:Text" content="#333" />
<meta name="color:Links" content="#555555"/>
<meta name="color:Hover" content="#555555"/>
<meta name="color:Scrollbar" content="#666666"/>
<meta name="color:Answer" content="#dad8d8"/>
<meta name="if:Background image" content="0" />
<meta name="image:Background" content=""/>
<meta name="image:Header" content=""/>
<meta name="text:first custom link title" content=""/>
<meta name="text:first custom link url" content=""/>
<meta name="text:second custom link title" content=""/>
<meta name="text:second custom link url" content=""/>
<meta name="text:third custom link title" content=""/>
<meta name="text:third custom link url" content=""/>
<meta name="text:fourth custom link title" content=""/>
<meta name="text:fourth custom link url" content=""/>
<meta name="text:fifth custom link title" content=""/>
<meta name="text:fifth custom link url" content=""/>
<meta name="text:sixth custom link title" content=""/>
<meta name="text:sixth custom link url" content=""/>
<meta name="if:first custom link" content="0"/>
<meta name="if:second custom link" content="0"/>
<meta name="if:third custom link" content="0"/>
<meta name="if:fourth custom link" content="0"/>
<meta name="if:fifth custom link" content="0"/>
<meta name="if:sixth custom link" content="0"/>
<meta name="if:Home link" content="1"/>
<meta name="if:Message link" content="1"/>
<meta name="if:Submit link" content="0"/>
<meta name="if:Archive link" content="1"/>
<meta name="if:Faded header" content="1" />
<meta name="if:Show header image" content="0"/>
<meta name="if:Show Normal Title" content="1"/>
<meta name="if:Cross cursor" content="1"/>
<meta name="if:Image Shadows" content="1"/>
<meta name="font:Body" content="Georgia"/>
<title>{Title}</title>
<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" href="{RSS}">
<link rel="shortcut icon" href="{Favicon}">
<title>Untitled Document</title>
<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" href="{RSS}">
{block:Description}
<meta name="description" content="{MetaDescription}" />
{/block:Description}
<style type="text/css">
{CustomCSS}
p{
margin:0px;
padding:0px;
}
#tumblr_controls{
position:absolute;
margin-top:0px;
margin-right:0px;
}
#tumblr_controls{
-webkit-transition: opacity 0.2s linear;
opacity: 0.7;
}
#tumblr_controls:hover{
-webkit-transition: opacity 0.2s linear;
opacity: 1;
}
a{
text-decoration: none;
color:{color:links};
-moz-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
-webkit-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
}
a:hover{
color:{color:hover};
-moz-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
-webkit-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
}
body{
color:{color:Text};
background-color:{color:Background};
font-size:12px;
text-align: center;
font-family: {font:Body};
line-height:15px;
{block:ifcrosscursor}
cursor: crosshair;
{/block:ifcrosscursor}
}
#content{
margin: auto auto auto auto ;
width:100%;
top:0px;
position:relative;
}
/* Edited: width = 1080px, for 4 columns instead of 5*/ ;
#content .posts{
width:1080px;
margin:auto;
{block:PermalinkPage}
margin-bottom:35px;
width:600px;
{/block:PermalinkPage}
}
#content .entry{
{block:IndexPage}
width:250px;
margin:3px;
padding:0px;
float:left;
{/block:IndexPage}
{block:PermalinkPage}
width:600px; font-size:9px; margin-left: 120px;
{/block:PermalinkPage}
}
#content .entry img{
{block:IndexPage}
max-width:250px;
{/block:IndexPage}
{block:ifcrosscursor}
cursor: crosshair;
{/block:ifcrosscursor}
}
.entry:hover .tc {
opacity: .5;
filter: alpha(opacity = 50);
margin-left: 0;
}
.td {
position: absolute;
text-transform: uppercase;
text-align: center;
font-size: 8px;
height: 10px;
line-height: 10px;
bottom: 2px;
width: 100%;
height: 100%;
background-color: rgba(300, 300, 300, 0.4);
opacity: 0;
filter: alpha(opacity = 0);
-webkit-transition: all 0.7s ease;
-moz-transition: all 0.7s ease;
transition: all 0.7s ease;
-o-transition: all 0.7s ease;
}
.entry:hover .td {
opacity: 1;
filter: alpha(opacity = 100);
}
.entry a:hover .td{
background: rgba(0, 0, 0, 1.0)!important;
}
.e {
position: absolute;
top: 65%;
width: 100%;
height: 120px;
margin: -50px 0 0 0px;
color: #ffffff;
}
.e a {
font-size: 60px;
letter-spacing:1px;
font-family:Six Caps;
color: #000;
}
.top{
width:550px;
text-align:center;
margin: 10px auto ;
z-index:5000;
margin-bottom:10px;
padding: 8px;
background:transparent;
font-family: {font:Body};
}
{block:iffadedheader}
.top{
-webkit-transition: opacity 0.5s linear;
opacity: 0.60;
}
.top:hover{
-webkit-transition: opacity 0.3s linear;
opacity: 1;
}
{/block:iffadedheader}
.h1{
font-family: {font:Body};
display:block;
font-size:27px;
letter-spacing: 7px;
line-height:20px;
text-align: center;
margin-bottom: 10px;
}
.h2{
font-size:27px;
letter-spacing: 5px;
line-height:20px;
margin-bottom:5px;
font-family: {font:Body};
}
.h3{
font-size:36px;
line-height:20px;
text-align:center;
font-family: 'Raleway', cursive;
}
.h4{
font-size:9px;
line-height:20px;
text-align:center;
text-transform: uppercase;
letter-spacing:1px;
font-family: {font:Body};
}
.h5{
font-size:9px;
line-height:11px;
text-align:center;
text-transform: lowercase;
letter-spacing:1px;
font-family: {font:Body};
}
.nav{
text-align:center;
margin-top:0px;
margin-bottom:0px;
font-family: {font:Body};
}
.permalink{
display:block;
text-align:right;
padding:0px;
font-family: 'Raleway', cursive;
border-top-style:dotted;
border-width:1px;
}
.permalink{
-webkit-transition: opacity 0.3s linear;
opacity: 0.3;
}
.permalink:hover{
-webkit-transition: opacity 0.3s linear;
opacity: 1;
}
.quote{
font-size:17px;
line-height:20px;
text-transform:none;
margin-bottom:5px;
font-family: {font:Body};
}
.audio{
{block:IndexPage}
width:300px;
{/block:IndexPage}
{block:PermalinkPage}
width:488px;
{/block:PermalinkPage}
background-color:#fff;
padding:5px;
margin-bottom:0px;
border-left:1px solid;
border-right:1px solid;
border-color:{color:Other};
}
.audiocap, .videocap{
background-color:{color:Other};
display:block;
padding:10px;
}
.albumart, .albumart img{
{block:IndexPage}
width:300px;
{/block:IndexPage}
{block:PermalinkPage}
width:500px;
{/block:PermalinkPage}
}
div.video embed,
div.post div.video object {
{block:IndexPage}
width:250px !important;
height:150px !important;
{/block:IndexPage}
{block:PermalinkPage}
width:500px !important;
height:400px !important;
{/block:PermalinkPage}
}
.question{
font-weight:normal;
margin-bottom:5px;
font-size:13px;
line-height:15px;
display:block;
font-family: {font:Body};
}
{block:ifimageshadows}
img{
-webkit-box-shadow: 0px 7px 12px -3px rgba(10, 10, 10, 0.5);
box-shadow: 0px 7px 12px -3px rgba(10, 10, 10, 0.5);
}
{/block:ifimageshadows}
.nav { font-size:10px;
}
#bg img {
z-index:-1;
position:fixed;
top:0;
left:0;
height:100%;
width:100%;
}
a {color:;text-decoration:none;-webkit-transition: all 0.7s ease-out;-moz-transition: all 0.7s ease-out;transition: all 0.7s ease-out;}
.fufu {width:227px;-webkit-transition: all 0.7s ease-out;-moz-transition: all 0.7s ease-out;transition: all 0.7s ease-out;}
.fufu:hover {-webkit-transform: translate(1em,0);-moz-transform: translate(1em,0);-o-transform: translate(1em,0);}
#biter
#bite a {display:block}
#bite .death {margin-top:-10px;filter: alpha(opacity = 0);opacity:0;-webkit-transition: all 0.7s ease-out;-moz-transition: all 0.7s ease-out;transition: all 0.7s ease-out;}
#bite:hover .death {margin-top:0px;-webkit-transition: all 0.7s ease-out;-moz-transition: all 0.7s ease-out;transition: all 0.7s ease-out; filter: alpha(opacity = 100);filter: alpha(opacity = 100);opacity:100;}
.asker{
padding:10px;
font-family: {font:Body};
font-size:12px;
}
.answer{
padding:5px;
font-size:10px;
font-family: {font:Body};
color: {color:text};
border-right-style: solid;
border-left-style: solid;
border-width:1px;
background-color:{color:answer};
}
::-webkit-scrollbar-thumb:vertical {
background-color:{color:Scrollbar};
height:100px;
}
::-webkit-scrollbar-thumb:horizontal {
background-color:{color:Scrollbar};
height:10px;
}
::-webkit-scrollbar {
height:10px;
width:8px;
background-color:{color:background};
}
</style>
{block:IfBackgroundImage}<div id="bg"><img src="{image:Background}"></div>{/block:IfBackgroundImage}
<script type="text/javascript" src="http://static.tumblr.com/imovwvl/dJWl20ley/jqueryformasonry.js"></script>
<script type="text/javascript" src="http://static.tumblr.com/imovwvl/rSGl20lfv/masonry.js">
</script>
<script src="http://static.tumblr.com/df28qmy/SHUlh3i7s/jquery.infinitescroll.js"></script>
<script src="http://static.tumblr.com/thpaaos/lLwkowcqm/jquery.masonry.js"></script>
<script type="text/javascript">
$(window).load(function () {
$('.posts').masonry(),
$('.masonryWrap').infinitescroll(
{
navSelector : "div#navigation",
// selector for the paged navigation (it will be hidden)
nextSelector : "div#navigation a#nextPage",
// selector for the NEXT link (to page 2)
itemSelector : ".entry",
// selector for all items you'll retrieve
bufferPx : 10000,
extraScrollPx: 11000,
loadingImg : "",
loadingText : "<em></em>",
},
// call masonry as a callback.
function() {
$('.posts').masonry({ appendedContent: $(this) });
});
});
</script>
<script type="text/javascript">$(window).load(function(){$("p").remove(":contains('Source:')");});</script></head>
<body>
<div id="bite">
<div class="top">
{block:ifshowheaderimage}
<a href="/"><img src="{image:header}" width=500px></a>
{/block:ifshowheaderimage}
<br><br>
{block:ifshownormaltitle}
<span class="h3"><a href="/">{Title}</a></span><br><br>
{/block:ifshownormaltitle}
<span class="h5">
{Description}<br><br></span>
<div class="death">
<div class="nav">
<span class="h4">
{block:ifhomelink}<a href="/">Home</a> &nbsp;{block:ifhomelink}
{block:ifmessagelink}<a href="/ask">Message</a> &nbsp;{block:ifmessagelink}{block:ifarchivelink} <a href="/archive">Archive</a> &nbsp;{/block:ifarchivelink}
{block:ifsubmitlink}<a href="/submit">Submit</a> &nbsp;
{/block:ifsubmitlink}
{block:iffirstcustomlink}<a href="{text:first custom link url}">{text:first custom link title}</a> &nbsp;{/block:iffirstcustomlink}
{block:ifsecondcustomlink}<a href="{text:second custom link url}">{text:second custom link title}</a> &nbsp;{/block:ifsecondcustomlink} {block:ifthirdcustomlink}<a href="{text:third custom link url}">{text:third custom link title}</a> &nbsp;{/block:ifthirdcustomlink}
{block:iffourthcustomlink}<a href="{text:fourth custom link url}">{text:fourth custom link title}</a> &nbsp;{/block:iffourthcustomlink}
{block:iffifthcustomlink}<a href="{text:fifth custom link url}">{text:fifth custom link title}</a> &nbsp;{/block:iffifthcustomlink}
{block:ifsixthcustomlink}<a href="{text:sixth custom link url}">{text:sixth custom link title}</a> &nbsp;{/block:ifsixthcustomlink}
<a href="http://lsaac.tumblr.com">Theme</a></span>
</div>
</div>
</div>
</div>
<div id="content">
<div class="posts">
{block:Posts}
<div class="entry">
{block:Text}
{block:Title}<span class="h1">{Title}</span>{/block:Title}
{Body}
{block:IndexPage}<div class="permalink"><a href="{Permalink}">{NoteCountWithLabel}</a> / <a href="{ReblogURL}" target="_blank">Reblog</a><div>{/block:IndexPage}</span></div></div>
{/block:Text}
{block:Photo}
{block:IndexPage}
<div class="td"><div class="e"><a href="{Permalink}">{NoteCount}</a></div></div>
{LinkOpenTag}<img src="{PhotoURL-500}" alt="{PhotoAlt}" width="100%"/>{LinkCloseTag}
{/block:IndexPage}
{block:PermalinkPage}
{LinkOpenTag}
<img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" width="600"/></a>
{LinkCloseTag}
{/block:permalinkpage}
{/block:Photo}
{block:Photoset}
{block:IndexPage}{Photoset-250}{/block:IndexPage}
{block:PermalinkPage}{Photoset-500}{/block:PermalinkPage}
{block:Caption}{Caption}{/block:Caption}
{block:IndexPage}<div class="permalink"><a href="{Permalink}">{NoteCountWithLabel}</a> / <a href="{ReblogURL}" target="_blank">Reblog</a><div>{/block:IndexPage}</span></div></div>
{/block:Photoset}
{block:Quote}
<div class="quote"><b><i>"</i></b>{Quote}<b><i>"</i></b> </div>
{block:Source}<small>{Source}</small>{/block:Source}
{block:IndexPage}<div class="permalink"><a href="{Permalink}">{NoteCountWithLabel}</a> / <a href="{ReblogURL}" target="_blank">Reblog</a><div>{/block:IndexPage}</span></div></div>
{/block:Quote}
{block:Link}
<a href="{URL}"{Target}><span class="h2"> ☞{Name}☜</span></a>
{block:Description}<small>{Description}</small>{/block:Description}
{block:IndexPage}<div class="permalink"><a href="{Permalink}">{NoteCountWithLabel}</a> / <a href="{ReblogURL}" target="_blank">Reblog</a><div>{/block:IndexPage}</span></div></div>
{/block:Link}
{block:Video}
<div class="video">
{block:IndexPage}{Video-250}{/block:IndexPage}
{block:PermalinkPage}{Video-500}{/block:PermalinkPage}
</div>
{block:IndexPage}{block:Caption}<div class="videocap"><a href="{Permalink}">{Caption}</a></div>{/block:Caption}{/block:IndexPage}
{block:PermalinkPage}{block:Caption}<div class="videocap">{Caption}</div>{/block:Caption}{/block:PermalinkPage}
{/block:Video}
{block:Chat}
{block:Title}
<div class="ptitle">{Title}</div>
{/block:Title}{block:Lines}{block:Label}<b>{Label}</b> {/block:Label}{Line}<br>{/block:Lines}
{block:IndexPage}<div class="permalink"><a href="{Permalink}">{NoteCountWithLabel}</a> / <a href="{ReblogURL}" target="_blank">Reblog</a><div>{/block:IndexPage}</span></div></div>
{/block:Chat}
{block:Audio}
{block:AlbumArt}<div class="albumart"><img src="{AlbumArtURL}"></a></div>{/block:AlbumArt}
<div class="audio">{AudioPlayerWhite}</div>
{block:IndexPage}{block:Caption}<div class="audiocap"><a href="{Permalink}">{Caption}</a></div>{/block:Caption}{/block:IndexPage}
{block:PermalinkPage}{block:Caption}<div class="audiocap">{Caption}</div>{/block:Caption}{/block:PermalinkPage}
{/block:Audio}
{block:Answer}
<div class="asker">{Asker}said:</a><div class="question"><br>{Question}</div></div><div class="answer"><i>{Answer}</i></div>
{block:IndexPage}<div class="permalink"><a href="{Permalink}">{NoteCountWithLabel}</a><div>{/block:IndexPage}</span></div></div>
{/block:Answer}
{block:PermalinkPage}<div class="notes"><br>
{block:Caption}{Caption}{/block:Caption}
Posted on {Month} {DayofMonth}{DayofMonthSuffix} at {12Hour}:{Minutes} {CapitalAMPM}
<br>Has a total of: {NoteCount} Notes
{block:PostNotes}<br><br><div style="background-color:{color:Answer}; text-align:left; max-height: 200px; width:600px; overflow-y: auto; overflow-x: hidden;">{PostNotes}</div>{/block:PostNotes}</div>
{/block:PermalinkPage}
</div>
{/block:Posts}
</div>
</div>
{block:IndexPage}
<div class="column navigation" id="navigation">
{block:Pagination}
{block:PreviousPage}<a href="{PreviousPage}" class="navigate">{/block:PreviousPage}{block:PreviousPage}</a>{/block:PreviousPage}
{block:NextPage}<a href="{NextPage}" class="navigate" id="nextPage">{/block:NextPage}{block:NextPage}</a>{/block:NextPage}{/block:Pagination}
</div>
{/block:IndexPage}
<div style="position:fixed; font-family: 'Raleway', cursive; bottom:0px; right:0px; font-size:12px;padding:1px;"><a href="http://lsaac.tumblr.com">Theme</a></div>
<div style="right: 3px; top: 26px; opacity:0.7; position:absolute;"><a href="http://lsaac.tumblr.com"><img src="http://static.tumblr.com/ykziu7r/dGgm6nq81/install_theme.png"/></a></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment