Advertisement
yLii

Infinite Isotope 53

Jan 18th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.59 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>{Title}</title>
  5.  
  6.  
  7. <script src="http://static.tumblr.com/iuvoef7/bXomx943d/jquery-1.7.1.min.js"></script>
  8.  
  9.  
  10.  
  11.  
  12. <!--don't understand why this script doesn't work -->
  13. <script src="http://static.tumblr.com/iuvoef7/hshmx93xt/jquery.isotope.min.js"></script>
  14.  
  15. <!-- for some reason this one works -->
  16. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.isotope/2.2.2/isotope.pkgd.min.js"></script>
  17.  
  18. <!--cellsbycolumn-->
  19. <script src="https://raw.githubusercontent.com/metafizzy/isotope-cells-by-column/master/cells-by-column.js"></script>
  20.  
  21. <!--cellsbyrow-->
  22. <script src="https://raw.githubusercontent.com/metafizzy/isotope-cells-by-row/master/cells-by-row.js"></script>
  23.  
  24. <!--fitcolumns-->
  25. <script src="https://raw.githubusercontent.com/metafizzy/isotope-fit-columns/master/fit-columns.js"></script>
  26.  
  27. <!--masonryhorizontal-->
  28. <script src="https://raw.githubusercontent.com/metafizzy/isotope-masonry-horizontal/master/masonry-horizontal.js"></script>
  29.  
  30.  
  31. <!--horizontal horiz-->
  32. <script src="https://raw.githubusercontent.com/metafizzy/isotope-horizontal/master/horizontal.js"></script>
  33.  
  34.  
  35.  
  36. <!--infinite scroll -->
  37. <script src="http://static.tumblr.com/iuvoef7/tIEmx9449/jquery.infinitescroll.min.js"></script>
  38.  
  39.  
  40. <!--smooth scrolling-->
  41. <script src="https://cdnjs.cloudflare.com/ajax/libs/smoothscroll/1.4.6/SmoothScroll.min.js"></script>
  42.  
  43. <!--images Loaded
  44. <script src="https://npmcdn.com/imagesloaded@4.1/imagesloaded.pkgd.min.js"></script> -->
  45.  
  46.  
  47.  
  48.  
  49.  
  50. <script>
  51.  
  52. //main function, called isotope
  53.  
  54.  
  55.  
  56.  
  57. var isotope = $(function(){
  58. var $container = $('#content');
  59. var $boxes = $('.box').css('opacity','0');
  60. $container.imagesLoaded(function(){
  61. $boxes.fadeIn()
  62. $container.isotope({
  63. itemSelector : '.box',
  64. layoutMode : '{select:Layout Type}',
  65. masonry: {
  66. gutter: {text:Gutter Width}
  67. }
  68.  
  69. {block:ifMasonryHorizontal}
  70. masonryHorizontal: {
  71. rowHeight: 50
  72. }
  73. {/block:ifMasonryHorizontal}
  74.  
  75. });
  76. setTimeout(function(){
  77. $boxes.css('opacity','1');
  78. }, 1000);
  79. });
  80.  
  81.  
  82.  
  83.  
  84. //infinite scroll and callback
  85.  
  86.  
  87. $container.infinitescroll({
  88. navSelector : '#page_nav',
  89. nextSelector : '#page_nav a',
  90. itemSelector : '.box',
  91. loading: {
  92. finishedMsg: 'You have reached the end of the internet.',
  93. img: 'http://i.imgur.com/qkKy8.gif'
  94. }
  95. },
  96. // call Isotope as a callback
  97. function ( newElements ) {
  98. var $newElems = jQuery( newElements ).hide(); // hide to begin with
  99. $( newElements ).find('.photo-slideshow').pxuPhotoset({
  100. lightbox: true,
  101. rounded: false,
  102. gutter: ' {text:Gutter Width}px',
  103. borderRadius: '0px',
  104. highRes : true,
  105. captions : true,
  106. photoset: '.photo-slideshow',
  107. photoWrap: '.photo-data',
  108. photo: '.pxu-photo'
  109. });
  110. // ensure that images load before adding to masonry layout
  111. $newElems.imagesLoaded(function(){
  112. $newElems.fadeIn(); // fade in when ready
  113. $container.isotope( 'insert', $newElems );
  114.  
  115.  
  116. });
  117. }
  118.  
  119.  
  120. );
  121.  
  122. {block:ifManualInfiniteScroll}
  123. //manual infinite scroll
  124. $(window).unbind('.infscr');
  125. $('.load-more').click(function(){
  126. $container.infinitescroll('retrieve');
  127. return false
  128. });
  129. {/block:ifManualInfiniteScroll}
  130.  
  131.  
  132. }); //ending main function
  133.  
  134.  
  135.  
  136. $(document).ready(isotope);
  137.  
  138. </script>
  139.  
  140. <!--Responsive photosets-->
  141. <link href="https://static.tumblr.com/qudkd6d/OcDnl99gb/style.css" rel="stylesheet" type="text/css"/>
  142. <script src="https://static.tumblr.com/qudkd6d/Az6nkemqr/pxuphotoset.min.js"></script>
  143.  
  144. <script>
  145. $(document).ready(function(){
  146. $('.photo-slideshow').pxuPhotoset({
  147. lightbox: true,
  148. rounded: false,
  149. gutter: ' {text:Gutter Width}px',
  150. borderRadius: '0px',
  151. highRes : true,
  152. captions : true,
  153. photoset: '.photo-slideshow',
  154. photoWrap: '.photo-data',
  155. photo: '.pxu-photo'
  156. });
  157. });
  158. </script>
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166. <meta name="image:Background" content="" />
  167. <meta name="image:Lollipop Background" content="" />
  168. <meta name="image:Quote Background" content="" />
  169. <meta name="image:HeaderBackground" content="" />
  170.  
  171. <meta name="color:Background" content="#ffffff" />
  172. <meta name="color:Lightbox Background" content="#ffffff" />
  173. <meta name="color:Links" content="#ffa9b6" />
  174. <meta name="color:Text highlight" content="#ffa9b6" />
  175. <meta name="color:Hover" content="#b7512e" />
  176. <meta name="color:Scrollbar" content="#fed3f2" />
  177.  
  178. <meta name="font:Header Font" content="Arial" />
  179.  
  180.  
  181.  
  182.  
  183. <meta name="if:Captions" content="0" />
  184. <meta name="if:Fade" content="1" />
  185. <meta name="if:Head Space" content="1" />
  186. <meta name="if:Horizontal" content="0" />
  187. <meta name="if:Infinite Scroll" content="1" />
  188. <meta name="if:Manual Infinite Scroll" content="1" />
  189. <meta name="if:Masonry Horizontal" content="0" />
  190. <meta name="if:Show Avatar" content="1" />
  191. <meta name="if:Sidebar" content="0" />
  192. <meta name="if:Stack Photoset" content="0" />
  193.  
  194.  
  195. <meta name="select:Content Width" content="30%" />
  196. <meta name="select:Content Width" content="40%" />
  197. <meta name="select:Content Width" content="50%" />
  198. <meta name="select:Content Width" content="60%" />
  199. <meta name="select:Content Width" content="70%" />
  200. <meta name="select:Content Width" content="80%" />
  201. <meta name="select:Content Width" content="90%" />
  202. <meta name="select:Content Width" content="100%" />
  203.  
  204.  
  205. <meta name="select:Fade Opacity" content="0.1" />
  206. <meta name="select:Fade Opacity" content="0.2" />
  207. <meta name="select:Fade Opacity" content="0.3" />
  208. <meta name="select:Fade Opacity" content="0.4" />
  209. <meta name="select:Fade Opacity" content="0.5" />
  210. <meta name="select:Fade Opacity" content="0.6" />
  211. <meta name="select:Fade Opacity" content="0.7" />
  212. <meta name="select:Fade Opacity" content="0.8" />
  213. <meta name="select:Fade Opacity" content="0.9" />
  214. <meta name="select:Fade Opacity" content="1.0" />
  215.  
  216. <meta name="select:Float" content="margin:auto" title="Align Center" />
  217. <meta name="select:Float" content="float:left" title="Align Left" />
  218. <meta name="select:Float" content="float:right" title="Align Right" />
  219.  
  220.  
  221.  
  222.  
  223. <meta name="select:SideFloat" content="left" title="Left Sidebar" />
  224. <meta name="select:SideFloat" content="right" title="Right Sidebar" />
  225.  
  226.  
  227. <meta name="select:Layout Type" content="cellsByColumn" title="Cells by Column" />
  228. <meta name="select:Layout Type" content="cellsByRow" title="Cells by Row" />
  229. <meta name="select:Layout Type" content="fitColumns" title="Fit Columns" />
  230. <meta name="select:Layout Type" content="fitRows" title="Fit Rows" />
  231. <meta name="select:Layout Type" content="horiz" title="Horizontal" />
  232. <meta name="select:Layout Type" content="masonry" title="Masonry" />
  233. <meta name="select:Layout Type" content="masonryHorizontal" title="Masonry Horizontal" />
  234. <meta name="select:Layout Type" content="vertical" title="Vertical" />
  235.  
  236.  
  237.  
  238.  
  239. <!--Post Width in relation to Content Width -->
  240. <meta name="select:Post Width" content="25%" />
  241. <meta name="select:Post Width" content="30%" />
  242. <meta name="select:Post Width" content="32%" />
  243. <meta name="select:Post Width" content="32.75%" />
  244. <meta name="select:Post Width" content="33.33%" />
  245. <meta name="select:Post Width" content="40%" />
  246. <meta name="select:Post Width" content="50%" />
  247. <meta name="select:Post Width" content="60%" />
  248. <meta name="select:Post Width" content="70%" />
  249. <meta name="select:Post Width" content="75%" />
  250. <meta name="select:Post Width" content="80%" />
  251. <meta name="select:Post Width" content="90%" />
  252. <meta name="select:Post Width" content="100%" />
  253.  
  254.  
  255. <meta name="text:Header Height" content="100px" />
  256. <meta name="text:Footer Height" content="100px" />
  257. <meta name="text:Header Font" content="Jellyka"/>
  258. <meta name="text:Body Font" content="Lato" />
  259. <meta name="text:Link Font" content="Open Sans" />
  260. <meta name="text:Sidebar Font" content="Lato" />
  261. <meta name="text:Gutter Width" content="0" />
  262.  
  263.  
  264.  
  265. <!--fonts-->
  266. <link href='http://fonts.googleapis.com/css?family={text:Body Font}' rel='stylesheet' type='text/css'>
  267. <link href='http://fonts.googleapis.com/css?family={text:Header Font}' rel='stylesheet' type='text/css'>
  268. <link href='http://fonts.googleapis.com/css?family={text:Link Font}' rel='stylesheet' type='text/css'>
  269.  
  270.  
  271.  
  272.  
  273.  
  274. <link rel="shortcut icon" href="{Favicon}">
  275. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  276. <link href="http://static.tumblr.com/wgijwsy/k1Hm9ei8b/normalize.css" rel="stylesheet" type="text/css" />
  277.  
  278.  
  279.  
  280.  
  281.  
  282. <style type="text/css">
  283. @font-face {font-family:"Accent";src:url('http://static.tumblr.com/m9qxvhq/mc9mhlhm3/accent.ttf');}
  284. @font-face {font-family:"Barkentina";src:url('http://static.tumblr.com/m9qxvhq/CH5mhn23p/barkentina_1.otf');}
  285. @font-face {font-family:"Blake";src:url('http://static.tumblr.com/m9qxvhq/bnRmhedq1/blake2.ttf');}
  286. @font-face {font-family:"Buffet";src:url('http://static.tumblr.com/m9qxvhq/0V2mhl3je/buffet_script.ttf');}
  287.  
  288. @font-face {font-family:"Jellyka";src:url('http://static.tumblr.com/iuvoef7/mNnojgowh/jellyka_bees_antique_handwriting.ttf');}
  289. @font-face {font-family:"Mayo";src:url('http://static.tumblr.com/m9qxvhq/dD6mhcpd0/mayonaise-condensed.otf');}
  290.  
  291.  
  292. @font-face {font-family:"Sachiko";src:url('http://static.tumblr.com/m9qxvhq/UTEmhi6ks/sachiko.ttf');}
  293. @font-face {font-family:"Sugah";src:url('http://static.tumblr.com/m9qxvhq/Dghmhi6ct/frenchsugar.ttf');}
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300. ::-webkit-scrollbar {width: 8px; height: 4px; background: {color:Background}; opacity:0.5;}
  301. ::-webkit-scrollbar-thumb { background-color: {color:Scrollbar}; -webkit-border-radius: 2ex; }
  302. ::-moz-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  303. ::-moz-scrollbar-thumb { background-color: {color:Scrollbar}; -moz-border-radius: 2ex; }
  304. ::-o-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  305. ::-o-scrollbar-thumb { background-color: {color:Scrollbar}; -o-border-radius: 2ex; }
  306.  
  307. {block:PermalinkPage}
  308. ::-webkit-scrollbar {width: 8px; height: 4px; background: {color:Background}; opacity:0.5;}
  309. ::-webkit-scrollbar-thumb { background-color: {color:Background}; -webkit-border-radius: 2ex; }
  310. ::-moz-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  311. ::-moz-scrollbar-thumb { background-color: {color:Background}; -moz-border-radius: 2ex; }
  312. ::-o-scrollbar {width: 8px; height: 4px; background: {color:Background}; }
  313. ::-o-scrollbar-thumb { background-color: {color:Background}; -o-border-radius: 2ex; }
  314. {block:PermalinkPage}
  315.  
  316.  
  317. #tumblr_controls,.tmblr-iframe.tmblr-iframe--desktop-logged-in-controls.iframe-controls--desktop{-webkit-filter: invert(100%); -moz-filter: invert(100%); -o-filter: invert(100%); -ms-filter: invert(100%); filter: invert(100%);opacity:0; -webkit-transition-duration: 0.8s;-moz-transition-duration: 0.8s;transition-duration: 0.8s;}
  318.  
  319.  
  320. #tumblr_controls:hover,.tmblr-iframe.tmblr-iframe--desktop-logged-in-controls.iframe-controls--desktop:hover {opacity:0.5; -webkit-transition-duration: 0.8s;-moz-transition-duration: 0.8s;transition-duration: 0.8s;}
  321.  
  322.  
  323.  
  324. ::selection {background: #d83e5c;color: #fff;}
  325. ::-moz-selection {background: #d83e5c;color: #fff;}
  326.  
  327.  
  328.  
  329.  
  330. html {
  331. width:100%;
  332. }
  333.  
  334.  
  335.  
  336. body {
  337. cursor:url(''), crosshair;
  338. background: {color:Background};
  339. width:100%;
  340. font-family:'{text:Body Font}';
  341.  
  342. {block:IfHorizontal}
  343. height:100vh;
  344. overflow-y:hidden;
  345. position:fixed;
  346. {block:IfHorizontal}
  347.  
  348.  
  349. {block:PermalinkPage}
  350. height:100vh;
  351. overflow:hidden;
  352. {/block:PermalinkPage}
  353.  
  354. }
  355.  
  356.  
  357. #wrapper {
  358. {block:IfHorizontal} overflow-y:hidden; {/block:IfHorizontal}
  359. }
  360.  
  361.  
  362.  
  363. #header{
  364. font-family:{text:Header Font};
  365.  
  366. {block:IfHeadSpace}
  367. margin-top:calc({text:Header Height}/2);
  368. margin-bottom:calc({text:Header Height}/2);
  369. width:100%;
  370. text-align:center;
  371. font-size:50px;
  372. z-index:5;
  373.  
  374. {block:IfHorizontal}
  375. position:fixed;
  376. {/block:IfHorizontal}
  377. {/block:IfHeadSpace}
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384. }
  385.  
  386.  
  387. #content-wrapper {
  388.  
  389. {block:IfNotHorizontal}
  390. width:100%;
  391. {block:IfHeadspace}
  392. min-height:calc(100vh - {text:Header Height});
  393. {/block:IfHeadspace}
  394.  
  395. {block:IfNotHeadspace}
  396. margin-top:30px;
  397. min-height:100vh;
  398. {/block:IfNotHeadspace}
  399. {/block:IfNotHorizontal}
  400.  
  401. {block:IfHorizontal}
  402. left:0;
  403. transform:translateY(50%);
  404. height:100vh;
  405. overflow-y:visible;
  406. {/block:IfHorizontal}
  407.  
  408. }
  409.  
  410. #content {
  411.  
  412. {block:IfNotHorizontal}
  413. width:{select:Content Width};
  414. {select:Float};
  415. {/block:IfNotHorizontal}
  416.  
  417. {block:IfHorizontal}
  418. height:400px;
  419. max-height:100vh;
  420. vertical-align:middle;
  421. overflow-y:visible;
  422. {/block:IfHorizontal}
  423.  
  424.  
  425.  
  426. {block:PermalinkPage}
  427. width:100%;
  428. {/block:PermalinkPage}
  429.  
  430. }
  431.  
  432.  
  433.  
  434.  
  435.  
  436. a, a:hover, a:visited {
  437. cursor:inherit;
  438. text-decoration:none;
  439. color:inherit;
  440. }
  441.  
  442. ul {
  443. list-style-type: none;
  444. }
  445.  
  446.  
  447.  
  448. .title {
  449.  
  450. }
  451.  
  452.  
  453.  
  454. #nav {
  455. float: left;
  456. margin-top: 20px;
  457. position: fixed;
  458. z-index:1000;
  459. right:0px;
  460. margin-right:auto;
  461. position:fixed;
  462. }
  463.  
  464. #nav a {
  465. text-decoration: none;
  466. font-size: 15px;
  467. line-height: 25px;
  468. color: #595959;
  469. }
  470.  
  471. #nav a:hover {
  472. color: #393939;
  473. }
  474.  
  475. #nav a:active {
  476. color: #151515;
  477. }
  478.  
  479.  
  480. .tumblrAutoPager_page_info, .tumblrAutoPager_page_separator {display:none;}
  481. #infscr-loading {display:none;}
  482. .navigation {display:none!important;}
  483.  
  484.  
  485.  
  486. .isotope-item {
  487. z-index: 2;
  488. }
  489.  
  490. .isotope-hidden.isotope-item {
  491. pointer-events: none;
  492. z-index: 1;
  493. }
  494.  
  495. .isotope,
  496. .isotope .isotope-item {
  497. /* change duration value to whatever you like */
  498. -webkit-transition-duration: 0.8s;
  499. -moz-transition-duration: 0.8s;
  500. transition-duration: 0.8s;
  501. }
  502.  
  503. .isotope {
  504. -webkit-transition-property: height, width;
  505. -moz-transition-property: height, width;
  506. transition-property: height, width;
  507. }
  508.  
  509. .isotope .isotope-item {
  510. -webkit-transition-property: -webkit-transform, opacity;
  511. -moz-transition-property: -moz-transform, opacity;
  512. transition-property: transform, opacity;
  513. }
  514.  
  515.  
  516.  
  517. .box {
  518. cursor:inherit;
  519. margin-bottom:{text:Gutter Width}px;
  520. font-family:'{text:Body Font}';
  521. font-size:10px;
  522. {block:IfNotHorizontal}
  523. {block:IfNotMasonryHorizontal}
  524. float: left;
  525. width:{select:Post Width};
  526. {/block:IfNotMasonryHorizontal}
  527.  
  528. {block:IfMasonryHorizontal}
  529. max-width:inherit;
  530. width:auto;
  531. height:100px;
  532. {/block:IfMasonryHorizontal}
  533. {/block:IfNotHorizontal}
  534.  
  535. {block:IfHorizontal}
  536. transform:translateY(-25%);
  537. width:auto; height:auto;
  538. max-width:100vw;
  539. max-height:calc(100vh - {text:Header Height});
  540. {/block:IfHorizontal}
  541.  
  542.  
  543. {block:IfFade}
  544. opacity:{select:Fade Opacity};
  545. -webkit-transition-duration: 0.8s;
  546. -moz-transition-duration: 0.8s;
  547. transition-duration: 0.8s;
  548. {/block:IfFade}
  549.  
  550. }
  551.  
  552.  
  553.  
  554. .box:hover {
  555. {block:IfFade}
  556. opacity:1.0;
  557. -webkit-transition-duration: 0.8s;
  558. -moz-transition-duration: 0.8s;
  559. transition-duration: 0.8s;
  560. {/block:IfFade}
  561. }
  562.  
  563.  
  564. .text {
  565. height: 50vh;
  566. display:block;
  567. text-overflow: ellipsis;
  568. -o-text-overflow: ellipsis;
  569. -ms-text-overflow: ellipsis;
  570. overflow: hidden;
  571. white-space: nowrap;
  572. }
  573.  
  574.  
  575. .permalink-post {
  576. background:yellow;
  577. font-size:1.3vh;
  578. height:calc(100vh - {text:Header Height});
  579. text-align:center;
  580. /* position: relative;
  581. top: 50%;
  582. transform: translateY(-50%); */ /* to vertical align*/
  583.  
  584. }
  585.  
  586. .permalink-post .permalink-text {
  587. height: 100%;
  588. display:block;
  589. text-overflow: ellipsis;
  590. -o-text-overflow: ellipsis;
  591. -ms-text-overflow: ellipsis;
  592. overflow: scroll;
  593. white-space: nowrap;
  594. }
  595.  
  596.  
  597. /* note the :first-chile thing doesn't work even with the img: specifier*/
  598. .permalink-photoset {background:cyan; width:100%; height:100%;}
  599. .permalink-photoset img { transform:translateX(-50%); position:absolute; height:50vh; width:auto; max-width:60vw; overflow-x:visible;
  600. counter-increment:number;
  601. -webkit-transition:opacity .6s ease-in-out;
  602. transition:opacity .6s ease-in-out;
  603. opacity:0; z-index:0;}
  604. .permalink-photoset img:first-child{opacity:1; z-index:1; }
  605. .permalink-photoset img .active {opacity:1; z-index:1; }
  606. .permalink-photoset img #counter { content:counter(number); }
  607.  
  608. .photo {
  609.  
  610. }
  611.  
  612. .photoset{
  613.  
  614. }
  615.  
  616.  
  617.  
  618. {block:IfHorizontal}
  619. {block:ifStackPhotoset}
  620. .photoset-wrap {}
  621. .photoset-wrap img { display: none; width:100%; }
  622. .photoset-wrap img:first-child { display: block; width:100%; }
  623. {/block:ifStackPhotoset}
  624. {/block:IfHorizontal}
  625.  
  626. {block:ifStackPhotoset}
  627. .photoset-wrap {}
  628. .photoset-wrap img { display: none; width:100%; }
  629. .photoset-wrap img:first-child { display: block; width:100%; }
  630. {/block:ifStackPhotoset}
  631.  
  632. .photocount, .photocount a {
  633. right:0px;
  634. bottom:0px;
  635. position:absolute;
  636. font-size:10px;
  637. font-family:;
  638. color:{color:Background};
  639. }
  640.  
  641.  
  642.  
  643.  
  644.  
  645. #vignette, .vignette{opacity:0!important;}.lightbox-caption {color:#000;}
  646. #tumblr_lightbox,.tmblr-lightbox{ background:rgba( {RGBcolor:Lightbox Background}, 0.8)!important;}
  647. #tumblr_lightbox img, .lightbox-image {box-shadow:none!important;border-radius:0px!important;}
  648.  
  649.  
  650.  
  651.  
  652. #footer {
  653. width:100%;
  654. height:{text:Footer Height};
  655. bottom:0px;
  656.  
  657. {block:IfHorizontal}
  658. position:fixed;
  659. {block:IfHorizontal}
  660.  
  661.  
  662.  
  663. }
  664.  
  665.  
  666. .pagination {
  667. z-index:50;
  668. {block:IfNotHorizontal}
  669. margin-top:50px;
  670. margin-bottom:50px;
  671. {/block:IfNotHorizontal}
  672.  
  673. {block:IfHorizontal}
  674.  
  675. margin-top:-75px;
  676.  
  677. {/block:IfHorizontal}
  678.  
  679. }
  680.  
  681.  
  682. .load-more {
  683. font-family:'{text:Link Font}';
  684. left:50vw;
  685. border:0;
  686. padding-top:2vh;
  687. padding-bottom:2vh;
  688. padding-left:10vw;
  689. padding-right:10vw;
  690. background:#f0f0f0;
  691. color:#9f9f9f;
  692. -webkit-transition-duration: 0.8s;
  693. -moz-transition-duration: 0.8s;
  694. transition-duration: 0.8s;
  695.  
  696. }
  697.  
  698.  
  699. .load-more:hover {
  700. background:{color:Links};
  701. color:{color:Background};
  702. -webkit-transition-duration: 0.8s;
  703. -moz-transition-duration: 0.8s;
  704. transition-duration: 0.8s;
  705. }
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714. {block:ifSidebar}
  715. {/block:ifSidebar}
  716. .sidebar {
  717. {select:SideFloat}:calc( (100vw - {select:Content Width})/2 );
  718. margin:auto;
  719. float:{select:SideFloat};
  720. width:calc(100% - {select:Content Width} );
  721. background-color:cyan;
  722.  
  723. }
  724.  
  725.  
  726.  
  727.  
  728. .portrait {
  729. vertical-align:middle;
  730. border-radius:35px;
  731. opacity:0.7;
  732. -webkit-transition-duration: 0.8s;
  733. -moz-transition-duration: 0.8s;
  734. transition-duration: 0.8s;
  735. }
  736.  
  737.  
  738. .portrait:hover {
  739. opacity:1.0;
  740. border-radius:0px;
  741. -webkit-transition-duration: 0.8s;
  742. -moz-transition-duration: 0.8s;
  743. transition-duration: 0.8s;
  744.  
  745.  
  746. }
  747.  
  748.  
  749. .about {
  750. top : calc({text:Header Height}/4.5);
  751. left: 0; right: 0;
  752. margin:auto;
  753. padding-left:3px;
  754. padding-right:3px;
  755. padding-bottom:10px;
  756. background-color: rgba({RGBcolor:Links},0);
  757. border-radius:5px;
  758. width:300px;
  759. {block:IfNotHorizontal}position:absolute;{/block:IfNotHorizontal}
  760. {block:IfHorizontal}position:fixed;{/block:IfHorizontal}
  761. z-index:5;
  762. font-family:Barkentina;
  763. font-size:10px;
  764. color:rgba(255,255,255,0);
  765. -webkit-transition-duration: 0.8s;
  766. -moz-transition-duration: 0.8s;
  767. transition-duration: 0.8s;
  768.  
  769.  
  770.  
  771. }
  772.  
  773. .about img {
  774. margin-top:10px;
  775. margin-bottom:10px;
  776. opacity:{select:Fade Opacity};
  777. }
  778.  
  779.  
  780.  
  781. </style>
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792. </head>
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805. <body>
  806.  
  807.  
  808. <div id="wrapper">
  809.  
  810. {block:IfHeadSpace}
  811. <div id="header">
  812.  
  813. <a href="{BlogURL}" >{Title}</a>
  814.  
  815.  
  816.  
  817. {block:ifShowAvatar}
  818. <center>
  819. <div class="about">
  820. <center>
  821. <img src="{PortraitURL-64}" class="portrait"
  822.  
  823. onmouseover="$(this).parent().parent().css('background-color', 'rgba({RGBcolor:Links},1)'); $(this).parent().parent().css('color', 'rgba(255,255,255,1)');"
  824.  
  825. onmouseout="$(this).parent().parent().css('background-color', 'rgba({RGBcolor:Links},0)'); $(this).parent().parent().css('color', 'rgba(255,255,255,0)'); "
  826.  
  827. />
  828. </center>
  829. This is where I experiment with my pictures :)
  830. </div>
  831. </center>
  832. {/block:ifShowAvatar}
  833.  
  834.  
  835.  
  836. </div>
  837. {/block:IfHeadSpace}
  838.  
  839.  
  840.  
  841.  
  842.  
  843. <div id="content-wrapper">
  844. <div id="content">
  845. {block:Posts}
  846.  
  847. {block:IndexPage}
  848.  
  849. {block:Text}
  850. <div class="box text" style="opacity:0;">
  851. <u><a href="{Permalink}">{Title}</a></u>
  852. {Body}
  853. </div>
  854. {/block:Text}
  855.  
  856.  
  857.  
  858. {block:Photo}
  859.  
  860. <a href="#">
  861. <img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" class="box photo" style="opacity:0;"
  862. onclick="Tumblr.Lightbox.init([{ width: {PhotoWidth-HighRes}, height: {PhotoHeight-HighRes}, low_res: '{PhotoURL-500}', high_res: '{PhotoURL-HighRes}' }]); $('body').toggleClass('tumblr_lightbox_active'); return false" />
  863. </a>
  864. {/block:Photo}
  865.  
  866.  
  867. {block:Photoset}
  868. <div class="box" style="opacity:0;">
  869.  
  870. {block:ifNotStackPhotoset}
  871. <!--preset code to abide by pxu -->
  872. <div class="photo-slideshow" id="photoset_{PostID}" data-layout="{PhotosetLayout}">
  873.  
  874. {block:Photos}
  875. <div class="photo-data">
  876. <div class="pxu-photo">
  877. <img src="{PhotoURL-HighRes}" width="{PhotoWidth-500}" height="{PhotoHeight-500}" data-highres="{PhotoURL-HighRes}" data-width="{PhotoWidth-HighRes}" data-height="{PhotoHeight-HighRes}">
  878. </div>
  879. <a class="tumblr-box" rel="post-{PostID}" href="{PhotoURL-HighRes}">
  880. </a>
  881. </div>
  882. {/block:Photos}
  883. </div>
  884. {block:ifNotStackPhotoset}
  885.  
  886.  
  887.  
  888. {block:ifStackPhotoset}
  889. {block:IndexPage}
  890. <div class="photoset-wrap">
  891. {block:Photos}
  892. <!-- <a href="#"> for some reason loads all images in photoset-->
  893. <img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" onclick="Tumblr.Lightbox.init([{ width: {PhotoWidth-HighRes}, height: {PhotoHeight-HighRes}, low_res: '{PhotoURL-500}', high_res: '{PhotoURL-HighRes}' }]); $('body').toggleClass('tumblr_lightbox_active'); return false" />
  894. <!-- </a> -->
  895.  
  896. {/block:Photos}
  897. <div class="photocount"><a href="{Permalink}">{PhotoCount}</a></div>
  898. </div>
  899. {/block:IndexPage}
  900. {/block:ifStackPhotoset}
  901.  
  902.  
  903.  
  904.  
  905. {block:ifCaptions}
  906. {Caption}
  907. {/block:ifCaptions}
  908.  
  909. </div>
  910. {/block:Photoset}
  911.  
  912. {/block:IndexPage}
  913.  
  914.  
  915.  
  916.  
  917. {block:PermalinkPage}
  918.  
  919.  
  920. <div class="permalink-post">
  921.  
  922. {block:Text}
  923. <div class="permalink-text">
  924. {Title}
  925. {Body}
  926. </div>
  927. {/block:Text}
  928.  
  929. {block:Photo}
  930. <img id ="{PhotoCount}" src="{PhotoURL-HighRes}" style="width:auto; height:100%; margin:auto"/>
  931. {block:Photo}
  932.  
  933. {block:Photoset}
  934. <div class="permalink-photoset" >
  935. {block:Photos}
  936. <img class="active" src="{PhotoURL-HighRes}" alt="{PhotoAlt}"
  937. id="counter"
  938. onClick="
  939.  
  940.  
  941. var $next = $(this).next('img');
  942. $(this).css('opacity','0');
  943. $(this).css('z-index','0');
  944. $next.css('opacity','1');
  945. $next.css('z-index','1');
  946. if ($next.length == 0) {
  947. $(this).parent().find('img:first-child').css('opacity','1');
  948. $(this).parent().find('img:first-child').css('z-index','1');
  949. };"
  950.  
  951.  
  952. />
  953.  
  954.  
  955.  
  956.  
  957.  
  958.  
  959. {/block:Photos}
  960. </div>
  961. <!-- <div style="width:300px; margin:auto;">{Photoset}</div> whole photoset-->
  962.  
  963. {block:Photoset}
  964.  
  965. </div>
  966.  
  967.  
  968. {/block:PermalinkPage}
  969.  
  970.  
  971.  
  972.  
  973. {/block:Posts}
  974. </div> <!--content -->
  975. </div> <!--content wrapper -->
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986. {block:ifSidebar}
  987. {block:IndexPage}
  988. <div class="sidebar">
  989.  
  990. <center><img src="{PortraitURL-64}" class="portrait" /></center>
  991.  
  992. </div>
  993. {block:IndexPage}
  994. {/block:ifSidebar}
  995.  
  996.  
  997.  
  998.  
  999.  
  1000. {block:IfNotHorizontal}
  1001. <div id="footer">
  1002. {/block:IfNotHorizontal}
  1003.  
  1004.  
  1005. <div class="navigation">
  1006. {block:Pagination}
  1007. {block:NextPage}
  1008. <p id="page_nav"><a style="float:right" href="{NextPage}" id="next">Older ?</a>
  1009. {/block:NextPage}
  1010. {block:PreviousPage}
  1011. <a style="float:left" href="{PreviousPage}">? Newer</a></p>
  1012. {/block:PreviousPage}
  1013. {/block:Pagination}
  1014. </div>
  1015.  
  1016. {block:IfManualInfiniteScroll}
  1017. {block:Pagination}
  1018. <div class="pagination">
  1019. <center><button class="load-more" >load more</button></center>
  1020. </div>
  1021. {/block:Pagination}
  1022. {/block:IfManualInfiniteScroll}
  1023.  
  1024. {block:IfNotHorizontal}
  1025. </div>
  1026. {/block:IfNotHorizontal}
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035. {block:PermalinkPage}
  1036. {block:PermalinkPagination}
  1037. {block:PreviousPost} <a href="{PreviousPost}" style="float:right; right:0px; bottom:0px; position:fixed;"> Older </a>{/block:PreviousPost}
  1038. {block:NextPost}<a href="{NextPost}" style="float:left; left:0px; bottom:0px; position:fixed;">Newer</a> {/block:NextPost}
  1039. {/block:PermalinkPagination}
  1040. {block:PermalinkPage}
  1041.  
  1042. </div>
  1043.  
  1044. </div>
  1045.  
  1046.  
  1047.  
  1048.  
  1049. </body>
  1050. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement