Advertisement
makenathemes

Hope Theme

Aug 7th, 2012
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.80 KB | None | 0 0
  1. <html lang="en">
  2.  
  3. <!-- Hope Theme by Makena (duskmist).
  4. A lot of you wanted to know my theme code for my personal blog, but since I don't give out my current theme, I made on similar to it, so here you go.
  5.  
  6. Do not remove all the credit unless you have permission from me. This code took a while to make.
  7.  
  8. Thanks and please report any bugs to me! !-->
  9.  
  10. <head>
  11.  
  12. <script type="text/javascript" src="http://codysherman.com/tools/infinite-scrolling/code"></script>
  13.  
  14. <link href='http://fonts.googleapis.com/css?family=Codystar|Happy+Monkey|Megrim|Coming+Soon' rel='stylesheet' type='text/css'>
  15.  
  16. <meta name="color:background" content="#ffffff">
  17. <meta name="color:link" content="#000000">
  18. <meta name="color:link hover" content="#f8f8f8">
  19.  
  20. <meta name="if:note count label" content="1">
  21.  
  22.  
  23. <title>{title}</title>
  24. <link rel=”shortcut icon” href=”{Favicon}”/>
  25. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  26. {block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
  27.  
  28. <style type="text/css">
  29.  
  30. a:link, a:active, a:visited{
  31. color:{color:link};
  32. text-decoration: none;
  33. -webkit-transition: color 0.4s ease-out;
  34. -moz-transition: color 0.4s ease-out;
  35. }
  36.  
  37. a:hover{
  38. color:{color:linkhover};
  39. text-decoration:underline;
  40. opacity:0.7
  41. -webkit-transition: color 0.4s ease-out;
  42. -moz-transition: color 0.4s ease-out;
  43. }
  44.  
  45. body{
  46. color:black;
  47. font-family:Happy Monkey;
  48. font-size:10px;
  49. background-color:{color:background};
  50. }
  51.  
  52. .entry {
  53. font-size:10px;
  54. margin-left: 5px;
  55. margin-top:-7px;
  56. position: absolute;
  57. width:auto;
  58. height:auto;
  59. padding:5px;
  60. opacity:0;
  61. {block:IndexPage}
  62. -webkit-transition: 0.6s;
  63. -moz-transition: 0.6s;
  64. -o-transition: 0.6s;
  65. transition: 0.6s;
  66. }
  67.  
  68. #post:hover .entry {
  69. font-size:10px;
  70. opacity: 0.8;
  71. margin-top:5px;
  72. margin-left:5px;
  73. background-color:#fff;
  74. -webkit-transition: 0.6s;
  75. -moz-transition: 0.6s;
  76. -o-transition: 0.6s;
  77. transition: 0.6s;
  78. {/block:IndexPage}
  79. }
  80.  
  81. #post:hover .entry:hover{
  82. opacity:1;
  83. -webkit-border-radius: 10px;
  84. -moz-border-radius: 10px;
  85. border-radius: 10px;
  86. }
  87.  
  88. #cent{
  89.  
  90. width:508;
  91. margin:auto;
  92. margin-left:400px;
  93. background-color:{color:background};
  94. position:absolute;
  95. padding:5px;
  96. }
  97.  
  98. #post{
  99. padding:2px;
  100. position:static;
  101. background-color:{color:background};
  102.  
  103. width:500;
  104.  
  105. float:left;
  106. margin:2px;
  107. }
  108.  
  109. #blogtitle{
  110. font-size:35px;
  111. color:#000;
  112. font-family:Megrim;
  113. height:40px;
  114. width:200px;
  115. margin-top:13px;
  116. margin-left:125px;
  117. position:fixed;
  118. text-align: center;
  119. padding:3px;
  120. }
  121.  
  122. #blogtitle:hover{
  123. color:#000;
  124. }
  125.  
  126. #nav{
  127. font-size:11px;
  128. font-family:Happy Monkey;
  129. height:60px;
  130. width:200px;
  131. margin-top:60px;
  132. margin-left:125px;
  133. text-align: center;
  134. position:fixed;
  135. padding:3px;
  136. }
  137.  
  138. #description{
  139. background-color:{color:background};
  140. font-family:Coming Soon;
  141. width:200px;
  142. margin-top:110px;
  143. margin-left:125px;
  144. text-align: center;
  145. position:fixed;
  146. padding:3px;
  147. }
  148.  
  149. @import url(http://fonts.googleapis.com/css?family=Codystar|Happy+Monkey|Megrim|Coming+Soon);
  150.  
  151.  
  152. {CustomCSS]
  153.  
  154. </style>
  155.  
  156.  
  157. </head>
  158. <body>
  159.  
  160. <div id="blogtitle">
  161.  
  162. <a href="/">{Title}</a>
  163. </div>
  164.  
  165. <div id="nav">
  166. ---------------------------------<br>
  167. <a href="/ask">message</a>
  168. {block:HasPages}{block:Pages}<a href="{URL}">{Label}</a>{/block:Pages}{/block:HasPages}
  169. <a href="http://duskmist.tumblr.com/">theme</a></span>
  170. <br>
  171. ---------------------------------
  172. </div>
  173.  
  174. <div id="description">
  175.  
  176. {Description}
  177.  
  178. </div>
  179.  
  180.  
  181.  
  182. <div id="cent">
  183.  
  184. <div class = "autopagerize_page_element" >
  185.  
  186.  
  187. {block:Posts}
  188.  
  189. <div id="post">
  190.  
  191. {block:Title}{Title}{/block:Title}
  192.  
  193. {block:Text}{Body}{/block:Text}
  194.  
  195. {block:Photo}
  196. {block:IndexPage}
  197. <div class="entry">
  198. <a href="{permalink}">{block:ifnotecountlabel}{NoteCountWithLabel}{/block:ifnotecountlabel}{block:ifnotnotecountlabel}{NoteCount}{/block:ifnotnotecountlabel}</a> -
  199. <a href="{ReblogURL}">reblog</a><br>
  200. <a href="{Permalink}">{TimeAgo}</a></div>
  201. {/block:IndexPage}
  202. <a href="{permalink}"><img src="{PhotoURL-500}"
  203. width="500"
  204. /></a>
  205.  
  206. {/block:Photo}
  207.  
  208. {block:Photoset}
  209. {Photoset-500}
  210. {/block:Photoset}
  211.  
  212.  
  213. {block:Quote}
  214. {Quote}
  215. <div align="right">
  216. {block:Source}-{Source}{/block:Source}
  217. </div>
  218. {/block:Quote}
  219.  
  220.  
  221. {block:Video}
  222. {Video-500}<br>
  223. {PlayCountWithLabel}
  224. {/block:Video}
  225.  
  226.  
  227. {block:Link}
  228. <a href="{URL}" class="link" {Target}>{Name}</a><BR>
  229. {block:Description}{Description}{/block:Description}
  230. {/block:Link}
  231.  
  232. {block:Chat}
  233. {block:Lines}
  234. {block:Label}
  235. <br>{Label}
  236. {/block:Label}
  237. &nbsp;{Line}
  238. {/block:Lines}
  239. {/block:Chat}
  240.  
  241. {block:Audio}
  242. {AudioPlayerGrey}
  243. <br><div align="right">{block:Artist}
  244. Artist: {Artist}</div>
  245. {/block:Artist}<br>
  246. {block:Caption}{Caption}{/block:Caption}
  247. {/block:Audio}
  248.  
  249.  
  250. {block:Answer}
  251. {Asker} asked <b>{Question}</b><Br>
  252. {Answer}
  253. {/block:Answer}
  254.  
  255. {block:PermalinkPage}
  256. {block:Caption}
  257. {Caption}
  258. {/block:Caption}
  259. <br>
  260. {block:NoteCount}
  261. {NoteCount} notes
  262. {/block:NoteCount}
  263. <Br>
  264. {block:PostNotes}{PostNotes}{/block:PostNotes}</div>
  265. {/block:PermalinkPage}
  266. </div>
  267.  
  268. {/block:Posts}
  269.  
  270. </div></div>
  271.  
  272.  
  273. {block:IndexPage}
  274. <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/iBElrgjim/jquerymasonry.js"></script>
  275. <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/Qyblrgjfn/jqueryinfintescroll.js"></script>
  276.  
  277. <script type="text/javascript">
  278. $(window).load(function () {
  279. var $content = $('#posts');
  280. $content.masonry({itemSelector: '.entry'}),
  281. $content.infinitescroll({
  282. navSelector : 'div#pagination',
  283. nextSelector : 'div#pagination a#nextPage',
  284. itemSelector : '.entry',
  285. loading: {
  286. finishedMsg: '',
  287. img: 'http://static.tumblr.com/dbek3sy/pX1lrx8xv/ajax-loader.gif'
  288. },
  289. bufferPx : 600,
  290. debug : false,
  291. },
  292. // call masonry as a callback.
  293. function( newElements ) {
  294. var $newElems = $( newElements );
  295. $newElems.hide();
  296. // ensure that images load before adding to masonry layout
  297. $newElems.imagesLoaded(function(){
  298. $content.masonry( 'appended', $newElems, true, function(){$newElems.fadeIn(300);} );
  299.  
  300.  
  301. });
  302. });
  303. });
  304. </script>
  305.  
  306.  
  307.  
  308. {/block:IndexPage}
  309.  
  310. {block:indexpage}
  311. <script src="http://static.tumblr.com/twte3d7/0pellzh2t/infinitescroll.js"></script>
  312. <script type="text/javascript">
  313. $(window).load(function () {
  314. $('#content').masonry(),
  315. $('.masonryWrap').infinitescroll({
  316. navSelector : '#pagination',
  317. nextSelector : '#pagination a#nextPage',
  318. itemSelector : ".entry, .clear",
  319. bufferPx : 40,
  320. loadingImg : "http://static.tumblr.com/uiqhh9x/38Em68qk4/loading.gif",
  321. loadingText : "<em></em>",
  322. },
  323. function() { $('#content').masonry({ appendedContent: $(this) }); }
  324. );
  325. });
  326. </script>
  327. {/block:indexpage}
  328.  
  329. <div style="display:block;bottom:5px;right:5px;font-size:12px;font-family:Happy Monkey;position:fixed;background-color:#ffffff;padding:4px;border-radius:5px;z-index:6;opacity:0.95;"><a href="http://vvolfgaze.tumblr.com/">Ⓜ</a></div>
  330.  
  331.  
  332. </body>
  333. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement