Advertisement
t-offee

Strawberries Theme v.2

Feb 20th, 2014
883
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.86 KB | None | 0 0
  1. <!------------------------------------------------------------------------
  2.  
  3.  
  4. /// strawberries theme v.2 by ally
  5.  
  6. © 2014 stahrfruits.tumblr.com
  7.  
  8.  
  9. -------------------------------------------------------------------------->
  10.  
  11. <!DOCTYPE html><html>
  12. <head>
  13.  
  14. <!------Meta Tags---------------------------------------------------->
  15.  
  16. <meta name="color:background" content="#ffffff" />
  17. <meta name="color:text" content="#000000" />
  18. <meta name="color:title" content="#000000" />
  19. <meta name="color:link" content="#000000" />
  20. <meta name="color:link hover" content="#cccccc" />
  21. <meta name="color:scrollbar" content="#000000" />
  22. <meta name="color:post background" content="#f0f0f0">
  23. <meta name="color:post border color" content="#000000">
  24.  
  25. <meta name="if:post background" content="0">
  26.  
  27. <meta name="text:message" content="message">
  28. <meta name="text:ask link" content="/ask">
  29. <meta name="text:archive" content="past">
  30.  
  31. <meta name="image:background" content="" />
  32.  
  33. <!------Essential Scripts-------------------------------------------->
  34.  
  35. <script>
  36. var IsOpen = "no";
  37. function ShowMenu()
  38. {
  39. if (IsOpen == "no")
  40. {
  41. $("#page_menu").slideDown("slow");
  42. document.getElementById('page_plus').innerHTML = ' - ';
  43. IsOpen="yes";
  44. }else
  45. {
  46. $("#page_menu").slideUp("slow");
  47. document.getElementById('page_plus').innerHTML = '+ ';
  48. IsOpen="no";
  49. }
  50. }
  51. </script>
  52. <script>
  53. var IsOpen2 = "no";
  54. function ShowMenu2()
  55. {
  56. if (IsOpen2 == "no")
  57. {
  58.  
  59. $("#header_menu").slideDown("slow");
  60. $("#page_menu").slideDown("slow");
  61.  
  62. document.getElementById('page_plus').innerHTML = '';
  63. IsOpen2="yes";
  64. }else
  65. {
  66. $("#header_menu").slideUp("slow");
  67. $("#page_menu").slideUp("slow");
  68. document.getElementById('page_plus').innerHTML = '';
  69. IsOpen2="no";
  70. }
  71. }
  72. </script>
  73. <script type="text/javascript">
  74. function changeText(){
  75.  
  76. }
  77. </script>
  78.  
  79.  
  80. <script>
  81. $(document).ready(function() {
  82. /* This is basic - uses default settings */
  83. $("a#single_image").fancybox();
  84. /* Using custom settings */
  85. $("a#inline").fancybox({
  86. 'hideOnContentClick': true
  87. });
  88.  
  89.  
  90. $(".various3").fancybox({
  91. 'width' : '50%',
  92. 'height' : '30%',
  93. 'autoScale' : false,
  94. 'transitionIn' : 'none',
  95. 'transitionOut' : 'none',
  96. 'type' : 'iframe'
  97. });
  98. });
  99. </script>
  100.  
  101. <script src="http://www.themecloud.co/themes/narnia/totop.js";
  102.  
  103. type="text/javascript"></script>
  104. <script type="text/javascript">
  105. $(document).ready(function() {
  106. /*
  107. var defaults = {
  108. containerID: 'moccaUItoTop', // fading element id
  109. containerHoverClass: 'moccaUIhover', // fading element
  110.  
  111. hover class
  112. scrollSpeed: 1200,
  113. easingType: 'linear'
  114. };
  115. */
  116.  
  117. $().UItoTop({ easingType: 'easeOutQuart' });
  118. });
  119. </script>
  120.  
  121. <title>{Title}</title>
  122. <link rel="shortcut icon" href="{Favicon}">
  123. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  124. {block:Description}
  125. <meta name="description" content="{MetaDescription}" />
  126. {/block:Description}
  127.  
  128. {block:IndexPage}
  129.  
  130. <script type="text/javascript"
  131. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
  132.  
  133. <script type="text/javascript"
  134.  
  135. src="http://static.tumblr.com/dbek3sy/iBElrgjim/jquerymasonry.js"></script>
  136.  
  137. <script type="text/javascript"
  138.  
  139. src="http://static.tumblr.com/dbek3sy/Qyblrgjfn/jqueryinfintescroll.js"></script>
  140. <script type="text/javascript">
  141. $(window).load(function () {
  142. var $content = $('#content');
  143. $content.masonry({itemSelector: '.entry'}),
  144. $content.infinitescroll({
  145. navSelector : 'div#pagination',
  146. nextSelector : 'div#pagination a#nextPage',
  147. itemSelector : '.entry',
  148. loading: {
  149. finishedMsg: '',
  150. img: 'http://static.tumblr.com/dbek3sy/pX1lrx8xv/ajax-loader.gif'
  151. },
  152. bufferPx : 600,
  153. debug : false,
  154. },
  155. // call masonry as a callback.
  156. function( newElements ) {
  157. var $newElems = $( newElements );
  158. $newElems.hide();
  159. // ensure that images load before adding to masonry layout
  160. $newElems.imagesLoaded(function(){
  161. $content.masonry( 'appended', $newElems, true, function(){$newElems.fadeIn(300);}
  162.  
  163. );});});});</script>
  164. {/block:IndexPage}
  165.  
  166. <!------Styling and Customization------------------------------------>
  167.  
  168. <style type="text/css">
  169.  
  170. .ttitle {
  171. background: #fff;
  172. padding: 5px;
  173. font-size: 12px;
  174. }
  175.  
  176. ::-webkit-scrollbar {width: 3px; height: 0px; background:{color:scrollbar};}
  177. ::-webkit-scrollbar-thumb {background: {color:scrollbar}; border-radius:10px;}
  178.  
  179. iframe#tumblr_controls {position:fixed; z-index:9999999999; top: 3px; margin: 0 0 0 0;
  180.  
  181. right:4px; -webkit-filter: invert(100%);}
  182.  
  183.  
  184. body {
  185. background-color: {color:background};
  186. background-image:url({image:Background});
  187. background-attachment: fixed;
  188. background-repeat: repeat;
  189. font-size:11px;
  190. font-family:arial;
  191. line-height:14px;
  192. text-transform:none;
  193. color: {color:text};
  194. }
  195.  
  196. #header{
  197. font-family:arial;
  198. position:absolute;
  199. top:0px;
  200. padding-top:7px;
  201. padding-bottom:12px;
  202. width:700px;
  203. align:center;
  204. left:50%;
  205. width:100%;
  206. left:0px;
  207. margin-left:15px;
  208. text-align:left;
  209. background-image:url('{image:header}');
  210. background-color:transparent;
  211. z-index:999;
  212. }
  213.  
  214. #nav{
  215.  
  216. text-transform:none;
  217. }
  218.  
  219. #nav a{
  220. font-size:11px;
  221. line-height:23px;
  222. text-transform:none;
  223. display:inline;
  224. font-weight:300;
  225. -moz-transition: all 0.4s ease-in-out;
  226. -webkit-transition: all 0.4s ease-in-out;
  227. -o-transition: all 0.4s ease-in-out;
  228. -ms-transition: all 0.4s ease-in-out;
  229. transition: all 0.4s ease-in-out;
  230. }
  231.  
  232. .speclink{
  233. word-spacing:1px;
  234. }
  235.  
  236. .answer{
  237. }
  238. .answer img {
  239. width:230px;
  240. height:auto;
  241. {block:permalinkpage}
  242. width:auto;
  243. height:auto;
  244. {/block:permalinkpage}
  245. }
  246.  
  247. a {
  248. text-decoration:none;
  249. color:{color:link};
  250. -webkit-transition: all 0.4s linear;
  251. -moz-transition: all 0.4s linear;
  252. transition: all 0.4s linear;
  253. }
  254.  
  255. a:link, a:active, a:visited{
  256. color: {color:link};
  257. }
  258.  
  259. a:hover{
  260. color: {color:link hover};
  261. }
  262.  
  263. #content {
  264. position: absolute;
  265. width:700px;
  266. margin-left:-270px;
  267. left:50%;
  268. margin-top:-50px;
  269. float:center;
  270. height:auto;
  271. }
  272.  
  273. .entry{
  274. margin:15px;
  275. float:left;
  276. height:auto;
  277. padding-top:10px;
  278. padding-left:10px;
  279. padding-right:10px;
  280. padding-bottom:7px;
  281. border:1px double {color:post border color};
  282. {block:ifpostbackground}
  283. background-color: {color:post background};
  284. {/block:ifpostbackground}
  285. {block:IndexPage}
  286. width:240px;
  287. {/block:IndexPage}
  288. {block:PermalinkPage}
  289. margin-left:65px;
  290. width:500px;
  291. height:auto;
  292. {/block:PermalinkPage}
  293. }
  294.  
  295.  
  296. .entry img{
  297. {block:IndexPage}
  298. width:240px;
  299. {block:iffourcolumns}
  300. width:210px;
  301. {/block:iffourcolumns}
  302. {block:ifthreecolumns}
  303. width:210px;
  304. {/block:ifthreecolumns}
  305. {/block:IndexPage}
  306. }
  307.  
  308. .title{
  309. font-family:arial;
  310. {block:iftitlefontone}
  311. font-family: Lobster Two;
  312. {/block:iftitlefontone}
  313. {block:iftitlefonttwo}
  314. font-family: satisfy;
  315. {/block:iftitlefonttwo}
  316. {block:iftitlefontthree}
  317. font-family: handlee;
  318. {/block:iftitlefontthree}
  319. font-size:11px;
  320. line-height:18px;
  321. text-transform:none;
  322. color: {color:text};
  323. }
  324.  
  325. blockquote{
  326. padding:0px 0px 0px 10px;
  327. margin:0px 0px 0px 2px;
  328. border-left: 1px solid #000;
  329. }
  330.  
  331. .creditstothistheme{
  332. font-family:
  333. this is a stahrfruits theme
  334. and you should probably abide
  335. by the rules because if i see
  336. this on your theme ill know
  337. its mine and ill report you if
  338. there isnt a credit;
  339. }
  340.  
  341. .perma{
  342. position:absolute;
  343. top:15px;
  344. left:7px;
  345. text-transform:uppercase;
  346. text-align:center;
  347. line-height:40px;
  348. overflow:hidden;
  349. overflow:hidden;
  350. opacity: 0;
  351. -webkit-transition: all 0.2s linear;
  352. -webkit-transition: all 0.2s linear;
  353. -moz-transition: all 0.2s linear;
  354. transition: all 0.2s linear;
  355. }
  356.  
  357. .perma img{
  358. border-radius:100%;
  359. margin-left:3px;
  360. height:35px;
  361. width:35px;
  362. }
  363.  
  364. .entry:hover .perma{
  365. opacity:1;
  366. top:10px;
  367. -webkit-transition: all 0.2s linear;
  368. -webkit-transition: all 0.2s linear;
  369. -moz-transition: all 0.2s linear;
  370. transition: all 0.2s linear;
  371. }
  372.  
  373. .my-like {
  374. background-image: url("http://static.tumblr.com/j1tjexd/aeQmam5ia/like1.png") !
  375.  
  376. important;
  377. height:35px;
  378. width:35px;
  379. cursor:pointer;
  380. display:inline-block;
  381. vertical-align:top;
  382. border-radius:100%;
  383. margin-left:3px;
  384. }
  385.  
  386. .my-like img{
  387. height:35px;
  388. width:35px;
  389. }
  390.  
  391. .my-liked, .my-like:hover {
  392. background-image: url("http://static.tumblr.com/j1tjexd/5YOmanh18/like2.png") !
  393.  
  394. important;
  395. height:35px;
  396. width:35px;
  397. cursor:pointer;
  398. display:inline-block;
  399. vertical-align:top;
  400. border-radius:100%;
  401. margin-left:3px;
  402. }
  403.  
  404. .entry:hover .permalink{
  405. line-height:10px;
  406. opacity:1;
  407. -webkit-transition: all 0.4s linear;
  408. -webkit-transition: all 0.4s linear;
  409. -moz-transition: all 0.4s linear;
  410. transition: all 0.4s linear;
  411. }
  412.  
  413. .permalink{
  414. font-family:arial;
  415. font-size:10px;
  416. line-height:0;
  417. text-transform:uppercase;
  418. text-align:center;
  419. opacity:0;
  420. -webkit-transition: all 0.4s linear;
  421. -webkit-transition: all 0.4s linear;
  422. -moz-transition: all 0.4s linear;
  423. transition: all 0.4s linear;
  424. }
  425.  
  426. .notess{
  427. position:absolute;
  428. left:600px;
  429. top:10px;
  430. height:400px;
  431. width:500px;
  432. overflow:scroll;
  433. }
  434.  
  435. .answerimg img{
  436. position:relative;
  437. top:5px;
  438. left:0px;
  439. height:30px;
  440. width:30px;
  441. border:1px solid #ccc;
  442. margin:2px;
  443. padding:3px;
  444. }
  445.  
  446. #description{
  447. font-family:arial;
  448. margin-left:10px;
  449. margin-top:-5px;
  450. width:200px;
  451. height:auto;
  452. }
  453.  
  454. {CustomCSS}
  455. </style>
  456. </head>
  457.  
  458. <!------Blog Appearance---------------------------------------------->
  459.  
  460. <body onkeydown="return false">
  461.  
  462.  
  463. <!------Header Links------------------------------------------------->
  464.  
  465. <header id="header">
  466. <span id="nav"><i>
  467. <a href="/">{Title}</a> &nbsp;/&nbsp;
  468. <a href="{text:ask link}">{text:message}</a> &nbsp;/&nbsp;
  469. <a href="/archive">{text:archive}</a> &nbsp;/&nbsp;
  470. <a href="http://stahrfruits.tumblr.com/">©</a>
  471. </i></span>
  472. </header><br><br>
  473.  
  474. <!------Description-------------------------------------------------->
  475.  
  476. <div id="description">
  477. {Description}
  478. </div>
  479.  
  480. <!------Blog Posts--------------------------------------------------->
  481.  
  482. <div id="content">
  483. {block:Posts}
  484.  
  485. {block:ContentSource}
  486. <!-- {SourceURL}{block:SourceLogo}<img src="{BlackLogoURL}"
  487. width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />
  488. {/block:SourceLogo}
  489. {block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo} -->
  490. {/block:ContentSource}
  491.  
  492. <div class="entry">
  493.  
  494. {block:Text}
  495. {block:Title}<center><span class="title">{Title}</span></center>{/block:Title}<div
  496.  
  497. class="answer">
  498. <div style="margin-left:1px;">{Body}</div></div>
  499. <div class="permalink"><a href="{ReblogUrl}">Purchase</a>&nbsp;for&nbsp;<a
  500.  
  501. href="{permalink}">${NoteCount}</a></div>
  502. {/block:Text}
  503.  
  504. {block:Link}
  505. <center><a href="{URL}"><span class="title">{Name}</span></a></center>
  506. <div style="margin-left:3px;">{block:Description}{Description}{/block:Description}</div>
  507. <div class="permalink"><a href="{ReblogUrl}">{text:reblog}</a>&nbsp;with&nbsp;<a
  508.  
  509. href="{permalink}">{NoteCountwithLabel}</a></div>
  510. {block:Link}
  511.  
  512. {block:Photo}
  513. {block:IndexPage}{LinkOpenTag}<div class="photo"><a href="{permalink}"><img
  514.  
  515. src="{PhotoURL-500}" alt="{PhotoAlt}" /></a></div>{LinkCloseTag}
  516. <div class="perma">
  517. <a href="{reblogurl}"><img
  518.  
  519. src="http://static.tumblr.com/j1tjexd/nGmmam5hg/reblog.png"></a>
  520. <div class="my-like" data-reblog="{ReblogURL}" data-id="{PostID}"></div>
  521. </div>
  522. {/block:IndexPage}{block:PermalinkPage}{LinkOpenTag}<img src="{PhotoURL-500}"
  523.  
  524. alt="{PhotoAlt}"width=450px/>{LinkCloseTag}{/block:PermalinkPage}
  525. {/block:Photo}
  526.  
  527. {block:Photoset}
  528. <center>
  529. {block:IndexPage}{Photoset-250}{/block:IndexPage}
  530. {block:PermalinkPage}{Photoset-500}{/block:PermalinkPage}
  531. </center>
  532. <div class="permalink"><a href="{ReblogUrl}">{text:reblog}</a>&nbsp;with&nbsp;<a
  533.  
  534. href="{permalink}">{NoteCountwithLabel}</a></div>
  535. {/block:IndexPage}
  536. {/block:Photoset}
  537.  
  538. {block:Quote}
  539. <div style="margin-left:3px;">
  540. <span class="title">{Quote}</span><br>{Source}
  541. </div>
  542. <div class="permalink"><a href="{ReblogUrl}">{text:reblog}</a>&nbsp;with&nbsp;<a
  543.  
  544. href="{permalink}">{NoteCountwithLabel}</a></div>
  545. {/block:Quote}
  546.  
  547. {block:Chat}
  548. <div style="margin-left:3px;">
  549. {block:Title}<span class="title">{Title}</span>{/block:Title}
  550. <ul class="chat">
  551. {block:Lines}
  552. <li class="user_{UserNumber}">
  553. {block:Label}
  554. <span class="label">{Label}</span>
  555. {/block:Label}
  556. {Line}
  557. </li>
  558. {/block:Lines}
  559. </ul>
  560. </div>
  561. <div class="permalink"><a href="{ReblogUrl}">{text:reblog}</a>&nbsp;with&nbsp;<a
  562.  
  563. href="{permalink}">{NoteCountwithLabel}</a></div>
  564. {/block:Chat}
  565.  
  566. {block:Audio}<div style="height:0px;background-
  567.  
  568. color:black;opacity:0.1;width:100%;margin-top:10px;margin-bottom:5px;"></div>
  569. <center>{AudioPlayerBlack}
  570. {block:Caption}{Caption}{/block:Caption}</center>
  571. <div class="permalink"><a href="{ReblogUrl}">{text:reblog}</a>&nbsp;with&nbsp;<a
  572.  
  573. href="{permalink}">{NoteCountwithLabel}</a></div>
  574. {/block:Audio}
  575.  
  576. {block:Answer}<span class="answerimg"><p align="right"><img src="{AskerPortraitURL-30}"
  577.  
  578. align="right"></p></span> {Asker} inquired: <i>{Question}</i><div class="answer">
  579.  
  580. {Answer}</div>
  581. <div class="permalink"><a href="{ReblogUrl}">{text:reblog}</a>&nbsp;for&nbsp;<a
  582.  
  583. href="{permalink}">${NoteCount}</a></div>
  584. {/block:Answer}
  585.  
  586. {block:Video}
  587. {block:IndexPage}
  588. <center>
  589. {Video-250}</center>
  590. <div class="permalink"><a href="{ReblogUrl}">{text:reblog}</a>&nbsp;with&nbsp;<a
  591.  
  592. href="{permalink}">{NoteCountwithLabel}</a></div>
  593. {/block:IndexPage}
  594. {block:PermalinkPage}
  595. <center>
  596. {Video-500}</center>
  597. {/block:PermalinkPage}
  598. {block:Video}
  599.  
  600. {block:PermalinkPage}
  601. {block:HasTags} &middot; {block:Tags}<a href="TagURL"> #{Tag}</a> {/block:Tags}
  602.  
  603. {/block:hasTags}
  604. {/block:PermalinkPage}
  605.  
  606. {block:PostNotes}
  607. <div class="notess">{block:Caption}{Caption}{/block:Caption}
  608. {block:NoteCount}{NoteCountWithLabel}{/block:NoteCount}
  609. <br>{PostNotes}</div>
  610. {/block:PostNotes}
  611. </div>
  612.  
  613. {/block:Posts}
  614.  
  615. {block:IndexPage}
  616. {block:Pagination}
  617. <div id="pagination">
  618. {block:NextPage}
  619. <a id="nextPage" href="{NextPage}"></a>
  620. {/block:NextPage}
  621. {block:PreviousPage}
  622. <a href="{PreviousPage}"></a>
  623. {/block:PreviousPage}
  624. </div>
  625. {/block:Pagination}
  626. {/block:IndexPage}
  627. </div>
  628.  
  629. <script>
  630. window.onload = function () {
  631. document.body.insertAdjacentHTML( 'beforeEnd', '<iframe id="my-like-frame"
  632.  
  633. style="display:none;"></iframe>' );
  634. document.addEventListener( 'click', function ( event ) {
  635. var myLikeLink = event.target;
  636. if( myLikeLink.className.indexOf( 'my-like' ) > -1 ) {
  637. var myLikeFrame = document.getElementById( 'my-like-frame' ),
  638. liked = ( myLikeLink.className == 'my-liked' ),
  639. command = liked ? 'unlike' : 'like',
  640. reblog = myLikeLink.getAttribute( 'data-reblog' ),
  641. postId = myLikeLink.getAttribute( 'data-id' ),
  642. oauth = reblog.slice( -8 ),
  643. likeUrl = 'http://www.tumblr.com/' + command + '/' + oauth + '?id=' + postId;
  644. myLikeFrame.src = likeUrl;
  645. liked ? myLikeLink.className = 'my-like'
  646. : myLikeLink.className = 'my-liked';
  647. };
  648. }, false );
  649. };
  650. </script>
  651.  
  652. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement