Created
September 6, 2013 17:18
-
-
Save mithicher/6466863 to your computer and use it in GitHub Desktop.
A simple responsive tumblr theme based on lemonade grid by Joe Richardson.
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
<!doctype html> | |
<html> | |
<head> | |
<!-- | |
Theme: MTheme | |
Created by : Mithicher B. | |
Twitter: @mithicher | |
Version: 1.0 | |
--> | |
<meta name="color:Background" content="#f8f8f8"> | |
<meta name="color:Body Title" content="#34495e"> | |
<meta name="color:Body Title Hover" content="#3498db"> | |
<meta name="color:Body Text" content="#434343"> | |
<meta name="font:Title" content='Verdana'> | |
<meta name="font:Body" content='Helvetica, Arial, serif'> | |
<meta name="if:Infinite scroll" content="1"/> | |
<meta name="if:Show Search Bar" content="1"> | |
<meta name="if:Show People I Follow" content=""> | |
<meta name="text:Google Analytics ID" content=''/> | |
<meta name="text:Disqus Shortname" content=""> | |
<meta name="text:Twitter Username" content=""> | |
<meta name="text:Facebook Username" content=""> | |
{block:Description} | |
<meta name="description" content="{MetaDescription}" /> | |
{/block:Description} | |
<meta charset="utf-8"> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>{block:TagPage}{Tag} posts - {/block:TagPage} {block:SearchPage}{lang:Search results for SearchQuery} - {/block:SearchPage}{block:PostSummary}{PostSummary} - {/block:PostSummary}{Title}</title> | |
<link rel="shortcut icon" href="{Favicon}"> | |
<link rel="alternate" type="application/rss+xml" href="{RSS}"> | |
<style> | |
/******************************* | |
RESET | |
********************************/ | |
* { | |
-webkit-transition: all 0.3s ease-in-out; | |
-moz-transition: all 0.3s ease-in-out; | |
transition: all 0.3s ease-in-out; | |
} | |
html, body, div, span, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
abbr, address, cite, code, | |
del, dfn, em, img, ins, kbd, q, samp, | |
small, strong, sub, sup, var, | |
b, i, dl, dt, dd, ol, ul, li, | |
fieldset, form, label, legend, | |
table, caption, tbody, tfoot, thead, tr, th, td, | |
article, aside, canvas, details, figcaption, figure, | |
footer, header, hgroup, menu, nav, section, summary, | |
time, mark, audio, video { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
outline: 0; | |
font-size: 100%; | |
vertical-align: baseline; | |
} | |
body { | |
line-height: 1.5; | |
background: {color:Background}; | |
font-family: {font:Body}; | |
color: {color:Body Text}; | |
} | |
article,aside,details,figcaption,figure, | |
footer,header,hgroup,menu,nav,section { | |
display: block; | |
} | |
blockquote, q { | |
quotes: none; | |
font-size: 1.3125em; /* 21 / 16 */ | |
line-height: 1.142857142857143em; /* 24 / 21 */ | |
margin-bottom: 1.142857142857143em; /* 24 / 21 */ | |
color: hsla(0, 0%, 50%, 1); | |
font-style: italic; | |
border-left: 3px solid #ddd; | |
padding-left: 4%; | |
} | |
a { | |
margin: 0; | |
padding: 0; | |
font-size: 100%; | |
vertical-align: baseline; | |
background: transparent; | |
text-decoration: none; | |
color: #3498db; | |
border-bottom: 1px solid #ddd; | |
} | |
a:hover { border-bottom-color: #3498db; } | |
h1>a, h2>a, footer p>a, .photo>a, .blogroll li>a { | |
border: none; | |
} | |
abbr[title], dfn[title] { | |
border-bottom: 1px dotted; | |
cursor: help; | |
} | |
table { | |
border-collapse: collapse; | |
border-spacing: 0; | |
} | |
hr { | |
display: block; | |
height: 1px; | |
border: 0; | |
border-top: 1px solid #ddd; | |
margin-bottom: 1em; | |
padding: 0; | |
} | |
input, select { | |
vertical-align: middle; | |
} | |
ul { padding-left: 18px; } | |
ul, li { margin: 0;} | |
li { | |
color: {color:Body Text}; | |
font-size: 1.125em; | |
} | |
iframe, img, embed, object, video { | |
max-width: 100%; | |
text-align: center; | |
} | |
img { | |
height: auto; | |
width: auto; | |
} | |
.frame { | |
width: 80%; | |
margin: 0 auto; | |
} | |
/******************************* | |
Typography | |
********************************/ | |
h1,h2,h3,h4,h5, h2>a { | |
font-family: {font:Title}; | |
font-weight: bold; | |
color: {color:Body Title}; | |
} | |
h1 { | |
font-size: 3em; /* 48 / 16 */ | |
line-height: 1em; /* 48 / 48 */ | |
margin-bottom: .5em; /* 24 / 48 */ | |
} | |
h2 { | |
font-size: 2.25em; /* 36 / 16 */ | |
line-height: 1.333333333333333em; /* 48 / 36 */ | |
margin-bottom: .6666666666666667em; /* 24 / 36 */ | |
} | |
h3 { | |
font-size: 1.5em; /* 24 / 16 */ | |
line-height: 1em; /* 24 / 24 */ | |
margin-bottom: 1em; /* 24 / 24 */ | |
} | |
h4 { | |
font-size: 1.3125em; /* 21 / 16 */ | |
line-height: 1.142857142857143em; /* 24 / 21 */ | |
margin-bottom: 1.142857142857143em; /* 24 / 21 */ | |
} | |
h5 { | |
font-size: 1.125em; /* 18 / 16 */ | |
line-height: 1.333333333333333em; /* 24 / 18 */ | |
margin-bottom: 1.333333333333333em; /* 24 / 18 */ | |
} | |
h6 { | |
font-size: 1em; /* 16 / 16 */ | |
line-height: 1.5em; /* 24 / 16 */ | |
margin-bottom: 1.5em; /* 24 / 16 */ | |
} | |
p { | |
font-size: 1.125em; /* 18 / 16 */ | |
line-height: 1.333333333333333em; /* 24 / 18 */ | |
margin-bottom: 1.333333333333333em; /* 24 / 18 */ | |
color: {color:Body Text}; | |
font-family: {font:Body}; | |
} | |
.small, small { | |
margin-bottom: 0; | |
font-size: 14px; | |
} | |
/******************************* | |
Header | |
********************************/ | |
header { | |
background-color: #34495e; | |
} | |
header h1 { | |
margin-bottom: 0; | |
height: 60px; | |
line-height: 60px; | |
font-size: 2em; | |
font-weight: 300; | |
} | |
header h1 a:hover { | |
color: #2980b9; | |
} | |
/************************************************* | |
social | |
*************************************************/ | |
.social { margin-top: 4px; text-align: center; padding-bottom: 0; vertical-align: middle; } | |
.social li { margin-right: 2%; | |
display: inline-block; list-style-type: none; } | |
.social li a { border: none; opacity: 0.70; vertical-align: middle; } | |
.social li a:hover { opacity: 1; } | |
/******************************* | |
Desc | |
********************************/ | |
.desc { | |
background-color: #2980b9; | |
box-shadow: 0 2px 2px #aaa; | |
margin-bottom: 1em; | |
} | |
.desc p { | |
margin-bottom: 0; | |
color: #ecf0f1; | |
text-shadow: 0 1px 1px #333; | |
padding: 1em 0 1em 0; | |
font-size: 2em; | |
} | |
.desc .profile-image { | |
vertical-align: middle; | |
text-align: center; | |
margin: 0; | |
} | |
.desc .profile-image > img { | |
border-radius: 50%; | |
} | |
/******************************* | |
Main | |
********************************/ | |
.metadata { display: block; color: #ecf0f1; } | |
article { | |
margin: 1em 0 2em 0; | |
background-color: rgba(255,255,255,0.9); | |
border: 1px solid #ddd; | |
} | |
article ul { margin-bottom: 1em; } | |
article h2 a { color: {color:Body Title}; } | |
article h2 a:hover { color: {color:Body Title Hover}; } | |
.padding { padding: 2% 4% 2% 4%; } | |
.sidebar .padding { padding: 8%; } | |
.quote blockquote { font-size: 2em; margin-top: 1%; | |
text-shadow: 0 1px 2px #eee; } | |
.chat ul { | |
list-style: none; | |
list-style-image: none; | |
margin: 0; | |
padding-bottom: 1em; | |
} | |
.chat p { margin-bottom: 0; } | |
.chat li { padding: 1%; border-bottom: 1px solid #ddd; } | |
.chat li:nth-child(2n) { color: #3498db; } | |
.chat li:nth-child(2n+1) { color: #e67e22; } | |
#tags a { | |
margin-top: 0; | |
border: none; | |
display: inline-block; | |
margin-right: 1%; | |
background-color: #2980b9; | |
color: #fff; | |
padding: 0 4px 0 4px; | |
} | |
#notes { | |
clear: both; | |
padding: 0; | |
} | |
.blogroll { padding-left: 0; } | |
.blogroll li { | |
list-style-type: none; | |
display: inline-block; | |
margin-right: 1%; | |
} | |
/************************************************* | |
Search form | |
*************************************************/ | |
.search { | |
padding-bottom: 1em; | |
} | |
.search input[type="text"] { | |
display: inline-block; | |
padding: 1px 2px; | |
height: 40px; | |
border: 1px solid #ddd; | |
width: 100%; | |
vertical-align: middle; | |
margin-bottom: 8px; | |
} | |
.search input:focus { | |
box-shadow: 0 0 0 4px #ddd; | |
} | |
/******************************* | |
Main | |
********************************/ | |
footer { | |
background-color: #2980b9; | |
} | |
footer p { | |
color: #bdc3c7; | |
vertical-align: middle; | |
margin-top: 1em | |
} | |
/************************************************* | |
Navigation menu | |
*************************************************/ | |
nav { | |
text-align: center; | |
} | |
.menu, .menu li { | |
margin: 0; padding: 0; | |
} | |
.menu li { | |
list-style-type: none; | |
display: block; | |
border-bottom: 1px solid #ddd; | |
} | |
.menu li a { | |
display: block; | |
width: 100%; | |
text-decoration: none; | |
padding: 0.6em 0.6em; | |
font-family: Verdana, sans-serif; | |
font-weight: 300; | |
color: #ccc; | |
border: none; | |
background-color: #ecf0f1; | |
} | |
.menu li a.active, | |
.menu li a:hover, | |
.menu li a:focus { | |
background-color: #3498db; | |
color: #fff; | |
} | |
/************************************************* | |
Pagination | |
*************************************************/ | |
#pagination { margin: 1em 0 1em 0; } | |
#pagination a { | |
font-size: 20px; | |
text-transform: uppercase; | |
} | |
/************************************************* | |
buttons | |
*************************************************/ | |
.btn { | |
padding: 6px 30px; | |
display: inline-block; | |
margin: 10px 0 10px 0; | |
color: #efefef; | |
text-decoration: none; | |
border: none; | |
cursor: pointer; | |
font-family: {font:Body}; | |
font-size: 16px; | |
font-weight: 700; | |
letter-spacing: 1px; | |
position: relative; | |
outline: none; | |
-webkit-transition: none; | |
-moz-transition: none; | |
transition: none; | |
} | |
.btn-blue { background: #3498db; box-shadow: 0 6px #2980b9; } | |
.btn-blue:hover { box-shadow: 0 4px #2980b9; top: 2px; color: #fff;} | |
.btn-orange { background: #e67e22; box-shadow: 0 6px #d35400;} | |
.btn-orange:hover { box-shadow: 0 4px #d35400; top: 2px; color: #fff;} | |
/************************************************* | |
Go To Top | |
*************************************************/ | |
.goToTop { | |
position: fixed; | |
right: 2em; | |
bottom: 1em; | |
outline: none; | |
border-radius: 50%; | |
background-color: #3498db; | |
padding: 0.8em 0.8em; | |
color: #eee; | |
border: none; | |
display: none; | |
} | |
.goToTop:hover, .goToTop:focus { | |
color: #fff; | |
box-shadow: 0 0 0 4px #bdc3c7; | |
} | |
/******************************* | |
Grid | |
********************************/ | |
/* | |
* | |
* Lemonade v1.1 | |
* Copyright 2013, Joey | |
* lemonade.im | |
* Free to use under the MIT license. | |
* http://www.opensource.org/licenses/mit-license.php | |
* | |
*/ | |
*, | |
*:after, | |
*:before { | |
margin: 0; | |
padding: 0; | |
/* Removes padding behavior on widths */ | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
/* Targets all elements */ | |
[class*='bit-'] { | |
float: left; | |
padding: 10px; | |
} | |
/* Floats last ".bit-" to the right */ | |
[class*='bit-']:last-of-type { | |
padding-right: 10px; | |
float: left; | |
} | |
/* Clearfix */ | |
.frame:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} | |
/* Main Widths */ | |
.bit-100 {width: 100%;} | |
.bit-66 {width: 66.1%; } | |
.bit-50 {width: 50%;} | |
.bit-33 {width: 33.33%;} | |
.bit-25 {width: 25%;} | |
/* Landscape mobile & down | |
===============================*/ | |
@media (max-width: 480px) { | |
.bit-100, | |
.bit-66, | |
.bit-50, | |
.bit-33, | |
.bit-25{ | |
width: 100%; | |
} | |
article h2 { font-size: 2em; } | |
header h1, footer p, .description { text-align: center; } | |
} | |
/* Mobile to Tablet Portrait | |
===============================*/ | |
@media (min-width: 480px) and (max-width: 800px) { | |
.bit-100, | |
.bit-66, | |
.bit-50, | |
.bit-33, | |
.bit-25{ | |
width: 100%; | |
} | |
header h1, footer p, .description { text-align: center; } | |
.menu li { | |
display: inline-block; | |
} | |
} | |
/* Landscape Tablet to Desktop | |
===============================*/ | |
@media (min-width: 800px) and (max-width: 1100px) { | |
.bit-100, | |
.bit-66, | |
.bit-50, | |
.bit-33, | |
.bit-25{ | |
width: 100%; | |
} | |
header h1, footer p, .description { text-align: center; } | |
} | |
/* Custom CSS */ | |
{CustomCSS} | |
</style> | |
</head> | |
<body> | |
<header> | |
<div class="frame"> | |
<div class="bit-50"> | |
<h1><a href="/">{Title}</a></h1> | |
</div> | |
<div class="bit-50"> | |
<ul class="social"> | |
<li><a title="Follow at twitter" href="http://twitter.com/{text:Twitter Username}"><img src="http://static.tumblr.com/0k22btb/YFMmspk8m/twitter.png" alt="twitter"></a></li> | |
<li><a title="Like at Facebook" href="#"><img src="http://static.tumblr.com/0k22btb/ZxLmspmny/facebook.png" alt="facebook"></a></li> | |
</ul> | |
</div> | |
</div> | |
</header><!-- Header ends --> | |
<div class="desc"> | |
<div class="frame"> | |
<div class="bit-33"> | |
<p class="profile-image"><img src="{PortraitURL-128}" alt="user"></p> | |
</div> | |
<div class="bit-66"> | |
{block:Description} | |
<p class="description">{Description}</p> | |
{/block:Description} | |
</div> | |
</div> | |
</div> | |
<div class="search"> | |
<div class="frame"> | |
<div class="bit-100"> | |
{block:SearchPage} | |
<article class="padding"> | |
<h2 id="searchItemsFound"> | |
Search results for: “{SearchQuery}” | |
<p class="small">{SearchResultCount} items found.</p> | |
</h2> | |
{block:NoSearchResults} | |
<div id="searchResults"> | |
<section class="search"> | |
<form action="/search" method="get"> | |
<h5>Search for something else... </h5> | |
<input type="text" name="q" value="{SearchQuery}" /> | |
<input class="btn btn-blue" type="submit" value="Search" /> | |
</form> | |
</section> | |
</div> | |
{/block:NoSearchResults} | |
</article> | |
{/block:SearchPage} | |
</div> | |
</div> | |
</div> | |
<div class="main"> | |
<div class="frame"> | |
<section class="main_content"> | |
<div class="bit-66"> | |
{block:Posts} | |
<article> | |
<!--Metadata: date, note count, content source--> | |
<header class="padding metadata"> | |
{block:Date} | |
<time title="{TimeAgo}" datetime="{Year}-{MonthNumberWithZero}-{DayOfMonthWithZero}">{ShortMonth} {DayOfMonthWithZero}, {Year}</time> | |
{/block:Date} | |
{block:NoteCount} | |
• | |
<a class="notecount" href="{Permalink}#notes">{NoteCountWithLabel}</a> | |
{/block:NoteCount} | |
<!-- {block:IndexPage} | |
{block:IfDisqusShortname} | |
• | |
<a class="comment" href="{Permalink}#disqus_thread"></a> | |
{lang:View comments} | |
{/block:IfDisqusShortname} | |
{/block:IndexPage} --> | |
</header> | |
<!--Unique code for each post type--> | |
{block:Text} | |
<div class="padding text"> | |
{block:Title} | |
<h2 class="title"><a href="{Permalink}">{Title}</a></h2>{/block:Title} | |
{Body} | |
{block:More} | |
<div class="more"> | |
<a class="btn btn-blue" href="{Permalink}"> | |
Read More | |
</a> | |
</div> | |
{/block:More} | |
</div> | |
{/block:Text} | |
{block:Photo} | |
<div class="padding photo"> | |
{LinkOpenTag} | |
<img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" width="{PhotoWidth-HighRes}" height="{PhotoHeight-HighRes}"> | |
{LinkCloseTag} | |
{block:Caption}{Caption}{/block:Caption} | |
</div> | |
{/block:Photo} | |
{block:Photoset} | |
<div class="padding photoset"> | |
{block:IndexPage}{Photoset-700}{/block:IndexPage} | |
{block:PermalinkPage} | |
{Photoset-700} | |
{/block:PermalinkPage} | |
{block:Caption}{Caption}{/block:Caption} | |
</div> | |
{/block:Photoset} | |
{block:Quote} | |
<div class="padding quote"> | |
<blockquote>{Quote}</blockquote> | |
{block:Source}<cite> {Source} </cite>{/block:Source} | |
</div> | |
{/block:Quote} | |
{block:Link} | |
<div class="padding link"> | |
<h2 class="title"><a href="{URL}">{Name}</a></h2> | |
{block:Description} | |
{Description} | |
{/block:Description} | |
{block:More} | |
<div class="more"> | |
<a class="btn btn-blue" href="{Permalink}">Read More</a> | |
</div> | |
{/block:More} | |
</div> | |
{/block:Link} | |
{block:Chat} | |
<div class="padding chat"> | |
<ul> | |
{block:Lines}<li class="{Alt}">{block:Label}<span class="label">{Label}</span>{/block:Label}<p> {Line} </p></li>{/block:Lines} | |
</ul> | |
</div> | |
{/block:Chat} | |
{block:Audio} | |
<div class="padding audio"> | |
{block:TrackName}<h2 class="title"><a href="{Permalink}">{TrackName}</a></h2>{/block:TrackName} | |
<div class="albumart">{block:AlbumArt}<img src="{AlbumArtURL}" width="500" height="500"/>{/block:AlbumArt}</div> | |
<div class="player">{AudioPlayerBlack}</div> | |
{block:AudioEmbed}{AudioEmbed}{/block:AudioEmbed} | |
{block:Caption}{Caption}{/block:Caption} | |
</div> | |
{/block:Audio} | |
{block:Video} | |
<div class="padding video"> | |
<div class="video-player">{Video-700}</div> | |
{block:Caption}{Caption}{/block:Caption} | |
</div> | |
{/block:Video} | |
{block:Answer} | |
<div class="padding answer"> | |
<h2 class="title">{Question}</h2> | |
<div class="user"> | |
<img src="{AskerPortraitURL-96}"/> | |
<p>{Asker}</p> | |
</div> | |
{Answer} | |
</div> | |
{/block:Answer} | |
<!--Post footer (tags and notes) on displayed on permalink pages--> | |
{block:Permalink} | |
<div class="details padding"> | |
{block:HasTags} | |
<div id="tags"> | |
{block:Tags}<a href="{TagURL}">{Tag}</a>{/block:Tags} | |
</div> | |
{/block:HasTags} | |
{block:PostNotes} | |
<h5>Notes</h5> | |
<div id="notes"> | |
{PostNotes} | |
</div> | |
{/block:PostNotes} | |
</div> | |
{/block:Permalink} | |
</article> | |
{/block:Posts} | |
<!--Close of article--> | |
<!-- Disqus --> | |
{block:PermalinkPagination} | |
{block:IfDisqusShortname} | |
<script type="text/javascript">var disqus_url = "{Permalink}"; var disqus_title ="{block:PostTitle}{PostTitle}{/block:PostTitle}";</script> | |
{block:Permalink} | |
<div id="disqus_thread"></div> | |
<script type="text/javascript"> | |
(function() { | |
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; | |
dsq.src = 'http://{text:Disqus Shortname}.disqus.com/embed.js'; | |
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | |
})(); | |
</script> | |
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript={text:Disqus Shortname}">comments powered by Disqus.</a></noscript> | |
{/block:Permalink} | |
<script type="text/javascript"> | |
var disqus_shortname = '{text:Disqus Shortname}'; | |
(function () { | |
var s = document.createElement('script'); s.async = true; | |
s.src = 'http://{text:Disqus Shortname}.disqus.com/count.js'; | |
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); | |
}()); | |
</script> | |
{/block:IfDisqusShortname} | |
{/block:PermalinkPagination} | |
<!--Pagination: previous/next page links--> | |
{block:Pagination} | |
<div id="pagination"> | |
{block:PreviousPage} | |
<a class="btn btn-orange" href="{PreviousPage}">Previous</a> | |
{/block:PreviousPage} | |
{block:NextPage} | |
<a class="btn btn-orange" href="{NextPage}">Next</a> | |
{/block:NextPage} | |
</div> | |
{/block:Pagination} | |
</div> | |
</section> | |
<aside class="sidebar"> | |
<div class="bit-33"> | |
<article class="padding"> | |
<h3>Search for:</h3> | |
<!--Search form (optional)--> | |
<div class="search"> | |
<form action="/search" method="get"> | |
<input type="text" name="q" value="{SearchQuery}"/> | |
<input class="btn btn-blue" type="submit" value="{lang:Search}"/> | |
</form> | |
</div> | |
</article> | |
<article class="padding"> | |
<h3>Pages:</h3> | |
<nav> | |
<ul class="menu"> | |
<li><a href="/">Home</a></li> | |
{block:HasPages} | |
{block:Pages} | |
<li> <a href="{URL}">{Label}</a></li> | |
{/block:Pages} | |
{/block:HasPages} | |
{block:SubmissionsEnabled} | |
<li> <a href="/submit">{SubmitLabel}</a></li> | |
{/block:SubmissionsEnabled} | |
{block:AskEnabled} | |
<li> <a href="/ask">{AskLabel}</a></li> | |
{/block:AskEnabled} | |
<li><a href="/archive">Archives</a></li> | |
<li><a href="{RSS}">RSS</a></li> | |
</ul> | |
</nav> | |
</article> | |
<article class="padding"> | |
{block:IfShowPeopleIFollow} | |
{block:Following} | |
<h3>{lang:Following}:</h3> | |
<ul class="blogroll"> | |
{block:Followed} | |
<li> | |
<a href="{FollowedURL}" title="{FollowedTitle}"> | |
<img src="{FollowedPortraitURL-48}"/> | |
</a> | |
</li> | |
{/block:Followed} | |
</ul> | |
{/block:Following} | |
{/block:IfShowPeopleIFollow} | |
</article> | |
</div> | |
</aside> | |
</div> | |
</div> | |
<footer class="footer"> | |
<div class="frame"> | |
<div class="bit-50"> | |
<ul class="social"> | |
<li><a title="Follow at twitter" href="http://twitter.com/{text:Twitter Username}"><img src="http://static.tumblr.com/0k22btb/YFMmspk8m/twitter.png" alt="twitter"></a></li> | |
<li><a title="Like at Facebook" href="#"><img src="http://static.tumblr.com/0k22btb/ZxLmspmny/facebook.png" alt="facebook"></a></li> | |
</ul> | |
</div> | |
<div class="bit-50"> | |
<p> | |
Powered by | |
<a title="Tumblr" href="http://tumblr.com">Tumblr</a>. | |
Theme created by | |
<a title="Follow me at twitter" href="http://twitter.com/mithicher">mithicher</a>. | |
Social icons by <a title="damojothemes.com" href="http://damojothemes.com">damojothemes.com</a>. | |
</p> | |
</div> | |
<a class="goToTop" href="#">Top</a> | |
</div> | |
</footer> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$(window).scroll(function(){ | |
if($(this).scrollTop() > 200) | |
{ | |
$('.goToTop').fadeIn(200); | |
} | |
else | |
{ | |
$('.goToTop').fadeOut(200); | |
} | |
}); | |
$('.goToTop').click(function(event){ | |
event.preventDefault(); | |
$('html, body').animate({scrollTop: 0}, 600); | |
}); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment