katsthemes

current theme incase tumblr nerfs me

Apr 28th, 2021
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.29 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html xmlns="https://www.w3.org/1999/xhtml">
  3. <head>
  4. <!--
  5.  
  6.  
  7.  
  8.  
  9.  
  10. base code by shythemes
  11.  
  12.  
  13.  
  14.  
  15. for you:
  16. * tumblr documentation
  17. https://www.tumblr.com/docs/en/custom_themes
  18. * html reference
  19. https://www.w3schools.com/tags/default.asp
  20. * css reference
  21. https://www.w3schools.com/cssref/default.asp
  22.  
  23. credits:
  24. * photosets by pixel union
  25. https://github.com/PixelUnion/Extended-Tumblr-Photoset
  26. * infinite scroll by paul irish
  27. https://www.infinite-scroll.com/
  28.  
  29.  
  30. -->
  31. <title>{Title}</title>
  32. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  33. <link rel="shortcut icon" href="{Favicon}">
  34. {block:Description}<meta name="description" content="{MetaDescription}">{/block:Description}
  35. <link href="https://fonts.googleapis.com/css?family=Lato|Roboto+Mono|Do+Hyeon|Kosugi+Maru|Changa|Cousine|Open-Sans" rel="stylesheet">
  36.  
  37. <meta name="viewport" content="width=device-width, initial-scale=1">
  38. <meta name="image:sidebar" content=""/>
  39. <meta name="color:bg1" content="#ffffff">
  40. <meta name="color:bg2" content="#ffffff">
  41. <meta name="color:sb" content="#ffffff">
  42. <meta name="color:text" content="#3f3f3f">
  43. <meta name="color:accent" content="#9f9f9f">
  44. <meta name="color:border" content="#ededed">
  45. <meta name="color:link" content="#dcdcdc">
  46. <meta name="color:link hover" content="#cbcbcb">
  47. <meta name="color:caption" content="#f9f9f9">
  48. <meta name="color:posts" content="#ffffff">
  49. <meta name="if:show captions" content="1">
  50. <meta name="if:show tags" content="1">
  51. <meta name="if:infinite scroll" content="0">
  52. <meta name="text:home link" content="">
  53. <meta name="text:archive link" content="">
  54. <meta name="text:ask link" content="contact">
  55. <meta name="text:link 1" content="">
  56. <meta name="text:link 1 url" content="">
  57. <meta name="text:link 2" content="">
  58. <meta name="text:link 2 url" content="">
  59. <meta name="text:link 3" content="">
  60. <meta name="text:link 3 url" content="">
  61. <meta name="text:link 4" content="">
  62. <meta name="text:link 4 url" content="">
  63. <meta name="text:link 5" content="">
  64. <meta name="text:link 5 url" content="">
  65. <meta name="text:link 6" content="">
  66. <meta name="text:link 6 url" content="">
  67. <style type="text/css">
  68.  
  69.  
  70. body {
  71. margin:-50px 0 0 0;
  72. font-size:16px;
  73. font-family:Changa, helvetica, sans-serif;
  74. line-height:1.6em;
  75. -moz-osx-font-smoothing:grayscale;
  76. -webkit-font-smoothing:antialiased;
  77. font-smoothing:antialiased;
  78. color:{color:text};
  79. background-image: linear-gradient(to bottom right, {color:bg1}, {color:bg2});
  80. min-height:100vh;
  81. }
  82. a {
  83. color:inherit;
  84. text-decoration:none;
  85. -webkit-transition:all .2s linear;
  86. transition:all .2s linear;
  87. }
  88. small, sub {
  89. font-size:1em;
  90. vertical-align:baseline;
  91. }
  92. blockquote {
  93. padding:.6em .6em .6em 2em;
  94. border-left:1px solid {color:border};
  95. }
  96. blockquote, ol, ul, p, pre {
  97. margin:0 0 .6em;
  98. }
  99. h1, h2, h3, h4, h5, h6 {
  100. margin:0 0 .6em;
  101. font-size:1em;
  102. font-weight:inherit;
  103. }
  104. img {
  105. border:0;
  106. max-width:100%;
  107. height:auto;
  108. display:block;
  109. }
  110. hr {
  111. margin:1em 0;
  112. border:0;
  113. height:1px;
  114. -moz-box-sizing:border-box;
  115. box-sizing:border-box;
  116. background-color:{color:border};
  117. }
  118. .title {
  119. font-size:15px;
  120. font-weight:bold;
  121. }
  122. .accent,
  123. .tumblr_blog {
  124. color:{color:accent};
  125. }
  126. .main {
  127. margin:150px auto;
  128. width:500px;
  129. }
  130. aside img {
  131. width:150px;
  132. max-width:100%;
  133. margin-left: auto;
  134. margin-right: auto;
  135. margin-bottom:10px;
  136. margin-top:0px;
  137. }
  138. aside {
  139. position:fixed;
  140. width:150px;
  141. margin-left:-225px;
  142. /* delete the three lines above if you want a header */
  143. }
  144. nav {
  145. margin:0.6em 0 0;
  146. text-align:center;
  147. color:{color:accent};
  148. }
  149. nav li {
  150. display:inline;
  151. }
  152. .content {
  153. margin:150px 0;
  154. }
  155. .post:hover .tags{
  156. opacity:1;
  157. }
  158. .entry {
  159. position:relative;
  160. margin:0 0 150px;
  161. }
  162. .entry:last-child {
  163. margin-bottom:0;
  164. }
  165. .text {
  166. margin:1em 0 0;
  167. }
  168. .text:last-child,
  169. .text *:last-child {
  170. margin-bottom:0;
  171. }
  172. .date {
  173.  
  174. }
  175. .tags {
  176. {block:IndexPage}{block:ifNotShowTags}display:none;{/block:ifNotShowTags}{/block:IndexPage}
  177. margin-top:0px;
  178. color:{color:accent};
  179. opacity:0;
  180. -webkit-transition:all 0.5s ease-in-out;
  181. -moz-transition:all 0.5s ease-in-out;
  182. -o-transition:all 0.5s ease-in-out;
  183. transition:all 0.5s ease-in-out;
  184. }
  185. .tags .comma:last-of-type {
  186. display:none;
  187. }
  188. .caption {
  189. {block:IndexPage}{block:ifNotShowCaptions}display:none;{/block:ifNotShowCaptions}{/block:IndexPage}
  190. }
  191. .chat {
  192. padding:0;
  193. list-style-type:none;
  194. }
  195. .chat .label {
  196. font-weight:bold;
  197. }
  198. .quote {
  199. font-weight:bold;
  200. }
  201. .media {
  202. position:relative;
  203. display:inline-block;
  204. width:100%;
  205. }
  206. .audio {
  207. position:relative;
  208. display:block;
  209. width:207px;
  210. margin-left: auto;
  211. margin-right: auto;
  212. }
  213. #tumblr_controls {
  214. position:fixed!important;
  215. opacity:.67!important;
  216. -webkit-filter:invert(100%);
  217. -webkit-backface-visibility:hidden;
  218. padding:4px;
  219. }
  220. #sf {background: url('https://64.media.tumblr.com/e73decb61b00ab10fb7d52ed553161ef/328efe1780da2bbd-7a/s75x75_c1/28d779e437cb530bdf6d92856cef84f6e7843e94.png') rgba(172, 117, 238, 0.1) left center no-repeat; border: solid 1px {color:sb}; background-size: 10px 10px; padding-left:40px;}
  221.  
  222. .sfm input {background-color: #fff;
  223. font-size: 10px;
  224. text-transform: none;
  225. margin-top: 20px;
  226. margin-right:-50px;
  227. color: {color:accent};
  228. padding: 4px 8px;
  229. font-family: helvetica, sans-serif;
  230. border:0px solid #999;
  231. }
  232. ol.notes {
  233. padding: 0px;
  234. margin: 25px 0px;
  235. list-style-type: none;
  236. }
  237. ol.notes li.note {
  238. padding: 2px;
  239. }
  240. ol.notes li.note img.avatar {
  241. vertical-align: -4px;
  242. margin-right: 10px;
  243. width: 0px;
  244. height: 0px;
  245. }
  246. ol.notes li.note span.action {
  247. font-weight: normal;
  248. color:{color:text};
  249. }
  250. ol.notes li.note .answer_content {
  251. font-weight: normal;
  252. }
  253. ol.notes li.note blockquote {
  254. border-color: #eee;
  255. padding: 4px 10px;
  256. margin: 10px 0px 0px 25px;
  257. }
  258. ol.notes li.note blockquote a {
  259. text-decoration: none;
  260. }
  261. {block:ifInfiniteScroll}
  262. .pagination,
  263. #infscr-loading {
  264. display:none!important;
  265. }
  266. {/block:ifInfiniteScroll}
  267. </style>
  268. <link href="https://static.tumblr.com/qudkd6d/OcDnl99gb/style.css" rel="stylesheet" type="text/css">
  269. </head>
  270. <body>
  271. <div class="main">
  272. <aside>
  273. <a href="/">
  274. <img src="{image:sidebar}"></a>
  275. <!--
  276. <h1 class="title"><a href="/">{Title}</a></h1>
  277. <p><i>{Description}</i></p>
  278. -->
  279. <nav>
  280. {block:ifHomeLink}<li><a href="/">{text:home link}</a></li>{/block:ifHomeLink}
  281. {block:ifArchiveLink}<li><a href="/archive">{text:archive link}</a></li>{/block:ifArchiveLink}
  282. {block:ifAskLink}<li><a href="/ask">{text:ask link}</a></li>{/block:ifAskLink}
  283. {block:HasPages}{block:Pages}<li><a href="{URL}">{Label}</a></li> {/block:Pages}{/block:HasPages}
  284. {block:ifLink1}<li><a href="{text:link 1 url}">{text:link 1}</a></li>{/block:ifLink1}
  285. {block:ifLink2}<li><a href="{text:link 2 url}">{text:link 2}</a></li>{/block:ifLink2}
  286. {block:ifLink3}<li><a href="{text:link 3 url}">{text:link 3}</a></li>{/block:ifLink3}
  287. {block:ifLink4}<li><a href="{text:link 4 url}">{text:link 4}</a></li>{/block:ifLink4}
  288. {block:ifLink5}<li><a href="{text:link 5 url}">{text:link 5}</a></li>{/block:ifLink5}
  289. {block:ifLink6}<li><a href="{text:link 6 url}">{text:link 6}</a></li>{/block:ifLink6}
  290. </nav>
  291. <form action="/search" method="get" class="sfm" name="theform">
  292. <input type="text" name="q" value="" id="sf"/>
  293. </form>
  294. </aside>
  295. <div class="content">
  296. {block:Posts}
  297. <article class="entry {block:Photo}ph{/block:Photo}{block:Photoset}ph{/block:Photoset}">
  298. <section class="post">
  299. {block:Audio}
  300. <div class="audio">
  301. {block:AlbumArt}<img src="{AlbumArtURL}">{/block:AlbumArt}
  302. {AudioPlayerWhite}
  303. {block:TrackName}{TrackName}<br>{/block:TrackName}
  304. {block:Artist}{Artist}<br>{/block:Artist}
  305. {block:Album}{Album}{/block:Album}
  306. </div>
  307. {/block:Audio}
  308. {block:Photo}
  309. <div class="media">
  310. {LinkOpenTag}
  311. <img src="{PhotoURL-500}">
  312. {LinkCloseTag}
  313. </div>
  314. {/block:Photo}
  315. {block:Photoset}
  316. <div class="media photoset">
  317. <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>
  318. </div>
  319. {/block:Photoset}
  320. {block:Video}
  321. <div class="media video">{Video-500}</div>
  322. {/block:Video}
  323. {block:Answer}
  324. <div class="question">
  325. <div class="sender">{lang:Asker asked}:</div>
  326. <span class="inquiry">{Question}</span>
  327. </div>
  328. <div class="answer text">{Answer}</div>
  329. {/block:Answer}
  330. {block:Chat}
  331. {block:Title}<h1 class="title">{Title}</h1>{/block:Title}
  332. <ul class="chat text">
  333. {block:Lines}
  334. <li class="line">
  335. {block:Label}
  336. <span class="label">{Label}&nbsp; </span>
  337. {/block:Label}
  338. {Line}
  339. </li>
  340. {/block:Lines}
  341. </ul>
  342. {/block:Chat}
  343. {block:Link}
  344. <h1 class="title"><a href="{URL}">{Name}</a></h1>
  345. {block:Description}<div class="text">{Description}</div>{/block:Description}
  346. {/block:Link}
  347. {block:Quote}
  348. <div class="quote text">{Quote}</div>
  349. {block:Source}
  350. <div class="source text">{Source}</div>
  351. {/block:Source}
  352. {/block:Quote}
  353. {block:Text}
  354. {block:Title}<h1 class="title">{Title}</h1>{/block:Title}
  355. <div class="text">{Body}</div>
  356. {/block:Text}
  357. {block:Caption}
  358. <div class="caption text">{Caption}</div>
  359. {/block:Caption}
  360. {block:Date}
  361. <div class="date accent text">
  362. <a class="permalink" href="{Permalink}">{TimeAgo}</a>{block:NoteCount}<i class="comma">, </i><a class="permalink" href="{Permalink}">{NoteCountWithLabel}</a>{/block:NoteCount}{block:ContentSource}<i class="comma">, </i> <a href="{SourceURL}">source</a>{/block:ContentSource}
  363. {block:HasTags}
  364. <div class="tags">{block:Tags}<a href="{TagURL}">{Tag}</a><i class="comma">, </i>{/block:Tags}</div>
  365. {/block:HasTags}
  366. </div>
  367. {/block:Date}
  368.  
  369. {block:PermalinkPage}
  370. {block:NoteCount}
  371. {block:PostNotes}{PostNotes}{/block:PostNotes}
  372. {/block:NoteCount}
  373. {/block:PermalinkPage}
  374.  
  375.  
  376.  
  377.  
  378. </section>
  379. </article>
  380. {/block:Posts}
  381.  
  382. <!-- {block:ContentSource}{SourceURL}{/block:ContentSource}{block:RebloggedFrom}{ReblogRootURL}{ReblogParentURL}{/block:RebloggedFrom} -->
  383. </div>
  384. {block:Pagination}<div class="pagination">{block:PreviousPage}<a class="prev" href="{PreviousPage}">previous</a>{/block:PreviousPage} {block:NextPage}<a class="next" href="{NextPage}">next</a>{/block:NextPage}</div>{/block:Pagination}
  385. </div>
  386. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  387. <script src="https://static.tumblr.com/qudkd6d/Az6nkemqr/pxuphotoset.min.js"></script>
  388. <script src="//static.tumblr.com/fwgzvyf/l6jnyutne/shythemes.vr.js"></script>
  389. {block:IndexPage}
  390. {block:ifInfiniteScroll}
  391. <script src="https://static.tumblr.com/wgijwsy/u2vm2hxv6/jquery.infinitescroll.min.js"></script>
  392. {/block:ifInfiniteScroll}
  393. {/block:IndexPage}
  394. <script>
  395. $(document).ready(function(){
  396. $('.photo-slideshow').pxuPhotoset({
  397. lightbox: true,
  398. rounded: false,
  399. gutter: '1px',
  400. photoset: '.photo-slideshow',
  401. photoWrap: '.photo-data',
  402. photo: '.pxu-photo'
  403. });
  404. var $container = $('.content');
  405. {block:ifInfiniteScroll}
  406. $container.infinitescroll({
  407. itemSelector: '.entry',
  408. navSelector: '.pagination',
  409. nextSelector: '.next',
  410. loadingImg: '',
  411. loadingText: '<em></em>',
  412. bufferPx: 2000
  413. },
  414. function( newElements ) {
  415. var $newElems = $( newElements );
  416. $newElems.find('.photo-slideshow').pxuPhotoset({
  417. lightbox: true,
  418. rounded: false,
  419. gutter: '1px',
  420. photoset: '.photo-slideshow',
  421. photoWrap: '.photo-data',
  422. photo: '.pxu-photo'
  423. });
  424. resizeVideos();
  425. });
  426. {/block:ifInfiniteScroll}
  427. });
  428. </script>
  429. </body>
  430. </html>
Advertisement
Add Comment
Please, Sign In to add comment