Advertisement
hor4ny

Tumblr Theme Base Code

Dec 25th, 2012
21,415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.75 KB | None | 0 0
  1. <!--
  2. Go to tumblr.com/docs/en/custom_themes for assistance.
  3. -->
  4.  
  5. <html lang="en">
  6. <!DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9.  
  10. <script type="text/javascript">
  11. <!--
  12.  
  13. // Disable Right Click Script
  14.  
  15. function IE(e)
  16. {
  17. if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3"))
  18. {
  19. return false;
  20. }
  21. }
  22. function NS(e)
  23. {
  24. if (document.layers || (document.getElementById && !document.all))
  25. {
  26. if (e.which == "2" || e.which == "3")
  27. {
  28. return false;
  29. }
  30. }
  31. }
  32. document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false");
  33.  
  34. //-->
  35. </script>
  36.  
  37.  
  38. <script type="text/javascript"
  39. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
  40.  
  41. <!--DEFAULT VARIABLES-->
  42. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  43. <meta name="color:background" content="#fff"/>
  44. <meta name="color:link" content="#777"/>
  45. <meta name="color:text" content="#777"/>
  46. <meta name="color:title" content="#333"/>
  47. <meta name="color:hover" content="#fff"/>
  48. <meta name="image:sidebar" content="1"/>
  49. <meta name="image:background" content="1"/>
  50.  
  51.  
  52. <style type="text/css">
  53.  
  54.  
  55. iframe#tumblr_controls {right:2px !important; position: fixed !important;-webkit-transition: opacity 0.7s linear;opacity: 0.05;-webkit-transition: all 0.8s ease-out;-moz-
  56.  
  57. transition: all 0.8s ease-out;transition: all 0.8s ease-out;}
  58.  
  59. iframe#tumblr_controls:hover{-webkit-transition: opacity 0.7s linear;opacity: 0.8;-webkit-transition: all 0.4s ease-out;-moz-transition: all 0.4s ease-out;transition: all 0.4s ease-out;}
  60.  
  61. p {
  62. margin:0px;
  63. margin-top:0px;
  64. }
  65.  
  66.  
  67. body {
  68. padding: 0px;
  69. margin: 0px;
  70. color:{color:text};
  71. font-family: dixel;
  72. line-height:7px;
  73. font-size:8px;
  74. background-color: {color:Background};
  75. background-image:url({image:Background});
  76. background-attachment: fixed;
  77. background-repeat: repeat;
  78. }
  79.  
  80.  
  81. a:link, a:active, a:visited{
  82. text-decoration: none;
  83. -webkit-transition: color 0.3s ease-out;
  84. -moz-transition: color 0.3s ease-out;
  85. transition: color 0.3s ease-out;
  86. color:{color:link};
  87. }
  88.  
  89. a:hover {
  90. text-decoration: none;
  91. font-style:;
  92. color: {color:Hover};
  93. }
  94.  
  95. div#center{
  96. margin:auto;
  97. position:relative;
  98. width:1000px;
  99. background-color:;
  100. overflow:auto;
  101. overflow-y:hidden;
  102. }
  103.  
  104.  
  105. /*CUSTOMIZE ENTRY SETTINGS HERE*/
  106. .entry {
  107. float:left;
  108. display: block;
  109. margin:5px;
  110. overflow:hidden;
  111. width:220px;
  112. {block:PermalinkPage}
  113. width:450px;
  114. text-align:left;
  115. line-height:10px;
  116. {/block:PermalinkPage}
  117. background:white;
  118. background-image:URL();
  119. }
  120.  
  121.  
  122. /*CUSTOMIZE THE APPEARANCE OF PERMALINKS*/
  123. .entry .perma{
  124. width:220px;
  125. height:16px;
  126. margin-left:0px;
  127. position: absolute;
  128. line-height: 16px;
  129. overflow:hidden;
  130. text-align:center;
  131. top:0px;
  132. background:white;
  133. word-spacing:2px;
  134. letter-spacing:1px;
  135. opacity: 0.0;
  136. -webkit-transition: all .7s ease;
  137. -moz-transition: all .7s ease;
  138. -o-transition: all .7s ease;
  139. transition: all .7s ease;
  140.  
  141. }
  142.  
  143. .entry:hover .perma{
  144. overflow:visible;
  145. opacity:0.9;
  146. }
  147.  
  148.  
  149. /*CUSTOMIZE POST POSITIONING AND STUFFZ HERE*/
  150. #posts {
  151. width:500px;
  152. margin-top:1px;
  153. z-index:99;
  154. margin-left:319px;
  155. right:auto;
  156. background:transparent;
  157. margin-right:auto;
  158. position:relative;
  159. overflow-y: hidden;
  160. }
  161.  
  162.  
  163. /*CUSTOMIZE SIDEBAR HERE*/
  164. #sidebar{
  165. position:fixed !important;
  166. width:170px;
  167. background:white;
  168. height:auto;
  169. margin-top:150px;
  170. margin-left:135px;
  171. text-align:center;
  172. }
  173.  
  174.  
  175. @font-face { font-family: "dixel"; src: url('http://static.tumblr.com/jdjsstr/8ovm78cbb/pf_arma_five_1_.ttf'); }
  176.  
  177.  
  178. /*CUSTOMIZE TITLE OF ENTRIES HERE*/
  179. .title{
  180. line-height: 12px;
  181. color:{color:Title};
  182. font-weight: normal;
  183. }
  184.  
  185.  
  186. /*CUSTOMIZE PERMALINKS OF TEXT POSTS AND SUCH HERE*/
  187. .permalink{
  188. text-transform: normal;
  189. display: block;
  190. text-align: right;
  191. text-decoration: none;
  192. }
  193.  
  194.  
  195. /*I RECCOMMEND TO NOT TOUCH ANY OF THIS LOLz*/
  196. #infscr-loading{
  197. bottom: -70px;
  198. position: absolute;
  199. left: 50%;
  200. margin-left:-8px;
  201. width:16px;
  202. height:11px;
  203. overflow:hidden;
  204. margin-bottom: 50px;
  205. }
  206.  
  207. #postnotes{
  208. text-align: justify;}
  209.  
  210. #postnotes blockquote{
  211. border: 0px;}
  212.  
  213. blockquote{
  214. padding:0px 0px 2px 5px;
  215. margin:0px 0px 2px 10px;
  216. border-left: 1px dotted #555555;
  217. }
  218.  
  219. blockquote p, ul{
  220. margin:0px;
  221. padding:0px;
  222. }
  223.  
  224. a img{border: 0px;}
  225.  
  226.  
  227. ul, ol, li{list-style:none; margin:0px; padding:0px;}
  228.  
  229. .user_1 .label, .user_2 .label, .user_3 .label, .user_4 .label, .user_5 .label, .user_6 .label,
  230. .user_7 .label, .user_8 .label, .user_9 .label {color:{color:text};}
  231.  
  232. .notes img{width:10px; position:relative; top:3px;}
  233. <--ses-->
  234. small{font-size: 90%;}
  235.  
  236. {CustomCSS}
  237.  
  238. </style>
  239.  
  240. {block:IndexPage}
  241. <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/iBElrgjim/jquerymasonry.js"></script>
  242. <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/Qyblrgjfn/jqueryinfintescroll.js"></script>
  243.  
  244. <script type="text/javascript">
  245. $(window).load(function(){
  246. var $wall = $('#posts');
  247. $wall.imagesLoaded(function(){
  248. $wall.masonry({
  249. itemSelector: '.entry, .entry_photo',
  250. isAnimated : false
  251. });
  252. });
  253.  
  254. $wall.infinitescroll({
  255. navSelector : '#pagination',
  256. nextSelector : '#pagination a',
  257. itemSelector : '.entry, .entry_photo',
  258. bufferPx : 2000,
  259. debug : false,
  260. errorCallback: function() {
  261. $('#infscr-loading').fadeOut('normal');
  262. }},
  263. function( newElements ) {
  264. var $newElems = $( newElements );
  265. $newElems.hide();
  266. $newElems.imagesLoaded(function(){
  267. $wall.masonry( 'appended', $newElems,{isAnimated: false}, function(){$newElems.fadeIn('slow');} );
  268. });
  269. }); $('#posts').show(500);
  270. });
  271. </script>
  272.  
  273.  
  274. {/block:IndexPage}
  275.  
  276.  
  277. <title>{title}</title>
  278.  
  279. <link rel="shortcut icon" href="{Favicon}" />
  280. <meta name="viewport" content="width=820" />
  281. </head>
  282.  
  283. <body>
  284. <BODY onselectstart="return false;" ondragstart="return false;">
  285. <div class="wrapper">
  286. <div class="header">
  287. </div>
  288.  
  289. <div id="cage">
  290. <div id="center">
  291.  
  292. <!--STUFF THAT GOES INTO THE SIDEBAR-->
  293. <div id="sidebar">
  294. <center>
  295. <a href="/"><img src="{image:sidebar}" width=100%></a>
  296. {description}
  297. </center>
  298. </div>
  299. <!------------------------------------->
  300.  
  301.  
  302. <div class="left">
  303. <div id="posts">
  304. {block:Posts}
  305. <div class="entry">
  306.  
  307. {block:Text}{block:Title}<span class="title">{Title}</span>{/block:Title}<span class="body">{Body}</span><p align=right><span class="permalink"><a
  308.  
  309. href="{Permalink}"><a href="{Permalink}"><a href="{Permalink}">{notecountwithlabel}</a></a><br>{/block:HasTags}</span></align>
  310. {/block:Text}
  311.  
  312. {block:Link}<a href="{URL}" class="title">{Name}</a>{block:Description}<div class="body">{Description}</div>{/block:Description} <p align=right><span
  313.  
  314. class="permalink"><a href="{Permalink}">{notecountwithlabel}</a> <a href="{Permalink}"></span></align>{block:Link}
  315.  
  316. {block:Photo}
  317. {block:IndexPage}
  318. <center>
  319. <div class="perma">
  320. <a href="{ReblogURL}" target="_blank"> reblog </a> </div>
  321.  
  322. <div class="photo"><a href="{permalink}"><img class="photo" src="{PhotoURL-HighRes}" alt="{PhotoAlt}" width="100%"/></a></div>
  323. {/block:IndexPage}
  324. {block:PermalinkPage}
  325. {LinkOpenTag}<div class="photo"><a href="{permalink}"><img class="photo" src="{PhotoURL-HighRes}" alt="{PhotoAlt}" width="100%"/></a></div>
  326.  
  327. {LinkCloseTag}
  328. {/block:PermalinkPage}
  329. {/block:Photo}
  330.  
  331. {block:Photoset}
  332. {block:IndexPage}
  333. <center>
  334.  
  335. <div class="perma">
  336. <a href="{ReblogURL}" target="_blank"> reblog </a> </div>
  337.  
  338. {Photoset-250}</center>
  339. {/block:IndexPage}
  340. {block:PermalinkPage}
  341. <center>
  342. {Photoset-500}</center>
  343. {/block:PermalinkPage}
  344. {/block:Photoset}
  345.  
  346. {block:Quote}<span class="title">"{Quote}"</span> — {block:Source}<b>{Source}</b>{/block:Source}<br><p align=right><span class="permalink"><a
  347.  
  348. href="{Permalink}">{notecountwithlabel}</a> <a href="{Permalink}"> </span>{/block:Quote}
  349.  
  350. {block:Chat}{block:Title}<span class="title">{Title}</span>{/block:Title}
  351. <ul class="chat">
  352. {block:Lines}
  353. <li class="user_{UserNumber}">
  354. {block:Label}
  355. <span class="label">{Label}</span>
  356. {/block:Label}
  357.  
  358. {Line}
  359. </li>
  360. {/block:Lines}
  361. <p align=right><span class="permalink"><a href="{Permalink}">{notecountwithlabel}</a> <a href="{Permalink}">
  362. {/block:Chat}
  363.  
  364. {block:Audio}
  365. <div style="width:200px; height:30px;">
  366. {AudioPlayerBlack}
  367. </div>
  368. {block:IndexPage}<span class="permalink">
  369. <p align=right><span class="permalink"><a href="{Permalink}">{notecountwithlabel}</a> <a href="{Permalink}"> </a>
  370. </span>{/block:IndexPage}
  371. {/block:Audio}
  372.  
  373. {block:Video}
  374. {block:IndexPage}
  375. <center>
  376. <div class="perma">
  377. <a href="{ReblogURL}" target="_blank"> reblog </a> </div>
  378. {Video-250}</center>
  379. {/block:IndexPage}
  380. {block:PermalinkPage}
  381. <center>
  382. {Video-400}</center>
  383. {/block:PermalinkPage}
  384. {block:Video}
  385.  
  386.  
  387. {block:PostNotes}<div align="middle">{caption}</div>
  388. <center>
  389.  
  390. {block:NoteCount}{NoteCountWithLabel}<br>{/block:NoteCount}
  391.  
  392. {block:HasTags}
  393. tags: {block:Tags}<a href="{TagURL}">{Tag}. </a>{/block:Tags}<br> {/block:HasTags}
  394. {block:RebloggedFrom}
  395. reblogged from <a href="{ReblogParentURL}">{ReblogParentName}</a><br>
  396. posted by <a href="{ReblogRootURL}">{ReblogRootName}</a>
  397.  
  398. {/block:RebloggedFrom}
  399. </center></span>
  400. <br>
  401. <div id="postnotes">{PostNotes}</div><br>
  402.  
  403. <center>{block:ContentSource}
  404. <br><a href="{SourceURL}">
  405. {lang:Source}:
  406. {block:SourceLogo}
  407. <img src="{BlackLogoURL}" width="{LogoWidth}"
  408. height="{LogoHeight}" alt="{SourceTitle}" />
  409. {/block:SourceLogo}
  410. {block:NoSourceLogo}
  411. {SourceLink}
  412. {/block:NoSourceLogo}
  413. </a>
  414. {/block:ContentSource}</center>
  415.  
  416. {/block:PostNotes}
  417. </div>
  418. {/block:Posts}
  419. </div></div>
  420.  
  421. {block:IndexPage}
  422. {block:Pagination}
  423. <div id="pagination">
  424. {block:NextPage}
  425. <a id="nextPage" href="{NextPage}"></a>
  426. {/block:NextPage}
  427. {block:PreviousPage}
  428. <a href="{PreviousPage}"></a>
  429. {/block:PreviousPage}
  430. </div>
  431. {/block:Pagination}
  432. {/block:IndexPage}
  433. </body>
  434. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement