Created
December 21, 2016 16:36
-
-
Save thexodus/39f045da1bd1cca54f5801b1e3f24867 to your computer and use it in GitHub Desktop.
lensphere tumblr theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>{Title}</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"> | |
@import url('https://fonts.googleapis.com/css?family=Bad+Script|Unica+One|Economica|Great+Vibes'); | |
body{ | |
font-family:'Unica One', cursive; | |
padding:0px; | |
margin:0px; | |
} | |
header .title{ | |
text-transform: uppercase; | |
text-align: center; | |
color: #555; | |
} | |
.container #description{ | |
font-family: 'Economica', sans-serif; | |
text-align: center; | |
color: rgba(0,0,0,.38); | |
margin-bottom:30px; | |
} | |
.posts{ | |
column-count: 4; | |
column-gap:4px; | |
} | |
.post{ | |
-webkit-column-break-inside: avoid; /* Chrome, Safari, Opera */ | |
page-break-inside: avoid; /* Firefox */ | |
break-inside: avoid; /* IE 10+ */ | |
} | |
.post .caption{ | |
border: 1px solid #ddd; | |
padding: 5px; | |
margin-top: -6px; | |
line-height: 30px; | |
} | |
.post .caption p:first-child{ | |
margin :0px; | |
padding:0px; | |
font-family: 'Great Vibes', cursive; | |
} | |
.post .caption p:last-child{ | |
font-family: 'Economica', sans-serif; | |
} | |
.posts .photo img{ | |
max-width: 100%; | |
max-height: 100%; | |
} | |
footer{ | |
position: fixed; | |
bottom: 0; | |
height: 20px; | |
width: 100%; | |
background: rgba(0,0,0,0.6); | |
padding: 5px 10px; | |
} | |
footer .footer-nav{ | |
line-height: 21px; | |
font-family: 'Economica', sans-serif; | |
font-size: 14px; | |
text-align:center; | |
} | |
footer a{ | |
color:#fff; | |
cursor:pointer; | |
} | |
footer a.next{ | |
margin-left:10px; | |
margin-right:10px; | |
} | |
footer a.previous{ | |
margin-right:10px; | |
} | |
footer a.archive{ | |
color:#aaa; | |
} | |
</style> | |
<script> | |
document.addEventListener("DOMContentLoaded", function(event) { | |
console.log("DOM fully loaded and parsed"); | |
var photos = document.getElementsByClassName("photo"); | |
console.log(photos); | |
for(i = 0; i < photos.length; i++){ | |
photos[i].addEventListener('mouseover', function(){ | |
this.querySelector(".caption") | |
}); | |
photos[i].addEventListener('mouseout', function(){ | |
console.log("i am mouseout"); | |
}); | |
} | |
}); | |
</script> | |
</head> | |
<body> | |
<header> | |
<h1 class="title">{Title}</h1> | |
</header> | |
<div class="container"> | |
{block:Description} | |
<p id="description">{Description}</p> | |
{/block:Description} | |
<div class="posts"> | |
{block:Posts} | |
{block:Text} | |
<li class="post text"> | |
{block:Title} | |
<h3><a href="{Permalink}">{Title}</a></h3> | |
{/block:Title}{Body} | |
</li> | |
{/block:Text} | |
{block:Photo} | |
<div class="post photo"> | |
{LinkOpenTag} | |
<img src="{PhotoURL-400}" alt="{PhotoAlt}" /> | |
{linkCloseTag} | |
{block:Caption} | |
<div class="caption" style="display:none">{Caption}</div> | |
{/block:Caption} | |
</div> | |
{/block:Photo} | |
{block:Panorama} | |
<li class="post panorama"> | |
{LinkOpenTag} | |
<img src="{PhotoURL-Panorama}" alt="{PhotoAlt}"/> | |
{LinkCloseTag}{block:Caption} | |
<div class="caption">{Caption}</div> | |
{/block:Caption} | |
</li> | |
{/block:Panorama} | |
{block:Photoset} | |
<li class="post photoset"> | |
{Photoset-500}{block:Caption} | |
<div class="caption">{Caption}</div> | |
{/block:Caption} | |
</li> | |
{/block:Photoset} | |
{block:Quote} | |
<li class="post quote"> | |
"{Quote}" | |
{block:Source} | |
<div class="source">{Source}</div> | |
{/block:Source} | |
</li> | |
{/block:Quote} | |
{block:Link} | |
<li class="post link"> | |
<a href="{URL}" class="link" {Target}>{Name}</a> | |
{block:Description} | |
<div class="description">{Description}</div> | |
{/block:Description} | |
</li> | |
{/block:Link} | |
{block:Chat} | |
<li class="post chat"> | |
{block:Title} | |
<h3><a href="{Permalink}">{Title}</a></h3> | |
{/block:Title} | |
<ul class="chat"> | |
{block:Lines} | |
<li class="{Alt} user_{UserNumber}"> | |
{block:Label} | |
<span class="label">{Label}</span> | |
{/block:Label}{Line} | |
</li> | |
{/block:Lines} | |
</ul> | |
</li> | |
{/block:Chat} | |
{block:Video} | |
<div class="post video"> | |
{Video-400} | |
{block:Caption} | |
<div class="caption" style="display:none">{Caption}</div> | |
{/block:Caption} | |
</div> | |
{/block:Video} | |
{block:Audio} | |
<li class="post audio"> | |
{AudioEmbed}{block:Caption} | |
<div class="caption">{Caption}</div> | |
{/block:Caption} | |
</li> | |
{/block:Audio} | |
{/block:Posts} | |
</div> | |
</div> | |
<footer> | |
<div class="footer-nav"> | |
{block:PreviousPage} | |
<a href="{PreviousPage}" class="previous">« Previous</a> | |
{/block:PreviousPage} | |
{block:NextPage} | |
<a href="{NextPage}" class="next">Next »</a> | |
{/block:NextPage} | |
<a href="/archive" class="archive">Archive</a> | |
</div> | |
</footer> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment