Advertisement
jewist

Opiate Theme

Oct 21st, 2012
575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.44 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3.  
  4. <!--
  5. Opiate Theme for Tumblr by Jewist
  6. http://jewistthemes.tumblr.com/
  7. -->
  8.  
  9. <head><title>{Title}</title>
  10. <link rel="shortcut icon" href="{Favicon}">
  11. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  12. <link rel="shortcut icon" href="{Favicon}">
  13. <link rel="shortcut icon" href="{Favicon}">
  14. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  15.  
  16. {block:Description}
  17. <meta name="description" content="{MetaDescription}"/>
  18. {/block:Description}
  19.  
  20. <meta name="color:background" content="#fff"/>
  21. <meta name="color:first" content="#5f5f5f"/>
  22. <meta name="color:second" content="#e9e9e9"/>
  23. <meta name="color:third" content="#000"/>
  24. <meta name="color:link" content="#a8a8a8"/>
  25. <meta name="color:link hover" content="#000"/>
  26. <meta name="text:font size" content="12px"/>
  27. <meta name="text:title font size" content="20px"/>
  28. <meta name="font:body" content="courier new"/>
  29. <meta name="if:show rss" content="1"/>
  30. <meta name="if:image fade" content="1"/>
  31. <meta name="if:endless scrolling" content="0"/>
  32.  
  33. <style type="text/css">
  34. body {background:{color:background}; font-family:{font:body}; font-size:{text:font size}; text-align:justify; color:{color:first};}
  35.  
  36. a {text-decoration:none; color:{color:link}; -moz-transition:0.3s ease-in; -webkit-transition:0.3s ease-in; -o-transition:0.3s ease-in; transition:0.3s ease-in;}
  37. a:hover {color:{color:link hover};}
  38.  
  39. h3 {font-weight:bold; text-transform:none; margin-top:0px; margin-bottom:-8px;}
  40.  
  41. .all {padding-top:40px;} .wrap {margin:0px auto; padding-top:0px; {block:permalinkpage}width:500px;{/block:permalinkpage}} .posts {{block:permalinkpage}width:500px;{/block:permalinkpage} padding-left:8px; padding-bottom:30px;} .post {margin:30px; {block:indexpage}max-width:400px;{/block:indexpage} {block:permalinkpage}width:500px;{/block:permalinkpage} float:left; position:relative;}
  42.  
  43. .permalink {margin-top:5px; opacity:0; -moz-transition:0.3s ease-in; -webkit-transition:0.3s ease-in; -o-transition:0.3s ease-in; transition:0.3s ease-in;} .post:hover .permalink {opacity:.8;}
  44.  
  45. .head {padding-left:25px; padding-right:25px; solid {color:second}; } .head a {font-size:20px; text-transform:uppercase;} #topfixed {position:fixed; z-index:2; background:{color:background}; top:20px; left:50px; width:100%;} .descrip {padding-left:25px; padding-right:25px; margin-top:1px; background:{color:second};} .divide { solid {color:second}; margin-left:20px; margin-right:20px; display:inline;}
  46.  
  47. #credit {position:fixed; bottom:0px; padding-right:25px; right:0px; z-index:8;} #credit a {font-size:9px; text-transform:uppercase; background:{color:background}; color:{color:third};} #credit a:hover {background:{color:third}; color:{color:second};}
  48.  
  49. .question {background:{color:second};} .arrow {margin-left:8px; border-color:{color:second} transparent transparent transparent; z-index:1; border-style:solid; border-width:7px; width:0; height:0;} .player {background:#000; {block:permalinkpage}width:500px;{/block:permalinkpage}} .notes {font-weight:bold; font-size:9px; text-transform:uppercase;}
  50. ol.notes {padding-left:40px; margin-top:10px; list-style-type:none; font-weight:normal; font-size:{text:font size}; text-transform:none;}
  51. ol.notes li.note {padding-top:2px; opacity:.8; -moz-transition:0.1s ease-in; -webkit-transition:0.1s ease-in; -o-transition:0.1s ease-in; transition:0.1s ease-in;} ol.notes li.note:hover {opacity:1;} ol.notes li.note img.avatar {width:14px; height:14px;}
  52.  
  53. .label {font-weight:bold; font-size:9px; font-family:{font:title};}
  54. ul, ol {margin-left:-40px!important; list-style:none; font-size:9px;}
  55.  
  56. img {border:0px; {block:ifimagefade}opacity:.8;{/block:ifimagefade} {block:permalinkpage}opacity:1;{/block:permalinkpage} -moz-transition:0.3s ease-in; -webkit-transition:0.3s ease-in; -o-transition:0.3s ease-in; transition:0.3s ease-in;}
  57. {block:ifimagefade}{block:indexpage}img:hover {opacity:1;}{/block:indexpage}{/block:ifimagefade}
  58.  
  59. .tumblrAutoPager_page_info, .tumblrAutoPager_page_separator {display:none;}
  60. #infscr-loading {display:none;}
  61. .navigation{{block:ifendlessscrolling}display:none;{/block:ifendlessscrolling}{block:ifnotendlessscrolling}font-size:9px; width:100%; background:{color:background}; position:fixed; bottom:0px; padding-left:25px; left:0px; z-index:5; border-top:1px solid {color:second}; width:100%;{/block:ifnotendlessscrolling}} .navigation a {text-transform:uppercase; font-size:9px;}
  62.  
  63. ::-webkit-scrollbar{width:6px; height:6px;}
  64. ::-webkit-scrollbar-button:start:decrement
  65. ::-webkit-scrollbar-button:end:increment{display:block; height:0; background-color:transparent;}
  66. ::-webkit-scrollbar-track-piece{background:{color:background};}
  67. ::-webkit-scrollbar-thumb:vertical{height:50px; background:#f9f9f9;}
  68. ::-webkit-scrollbar-thumb:horizontal{width:6px; background:#f9f9f9;} ::-webkit-scrollbar-thumb:horizontal:hover {width:6px; background:{color:second};} ::-webkit-scrollbar-thumb:vertical:hover {background:{color:second};}
  69.  
  70. iframe#tumblr_controls {position:fixed!important; margin-top:30px;}
  71.  
  72. {CustomCSS}
  73. </style>
  74.  
  75. <script src="http://masonry.desandro.com/js/jquery-1.7.1.min.js"></script>
  76. <script src="http://masonry.desandro.com/jquery.masonry.min.js"></script>
  77. {block:ifendlessscrolling}<script src="http://static.tumblr.com/twte3d7/H82lxkzfb/infinitescroll.js"></script>{/block:ifendlessscrolling}
  78.  
  79. <script>
  80. $(function(){
  81. var $container = $('.posts');
  82. $container.imagesLoaded(function(){
  83. $container.masonry({
  84. itemSelector: '.post',
  85. columnWidth: 220
  86. });
  87. });
  88. $container.infinitescroll({
  89. navSelector : '.navigation', // selector for the paged navigation
  90. nextSelector : '.navigation a#next', // selector for the NEXT link (to page 2)
  91. itemSelector : '.post', // selector for all items you'll retrieve
  92. loading: {
  93. finishedMsg: '<em></em>',
  94. }
  95. },
  96. // trigger Masonry as a callback
  97. function( newElements ) {
  98. // hide new items while they are loading
  99. var $newElems = $( newElements ).css({ opacity: 0 });
  100. // ensure that images load before adding to masonry layout
  101. $newElems.imagesLoaded(function(){
  102. // show elems now they're ready
  103. $newElems.animate({ opacity: 1 });
  104. $container.masonry( 'appended', $newElems, true );
  105. });
  106. }
  107. );
  108. });
  109. </script>
  110. </head>
  111.  
  112. <body>
  113.  
  114. <div id="credit"><a href="http://jewist.tumblr.com">©</a></div>
  115.  
  116. <div class="wrap"><div class="all"><div id="topfixed"><div class="head"><a href="/">{title}</a><div class="divide"></div><a href="/archive">{lang:Archive}</a><div class="divide"></div>{block:AskEnabled}<a href="/ask">Message</a><div class="divide"></div>{/block:AskEnabled}{block:SubmissionsEnabled}<a href="/submit">Submit</a><div class="divide"></div>{/block:SubmissionsEnabled}{block:IfShowRSS}<a href="{RSS}">RSS</a><div class="divide"></div>{/block:IfShowRSS}{block:HasPages}{block:Pages}<a href="{URL}">{Label}</a><div class="divide"></div>{/block:Pages}{/block:HasPages}</div>{block:description}<div class="descrip">{description}</div>{/block:description}</div>
  117.  
  118. <div class="posts">{block:Posts}<div class="post">{block:Text}{block:Title}<h3>{Title}</h3>{/block:Title}{Body}{block:indexpage}<div class="permalink">{block:date}<a href="{permalink}">{24Hour}:{Minutes}{AmPm}</a>{/block:date}</div>{/block:indexpage}{/block:Text}
  119.  
  120. {block:Photo}<div id="photo">{block:PermalinkPage}{LinkOpenTag}{/block:PermalinkPage}{block:IndexPage}<a href="{Permalink}">{block:Post1}<img src="{PhotoURL-500}" width="500px">{/block:Post1}{block:Post2}<img src="{PhotoURL-500}" width="500px">{/block:Post2}{block:Post3}<img src="{PhotoURL-500}" width="500px">{/block:Post3}{block:Post4}<img src="{PhotoURL-500}" width="500px">{/block:Post4}{block:Post5}<img src="{PhotoURL-500}" width="500px">{/block:Post5}{block:Post6}<img src="{PhotoURL-500}" width="500px">{/block:Post6}{block:Post7}<img src="{PhotoURL-500}" width="500px">{/block:Post7}{block:Post8}<img src="{PhotoURL-500}" width="500px">{/block:Post8}{block:Post9}<img src="{PhotoURL-500}" width="500px">{/block:Post9}{block:Post10}<img src="{PhotoURL-500}" width="500px">{/block:Post10}{block:Post11}<img src="{PhotoURL-500}" width="500px">{/block:Post11}{block:Post12}<img src="{PhotoURL-500}" width="500px">{/block:Post12}{block:Post13}<img src="{PhotoURL-500}" width="500px">{/block:Post13}{block:Post14}<img src="{PhotoURL-500}" width="500px">{/block:Post14}{block:Post15}<img src="{PhotoURL-500}" width="500px">{/block:Post15}{/block:IndexPage}</a>{/block:IndexPage}{block:PermalinkPage}{LinkCloseTag}<img src="{PhotoURL-500}" alt="{PhotoAlt}" width="500px"/>{/block:PermalinkPage}</div>{/block:Photo}
  121.  
  122. {block:Photoset}{block:IndexPage}{Photoset-250}<div class="permalink">{block:date}<a href="{permalink}">{24Hour}:{Minutes}{AmPm}</a>{/block:date}</div>{/block:IndexPage}{block:PermalinkPage}{Photoset-500}{/block:PermalinkPage}{/block:Photoset}
  123.  
  124. {block:Quote}{Quote}{block:Source}<div style="opacity:.5; margin-bottom:10px;">{Source}</div>{/block:Source}{block:indexpage}<div class="permalink">{block:date}<a href="{permalink}">{24Hour}:{Minutes}{AmPm}</a>{/block:date}</div>{/block:indexpage}{/block:Quote}
  125.  
  126. {block:Link}<h3><a href="{URL}" class="link" {Target}>{Name}</a></h3>{block:Description}<div class="description">{Description}</div>{/block:Description}{block:indexpage}<div class="permalink">{block:date}<a href="{permalink}">{24Hour}:{Minutes}{AmPm}</a>{/block:date}</div>{/block:indexpage}{/block:Link}
  127.  
  128. {block: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>{block:indexpage}<div class="permalink">{block:date}<a href="{permalink}">{24Hour}:{Minutes}{AmPm}</a>{/block:date}</div>{/block:indexpage}{/block:Chat}
  129.  
  130. {block:Video}{block:indexpage}{Video-500}{/block:indexpage}{block:permalinkpage}{Video-500}{/block:permalinkpage}{block:indexpage}<div class="permalink">{block:date}<a href="{permalink}">{24Hour}:{Minutes}{AmPm}</a>{/block:date}</div>{/block:indexpage}{/block:Video}
  131.  
  132. {block:Audio}<div class="player">{AudioPlayerBlack}</div>{block:Caption}<div class="caption">{caption}</div>{/block:Caption}{block:indexpage}<div class="permalink">{block:date}<a href="{permalink}">{24Hour}:{Minutes}{AmPm}</a>{/block:date}</div>{/block:indexpage}{/block:Audio}
  133.  
  134. {block:Answer}<div class="question">{Asker}: {Question}</div><div style="position:absolute; margin-top:0px;"><div class="arrow"></div></div>{answer}{block:indexpage}<div class="permalink">{block:date}<a href="{permalink}">{24Hour}:{Minutes}{AmPm}</a>{/block:date}</div>{/block:indexpage}{/block:Answer}
  135.  
  136. {block:PermalinkPage}<div class="notes">{block:caption}{caption}{/block:caption}<br>Posted {block:Date}{ShortDayOfWeek} {ShortMonth} {DayOfMonthWithZero} at {12Hour}:{Minutes}{AmPm}{/block:Date} with {block:NoteCount}{NoteCountWithLabel}{/block:NoteCount}{block:PostNotes}{PostNotes}{/block:PostNotes}</div>{/block:PermalinkPage}</div>{/block:Posts}</div>
  137.  
  138. {block:indexpage}<div class="navigation">{block:Pagination}{block:JumpPagination length="5"}{block:CurrentPage}<span class="current_page">{PageNumber}</span><div class="divide"></div>{/block:CurrentPage}{block:JumpPage}<a class="jump_page" href="{URL}">{PageNumber}</a><div class="divide"></div>{/block:JumpPage}{/block:JumpPagination}{block:NextPage}<a href="{NextPage}" id="next">Next</a>{/block:NextPage}{/block:Pagination}</div>{/block:indexpage}</div></div></body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement