Advertisement
str-wrs

Hypnos

Dec 20th, 2014
3,802
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.13 KB | None | 0 0
  1. <!--
  2.  
  3. THEME: HYPNOS
  4. by acuite
  5.  
  6. - don't steal this pls
  7. - enjoy, ilu (ノ◕ヮ◕)ノ*:・゚✧
  8. - @acuite for more themes
  9.  
  10. -->
  11.  
  12. <html lang="en">
  13. <head>
  14.  
  15. <title>{Title}</title>
  16. <link rel="shortcut icon" href="{Favicon}">
  17. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  18. {block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
  19.  
  20. <meta name="image:Sidebar" content=""/>
  21.  
  22. <meta name="if:Paginate" content="1"/>
  23. <meta name="if:Title" content="1"/>
  24. <meta name="if:Image" content="1"/>
  25. <meta name="if:Caption" content="1"/>
  26. <meta name="if:Tags" content="1"/>
  27. <meta name="if:Shadow" content="1"/>
  28. <meta name="if:Border" content="1"/>
  29.  
  30. <meta name="color:Background" content="#f7f7f7"/>
  31. <meta name="color:Post" content="#fff"/>
  32. <meta name="color:Border" content="#eee"/>
  33. <meta name="color:Text" content="#555"/>
  34. <meta name="color:Link" content="#999"/>
  35. <meta name="color:Hover" content="#222"/>
  36.  
  37. <meta name="text:Post" content="350"/>
  38. <meta name="text:Sidebar" content="120"/>
  39. <meta name="text:Margin" content="100"/>
  40. <meta name="text:Photoset Margin" content="2"/>
  41.  
  42. <meta name="text:Link 1" content="/"/>
  43. <meta name="text:Link 1 Title" content="one"/>
  44. <meta name="text:Link 2" content="/" />
  45. <meta name="text:Link 2 Title" content="two"/>
  46. <meta name="text:Link 3" content="/" />
  47. <meta name="text:Link 3 Title" content="three"/>
  48.  
  49. <link href="http://static.tumblr.com/qudkd6d/OcDnl99gb/style.css" rel="stylesheet" type="text/css"/>
  50. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
  51. <link href='https://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,700italic,400,600,700' rel='stylesheet' type='text/css'>
  52. <style type="text/css">
  53.  
  54. ::-webkit-scrollbar {width:7px;height:7px;background:{color:Background};}
  55.  
  56. /* General */
  57.  
  58. body {
  59. margin:0px;
  60. background:{color:Background};
  61. font-family:'Open Sans',Helvetica,Arial,sans-serif;
  62. font-size:9px;
  63. color:{color:Text};
  64. font-smooth:always;
  65. -webkit-font-smoothing:antialiased;
  66. -moz-osx-font-smoothing: grayscale;
  67. }
  68.  
  69. a:link, a:active, a:visited {text-decoration:none;}
  70. a {
  71. transition:0.5s ease;
  72. -o-transition:0.5s ease;
  73. -moz-transition:0.5s ease;
  74. -webkit-transition:0.5s ease;
  75. }
  76.  
  77. /* Containers */
  78.  
  79. .c {position:fixed;bottom:30px;right:30px;}
  80. .pag a,.cp {margin:0px 5px;}
  81. .pag {position:relative;margin-top:100px;text-align:center;}
  82. {block:ifnotPaginate}
  83. .pag,#infscr-loading {display:none!important;}
  84. {/block:ifnotPaginate}
  85.  
  86. #center {
  87. position:relative;
  88. margin:{text:Margin}px auto;
  89. width:{text:Post}px;
  90. }
  91.  
  92. .entry img {max-width:100%;}
  93. .entry {width:{text:Post}px;margin:{text:Margin}px 0px;}
  94.  
  95. /* Sidebar */
  96.  
  97. #sidebar {
  98. position:fixed;
  99. width:{text:Sidebar}px;
  100. padding:0px 5px;
  101. margin-left:calc(-{text:Sidebar}px + -{text:Margin}px + -10px);
  102. }
  103.  
  104. /* Sidebar */
  105.  
  106. .desc {margin:15px 0px;}
  107. .image {padding:6px;}
  108. .image img{width:100%;}
  109. .links a:hover {padding-left:16px;}
  110. .links a:first-child {{block:ifnotImage}border:none;{block:ifnotImage}}
  111. .links a {
  112. display:block;
  113. padding:6px 8px;
  114. border-top:1px solid {color:Border};
  115. }
  116.  
  117. /* Titles */
  118.  
  119. h1,h2,.qut {font-size:11px;font-weight:400;letter-spacing:0.5px;}
  120. h1 {
  121. margin:0px 0px 15px;
  122. text-align:right;
  123. letter-spacing:1.5px;
  124. }
  125.  
  126. h2 {margin:10px;}
  127. .src {text-align:right;}
  128. .qut {padding:15px;font-style:italic;}
  129.  
  130. /* Permalinks */
  131.  
  132. .pp span {margin:0px 3px;}
  133. .pta a{margin-right:5px;}
  134. .pta {margin-top:3px;letter-spacing:0.5px;text-transform:none;}
  135. .pp {
  136. padding:10px;
  137. border-top:1px solid {color:Border};
  138. }
  139.  
  140. /* Audio & Chat */
  141.  
  142. .lines:last-child{border:none;}
  143. .lines{padding:10px;border-bottom:1px solid {color:Border};}
  144. .lines b {display:block;}
  145.  
  146. .play {
  147. float:left;
  148. padding:10px;
  149. background:#e4e4e4;
  150. margin-right:15px;
  151. border-radius:5px;
  152. height:27px;
  153. }
  154.  
  155. .audio {height:47px;}
  156. .au {padding:5px;}
  157. .au span{display:block;margin:4px 0px;}
  158. .tumblr_audio_player {width:27px;height:27px;overflow:hidden;}
  159.  
  160. /* Ask */
  161.  
  162. .ask h2 {margin:0px 0px 10px;}
  163. .ask{
  164. padding:15px;
  165. border-bottom:1px solid {color:Border};
  166. }
  167.  
  168. /* Text */
  169.  
  170. pre, small, sub, sup, big {font-size:9px;}
  171. p,blockquote {margin:10px;}
  172. ul {list-style-type:square;}
  173. blockquote p{margin:0px;padding:10px 0px;}
  174. blockquote p:first-child{padding:0px 0px 10px;}
  175. blockquote p:last-child{padding:10px 0px 0px;}
  176. blockquote p:only-child{padding:0px;}
  177. blockquote{margin:10px;padding:0px 10px;border-left:1px solid {color:Border};}
  178. pre {
  179. white-space:pre-wrap;
  180. white-space:-moz-pre-wrap;
  181. white-space:-pre-wrap;
  182. white-space:-o-pre-wrap;
  183. word-wrap:break-word;
  184. }
  185.  
  186. /* Captions */
  187.  
  188. .cap {margin:-10px 0px 0px;padding:10px;}
  189. .txt {padding:10px;}
  190. .bx,.chat,.audio {padding:10px;}
  191.  
  192. /* Video */
  193.  
  194. .video iframe,
  195. .video #youtube_iframe,
  196. .video .tumblr_video_container,
  197. .video .tumblr_video_container iframe {
  198. display:block;
  199. max-width:100%;
  200. max-height:{text:Post}px;
  201. }
  202.  
  203. .video #youtube_iframe {max-height:calc({text:Post}px * 0.67);}
  204. .tumblr_video_container {width:auto!important;height:auto!important;}
  205.  
  206. /* Postnotes */
  207.  
  208. .pn img {display:none;}
  209. .pn ol {margin:0;padding:0;}
  210. .pn li {list-style-type:none;margin:3px;}
  211. .pn {padding:12px;font-size:8px;letter-spacing:0.5px;display:none;}
  212. .pn,.perma{border-top:1px solid {color:Border};}
  213. .pnh {display:block;font-weight:600;}
  214. .perma a,.perma span{margin-right:5px;}
  215. .perma {
  216. padding:10px;
  217. line-height:180%;
  218. text-transform:lowercase;
  219. }
  220.  
  221. /* Tooltips */
  222.  
  223. #s-m-t-tooltip {
  224. max-width:300px;
  225. margin:15px;
  226. z-index:9999;
  227. padding:5px;
  228. font-size:8px;
  229. }
  230.  
  231. /* Photosets */
  232.  
  233. #vignette,#tumblr_lightbox_caption {visibility:hidden;}
  234. #tumblr_lightbox {background:{color:Background}!important;}
  235. #tumblr_lightbox_left_image,
  236. #tumblr_lightbox_right_image {opacity:0.5!important;}
  237. #tumblr_lightbox_center_image,
  238. #tumblr_lightbox_left_image,
  239. #tumblr_lightbox_right_image {
  240. box-shadow:none!important;
  241. border-radius:0px!important;
  242. }
  243.  
  244. /* Common Styling */
  245.  
  246. a,.ask,.perma,.src,.lines b,.tn {color:{color:Link};}
  247. a:hover {color:{color:Hover};}
  248. p,blockquote,ul,ol,.desc,.ask,.qut {line-height:160%;}
  249.  
  250. .entry,.multi,::-webkit-scrollbar-thumb,#s-m-t-tooltip{
  251. background:{color:Post};
  252. {block:ifBorder}border:1px solid {color:Border};{/block:ifBorder}
  253. {block:ifShadow}
  254. box-shadow:rgba(0,0,0,0.04)3px 3px 4px;
  255. {/block:ifShadow}
  256. }
  257.  
  258. .pp,.links,.c,.lines b,.tn,.pag{
  259. font-size:8px;
  260. letter-spacing:1px;
  261. text-transform:uppercase;
  262. }
  263.  
  264. .c,.lines b,.pag {font-weight:600;}
  265.  
  266. /* Etc */
  267.  
  268. .notes img {width:0px;}
  269. img {display:block;}
  270.  
  271. </style>
  272. </head>
  273. <body>
  274.  
  275. <div id="center">
  276. <div id="sidebar">
  277. {block:ifTitle}<h1>{Title}</h1>{/block:ifTitle}
  278. <div class="multi">
  279. {block:ifImage}<div class="image"><a href="/"><img src="{image:Sidebar}"/></a></div>{/block:ifImage}
  280. <div class="links">
  281. <a href="/">index</a>
  282. <a href="/ask">message</a>
  283. {block:ifLink1}
  284. <a href="{text:Link 1}">{text:Link 1 Title}</a>
  285. {/block:ifLink1}{block:ifLink2}
  286. <a href="{text:Link 2}">{text:Link 2 Title}</a>
  287. {/block:ifLink2}{block:ifLink3}
  288. <a href="{text:Link 3}">{text:Link 3 Title}</a>
  289. {/block:ifLink3}
  290. </div>
  291. </div>
  292. <div class="desc">{Description}</div>
  293. </div>
  294.  
  295. <div id="content">
  296. {block:Posts}
  297. <div class="entry">
  298.  
  299. {block:Text}
  300. <div class="bx">
  301. {block:Title}<h2>{Title}</h2>{/block:Title}{Body}
  302. </div>
  303. {/block:Text}
  304.  
  305. {block:Link}
  306. <div class="bx">
  307. <a title="{URL}" href="{URL}"><h2> {Name} &raquo;</h2></a>
  308. {block:Description}{Description}{/block:Description}
  309. </div>
  310. {/block:Link}
  311.  
  312. {block:Photo}
  313. <div class="bx"><a href="{Permalink}"><img src="{PhotoURL-500}" alt="{PhotoAlt}"/></a></div>
  314.  
  315. {block:ifCaption}{block:Caption}<div class="cap">{Caption}</div>{/block:Caption}{/block:ifCaption}
  316. {/block:Photo}
  317.  
  318. {block:Photoset}
  319. <div class="bx">
  320. <div class="photo-slideshow" id="photoset_{PostID}" data-layout="{PhotosetLayout}">{block:Photos}<div class="photo-data"><div class="pxu-photo"><img src="{PhotoURL-500}" width="{PhotoWidth-500}" height="{PhotoHeight-500}" data-highres="{PhotoURL-HighRes}" data-width="{PhotoWidth-HighRes}" data-height="{PhotoHeight-HighRes}"></div><a class="tumblr-box" rel="post-{PostID}" href="{PhotoURL-HighRes}"></a></div>{/block:Photos}</div>
  321. </div>
  322. {block:ifCaption}{block:Caption}<div class="cap">{Caption}</div>{/block:Caption}{/block:ifCaption}
  323. {/block:Photoset}
  324.  
  325. {block:Quote}
  326. <div class="bx">
  327. <div class="qut">{Quote}</div>
  328. <div class="src">{Source}</div>
  329. </div>
  330. {/block:Quote}
  331.  
  332. {block:Chat}
  333. <div class="chat">
  334. {block:Title}<h2>{Title}</h2>{/block:Title}
  335. {block:Lines}<div class="lines {Alt}"><div class="{Alt} user_{UserNumber}">
  336. {block:Label}<b>{Label}</b> {/block:Label}{Line}</div></div>{/block:Lines}
  337. </div>
  338. {/block:Chat}
  339.  
  340. {block:Audio}
  341. <div class="audio">
  342. {block:AudioPlayer}<div class="play">{AudioPlayerGrey}</div>{/block:AudioPlayer}
  343. <div class="au">
  344. {block:TrackName}<span class="tn">{TrackName}</span>{/block:TrackName}
  345. {block:Artist}<span>by {Artist}</span>{/block:Artist}
  346. </div>
  347. </div>
  348. {/block:Audio}
  349.  
  350. {block:Video}
  351. <div class="video">{Video-500}</div>
  352. {block:ifCaption}{block:Caption}<div class="cap">{Caption}</div>{/block:Caption}{/block:ifCaption}
  353. {/block:Video}
  354.  
  355. {block:Answer}
  356. <div class="ask"><h2>{Asker}:</h2> {Question}</div>
  357. <div class="bx">{Answer}</div>
  358. {/block:Answer}
  359.  
  360. {block:IndexPage}<div class="pp">
  361. <a href="{Permalink}">{NoteCountWithLabel}</a>
  362. <span>{ShortDayOfWeek}, {24HourWithZero}:{Minutes}</span>
  363.  
  364. {block:RebloggedFrom}
  365. <a title="{ReblogParentName}" href="{ReblogParentURL}">via</a> &middot;
  366. <a title="{ReblogRootName}" href="{ReblogRootURL}">origin</a>
  367. {/block:RebloggedFrom}
  368.  
  369. {block:ifTags}{block:HasTags}<div class="pta">
  370. {block:Tags}<a href="{TagURL}">#{Tag}</a> {/block:Tags}
  371. </div>{/block:HasTags}{/block:ifTags}
  372. </div>{/block:IndexPage}
  373.  
  374. {block:PermalinkPage}
  375.  
  376. {block:ifnotCaption}{block:Caption}<div class="cap">{Caption}</div>{/block:Caption}{/block:ifnotCaption}
  377.  
  378. {block:Date}
  379. <div class="perma">
  380. posted {TimeAgo} on {DayofMonthWithSuffix} {Month}
  381. {block:RebloggedFrom}<br>
  382. via: <a href="{ReblogParentURL}">{ReblogParentName}</a>
  383. origin: <a href="{ReblogRootURL}">{ReblogRootName}</a>
  384. {/block:RebloggedFrom}
  385.  
  386. {block:HasTags}<br><span>tagged:</span>
  387. {block:Tags}<a href="{TagURL}">#{Tag}</a> {/block:Tags}
  388. {/block:HasTags}
  389. <a href="#" class="pnh">view {NoteCountWithLabel}</a>
  390.  
  391. </div>
  392. {/block:Date}
  393. {/block:PermalinkPage}
  394.  
  395. {block:PostNotes}
  396. <div class="pn">{PostNotes}</div>
  397. {/block:PostNotes}
  398.  
  399. {block:ContentSource}
  400. <!-- {SourceURL}{block:SourceLogo}<img src="{BlackLogoURL}"
  401. width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />
  402. {/block:SourceLogo}
  403. {block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo} -->
  404. {/block:ContentSource}
  405.  
  406. <!--{block:NoRebloggedFrom}{block:RebloggedFrom}{ReblogParentName}{/block:RebloggedFrom}{/block:NoRebloggedFrom} -->
  407.  
  408. </div>
  409. {/block:Posts}
  410.  
  411. {block:ifPaginate}
  412. {block:Pagination}
  413. <div class="pag">
  414. {block:PreviousPage}
  415. <a href="{PreviousPage}"><i class="fa fa-angle-left"></i> back</a>
  416. {/block:PreviousPage}
  417.  
  418. <span class="cp">{CurrentPage} / {TotalPages}</span>
  419.  
  420. {block:NextPage}
  421. <a href="{NextPage}">next <i class="fa fa-angle-right"></i></a>
  422. {/block:NextPage}
  423. </div>
  424. {/block:Pagination}
  425. {/block:ifPaginate}
  426.  
  427. </div>
  428.  
  429. {block:ifnotPaginate}
  430. {block:Pagination}
  431. <div class="pag">
  432. {block:PreviousPage}
  433. <a href="{PreviousPage}" class="prev">back</a>
  434. {/block:PreviousPage}
  435. {block:NextPage}
  436. <a href="{NextPage}" class="next">next</a>
  437. {/block:NextPage}
  438. </div>
  439. {/block:Pagination}
  440. {/block:ifnotPaginate}
  441.  
  442. </div>
  443.  
  444. <div class="c"><a href="http://acuite.tumblr.com/">acuite</a></div>
  445.  
  446. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  447. <script src="http://static.tumblr.com/qudkd6d/Az6nkemqr/pxuphotoset.min.js"></script>
  448. <script src="http://static.tumblr.com/wgijwsy/u2vm2hxv6/jquery.infinitescroll.min.js"></script>
  449. <script src="http://static.tumblr.com/rzl30kg/eAxm7a751/jquery.style-my-tooltips.js"></script>
  450.  
  451. <script>
  452. $(document).ready(function(){
  453. $('.photo-slideshow').pxuPhotoset({
  454. lightbox: true,
  455. gutter: '{text:Photoset Margin}px',
  456. photoset: '.photo-slideshow',
  457. photoWrap: '.photo-data',
  458. photo: '.pxu-photo',
  459. rounded: false
  460. });
  461. $('.video iframe').each(function(){
  462. var scale = $(this).parents('.video').width() / 500;
  463. $(this).attr({
  464. width: Math.floor($(this).attr('width') * scale),
  465. height: Math.floor($(this).attr('height') * scale)
  466. });
  467. });
  468. var $container = $('#content');
  469. {block:ifnotPaginate}
  470. $container.infinitescroll({
  471. navSelector: '.pag',
  472. nextSelector: '.next',
  473. itemSelector: '.entry',
  474. loadingImg: ' ',
  475. loadingText: ' ',
  476. donetext: 'No more posts' ,
  477. bufferPx: 2000
  478. },
  479. function( newElements ) {
  480. var $newElems = $( newElements );
  481. $newElems.find('.photo-slideshow').pxuPhotoset({
  482. lightbox: true,
  483. gutter: '{text:Photoset Margin}px',
  484. photoset: '.photo-slideshow',
  485. photoWrap: '.photo-data',
  486. photo: '.pxu-photo',
  487. rounded: false
  488. });
  489. },
  490. function( newElements ){
  491. $( newElements ).find('.video iframe').each(function(){
  492. var scale = $(this).parents('.video').width() / 500;
  493. $(this).attr({
  494. width: Math.floor($(this).attr('width') * scale),
  495. height: Math.floor($(this).attr('height') * scale)
  496. });
  497. });
  498. });
  499. {/block:ifnotPaginate}
  500. });
  501.  
  502.  
  503. // minimal soundcloud player © eoxk.tumblr
  504. $(document).ready(function(){
  505. var color = '{color:Link}'; // color of play button (hex)
  506. $('.soundcloud_audio_player').each(function(){
  507. $(this).attr({ src: $(this).attr('src').split('&')[0] + '&amp;liking=false&amp;sharing=false&amp;auto_play=false&amp;show_comments=false&amp;continuous_play=false&amp;buying=false&amp;show_playcount=false&amp;show_artwork=true&amp;origin=tumblr&amp;color=' + color.split('#')[1], height: 20, width: '100%' });
  508. });
  509. });
  510.  
  511.  
  512. // drop links & post notes
  513. $(document).ready(function(){
  514. $(".pn").hide();
  515. $(".pnh").show();$('.pnh').toggle(function(){
  516. $(".pn").slideDown(function(){});
  517. },function(){
  518. $(".pn").slideUp(function(){});
  519. });
  520. $(".lb").hide();
  521. $(".lh").show();$('.lh').toggle(function(){
  522. $(".lb").slideDown(function(){});
  523. },function(){
  524. $(".lb").slideUp(function(){});
  525. });
  526. });
  527.  
  528.  
  529. // tooltips
  530. (function($){
  531. $(document).ready(function(){
  532. $("[title]").style_my_tooltips({
  533. tip_delay_time:200,
  534. tip_fade_speed:300
  535. }
  536. );
  537. });
  538. })(jQuery);
  539.  
  540. </script>
  541. </body>
  542. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement