Advertisement
enbythemes

themes 02: kiss

May 29th, 2020 (edited)
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.68 KB | None | 0 0
  1. <!--
  2. kiss © xroub.tumblr.com
  3.  
  4. credits:
  5. dashboard style captions base by https://egg.design and https://annasthms.tumblr.com/
  6. feather icons by cole bemis
  7. tumblr controls by https://magnusthemes.tumblr.com/
  8. change (tumblr) audio player color script by https://shudesigns.tumblr.com
  9. video resize and minimal spotify/bandcamp/soundcloud player by https://nouvae.tumblr.com
  10. -->
  11.  
  12. <!DOCTPYE html>
  13. <html>
  14. <head>
  15. <link rel="shortcut icon" href="{Favicon}" />
  16. <link rel="alternate" type="application/rss+xml" href="{RSS}" />
  17. <title>{Title}</title>
  18. {block:Description}
  19. <meta name="description" content="{MetaDescription}" />
  20. {/block:Description}
  21.  
  22. <meta name="image:sidebar" content="">
  23.  
  24. <meta name="color:background" content="#fafafa">
  25. <meta name="color:posts" content="#ffffff">
  26. <meta name="color:links" content="#8c9bfa">
  27. <meta name="color:links hover" content="#fa8c9b">
  28. <meta name="color:bold" content="#fa8c9b">
  29. <meta name="color:borders" content="#eaeaea">
  30. <meta name="color:blockquote border" content="#8c9bfa">
  31. <meta name="color:asks" content="#ffffff">
  32. <meta name="color:audio player" content="#8c9bfa">
  33.  
  34. <meta name="text:google font" content="Open Sans">
  35. <meta name="text:font size" content="12px">
  36. <meta name="text:link one" content="link one">
  37. <meta name="text:link one url" content="/">
  38. <meta name="text:link two" content="link two">
  39. <meta name="text:link two url" content="/">
  40. <meta name="text:link three" content="link three">
  41. <meta name="text:link three url" content="/">
  42. <meta name="text:link four" content="link four">
  43. <meta name="text:link four url" content="/">
  44.  
  45. <meta name="select:sidebar size" content="100px">
  46. <meta name="select:sidebar size" content="150px">
  47. <meta name="select:sidebar size" content="200px">
  48. <meta name="select:sidebar size" content="250px">
  49. <meta name="select:sidebar size" content="300px">
  50.  
  51. <meta name="select:post size" content="400px">
  52. <meta name="select:post size" content="450px">
  53. <meta name="select:post size" content="500px">
  54. <meta name="select:post size" content="540px">
  55.  
  56.  
  57. <!-- scripts -->
  58. <link href="https://fonts.googleapis.com/css?family={text:Google Font}:700,400" rel="stylesheet"><script src="https://unpkg.com/feather-icons"></script><script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  59. <script src="https://rawgit.com/robinpx/tumblr/master/scripts/flexibleFrames/flexibleFrames.min.js"></script>
  60.  
  61. <script>
  62. $(document).ready(function() {
  63. // audio player
  64. var $audio = $('iframe.tumblr_audio_player');
  65. $audio.load(function() {
  66. $(this).contents().find('head').append('<style type="text/css">' +
  67. '.audio-player { background: {color:audio player}; color: #fff !important; }' +
  68. '.audio-player .audio-info .track-artist { color: #fff !important; }' +
  69. '</style>');
  70. });
  71. });
  72. </script>
  73.  
  74. <script>
  75. function flexFrame() {
  76. $(".caption").each(function() {
  77. $(this).find("iframe").wrap("<div class='capframe'></div>"); // wrap iframe
  78. flexibleFrames($(".capframe"));
  79. });
  80. flexibleFrames($(".video"));
  81. }
  82.  
  83. $(document).ready(flexFrame);
  84. </script>
  85.  
  86. <style>
  87. /* html */
  88. body {
  89. margin: 0;
  90. background: {color:background};
  91. font-family: {text:google font};
  92. font-size: {text:font size};
  93. }
  94.  
  95. h1, h2, h3, h4, h5, small, big {
  96. font-size: 1em;
  97. }
  98.  
  99. a {
  100. text-decoration: none;
  101. color: {color:links};
  102. transition: all 0.5s ease;
  103. -webkit-transition: all 0.5s ease;
  104. -moz-transition: all 0.5s ease;
  105. -o-transition: all 0.5s ease;
  106. }
  107.  
  108. a:hover {
  109. color: {color:links hover};
  110. }
  111.  
  112. b, strong {
  113. color: {color:bold};
  114. }
  115.  
  116. blockquote {
  117. margin: 1em 0;
  118. padding-left: 10px;
  119. border-left: 1px solid {color:blockquote border};
  120. }
  121.  
  122. blockquote img {
  123. max-width: 100%;
  124. }
  125.  
  126. /* list styling */
  127. article.posts ol, article.posts ul {
  128. padding: 0 10px 0 15px;
  129. }
  130.  
  131. /* container */
  132. main {
  133. width: calc({select:sidebar size} + {select:post size} + 80px);
  134. margin: 50px auto;
  135. }
  136.  
  137. /* sidebar */
  138. aside {
  139. position: fixed;
  140. width: {select:sidebar size};
  141. }
  142.  
  143. aside img {
  144. width: {select:sidebar size};
  145. }
  146.  
  147. .about {
  148. margin: 10px 0;
  149. }
  150.  
  151. aside ul {
  152. list-style: none;
  153. padding: 0;
  154. }
  155.  
  156. aside .links li {
  157. padding-bottom: 5px;
  158. border-bottom: 1px solid {color:borders};
  159. margin: .5em 0;
  160. }
  161.  
  162. aside .links a:hover {
  163. margin-left: 7px;
  164. }
  165.  
  166. .pagination {
  167. text-align: center;
  168. }
  169.  
  170. aside .pagination svg {
  171. width: 1em;
  172. margin: 0 .3em;
  173. vertical-align: middle;
  174. }
  175.  
  176. /* general posts */
  177. section {
  178. margin-left: calc({select:sidebar size} + 80px);
  179. }
  180.  
  181. .posts {
  182. width: {select:post size};
  183. margin-bottom: 80px;
  184. background: {color:posts};
  185. border: 1px solid {color:borders};
  186. }
  187.  
  188. /* post info */
  189. .postinfo {
  190. padding: 10px;
  191. border-bottom: 1px solid {color:borders};
  192. text-transform: lowercase;
  193. font-size: .9em;
  194. overflow: hidden;
  195. }
  196.  
  197. .postinfo svg {
  198. width: 1em;
  199. vertical-align: middle;
  200. opacity: .7;
  201. }
  202.  
  203. .postinfo a {
  204. margin: 0 .5em;
  205. }
  206.  
  207. .like-reblog {
  208. float: right;
  209. }
  210.  
  211. .like-reblog a {
  212. position: relative;
  213. display: inline-block;
  214. overflow: hidden;
  215. }
  216.  
  217. .like-reblog svg {
  218. opacity: 1;
  219. }
  220.  
  221. .like-reblog .like .liked + svg {
  222. opacity: 1;
  223. }
  224.  
  225. .like-reblog .like .liked + svg path {
  226. fill: #ec5a5a;
  227. }
  228.  
  229. .like-reblog .like .like_button {
  230. position: relative;
  231. }
  232.  
  233. .like-reblog .like .like_button iframe {
  234. position: absolute;
  235. top: 0;
  236. left: 0;
  237. bottom: 0;
  238. right: 0;
  239. z-index: 2;
  240. opacity: 0.000001;
  241. }
  242.  
  243. /* text posts */
  244. .ttl {
  245. font-size: 1.3em;
  246. padding: 0 10px;
  247. margin-top: 10px;
  248. }
  249.  
  250. /* photo posts */
  251. .photo {
  252. max-width: 100%;
  253. }
  254.  
  255. /* quote posts */
  256. .quote {
  257. font-size: 1.3em;
  258. margin-top: 10px;
  259. }
  260.  
  261. .source {
  262. font-style: italic;
  263. margin: 5px 0 0 5px;
  264. }
  265.  
  266. /* chat posts */
  267. .chat {
  268. margin-top: 10px;
  269. list-style: none;
  270. padding: 0;
  271. }
  272.  
  273. .chat li {
  274. padding: 0;
  275. margin: .5em 0 .5em -13px;
  276. }
  277.  
  278. /* link posts */
  279. .link a {
  280. font-size: 1.3em;
  281. }
  282.  
  283. .link a:hover {
  284. margin-left: 7px;
  285. }
  286.  
  287. .link svg {
  288. width: 1em;
  289. vertical-align: middle;
  290. margin-bottom: 2px;
  291. }
  292.  
  293. /* audio posts */
  294. iframe.tumblr_audio_player {
  295. width: 100%;
  296. height: 85px;
  297. }
  298.  
  299. .spotify_audio_player {
  300. height:80px!important;
  301. width:100%!important;
  302. }
  303.  
  304. .bandcamp_audio_player {
  305. height:120px!important;
  306. width:100%!important;
  307. }
  308.  
  309. .soundcloud_audio_player {
  310. height:150px!important;
  311. width:100%!important;
  312. }
  313.  
  314. /* answer posts */
  315. .asker img, .answerer img, .replier img {
  316. width: 18px;
  317. float: left;
  318. margin-right: 6px;
  319. border-radius: 100%;
  320. }
  321.  
  322. .asker, .question {
  323. background: {color:asks};
  324. }
  325.  
  326. .asker, .answer_container, .reply_container {
  327. padding: 10px;
  328. }
  329.  
  330. .reply_container {
  331. border-top: 1px solid {color:borders};
  332. }
  333.  
  334. .question {
  335. padding: 0 10px 10px;
  336. border-bottom: 1px solid {color:borders};
  337. }
  338.  
  339. /* captions */
  340. .caption {
  341. padding: 10px;
  342. }
  343.  
  344. .reblog-header a {
  345. font-weight: bold;
  346. }
  347.  
  348. .inactive:hover:after {
  349. content:'deactivated';
  350. }
  351.  
  352. /* tags */
  353. .tags {
  354. padding: 10px;
  355. border-top: 1px solid {color:borders};
  356. }
  357.  
  358. .tags a {
  359. margin: 0 .5em .5em 0;
  360. }
  361.  
  362. .tags svg {
  363. opacity: .5;
  364. width: .9em;
  365. vertical-align: middle;
  366. margin-right: 3px;
  367. }
  368.  
  369. .iframe-controls--desktop {
  370. position:fixed;
  371. top:0px;
  372. right:0px;
  373. z-index:214748364789123456789;
  374. filter:invert(100%);
  375. -webkit-filter:invert(100%);
  376. -webkit-transform:scale(0.6,0.6);
  377. -webkit-transform-origin: 100% 0%;
  378. -ms-transform-origin:100% 0%;
  379. -ms-transform:scale(0.6,0.6);
  380. transform:scale(0.6,0.6);
  381. transform-origin:100% 0%;
  382. }
  383.  
  384. /*credit */
  385. .crd {
  386. position: fixed;
  387. bottom: 10px;
  388. right: 10px;
  389. background: {color:posts};
  390. padding: .75em;
  391. text-transform: uppercase;
  392. font-size: .9em;
  393. }
  394.  
  395. </style>
  396. </head>
  397.  
  398. <body>
  399. <main>
  400. <aside>
  401. <img src="{image:sidebar}">
  402.  
  403. <div class="about">
  404. <strong>{Title}.</strong> {Description}
  405. </div>
  406.  
  407. <ul class="links">
  408. <li><a href="/">index</a></li>
  409. <li><a href="/ask">message</a></li>
  410. <li><a href="{text:link one url}">{text:link one}</a></li>
  411. <li><a href="{text:link two url}">{text:link two}</a></li>
  412. <li><a href="{text:link three url}">{text:link three}</a></li>
  413. <li><a href="{text:link four url}">{text:link four}</a></li>
  414. </ul>
  415.  
  416. <div class="pagination">
  417. {block:PreviousPage}<a href="{PreviousPage}"><i data-feather="arrow-left"></i></a>{/block:PreviousPage}
  418. {CurrentPage} of {TotalPages}
  419. {block:NextPage}<a href="{NextPage}"><i data-feather="arrow-right"></i></a>{/block:NextPage}
  420. </div>
  421. </aside>
  422.  
  423. <section>
  424. {block:Posts}
  425. <!-- {block:NoRebloggedFrom}
  426. {block:RebloggedFrom}{ReblogParentName}{/block:RebloggedFrom}
  427. {/block:NoRebloggedFrom} -->
  428. {block:ContentSource}<!-- {SourceURL}
  429. {block:SourceLogo}<img src="{BlackLogoURL}"width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />{/block:SourceLogo}
  430. {block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo} -->
  431. {/block:ContentSource}
  432. <article class="{posttype}posts posts" id="{PostID}">
  433.  
  434. {block:Date}
  435. <div class="postinfo">
  436. <i data-feather="calendar"></i> <a href="{Permalink}">{MonthNumberWithZero}.{DayOfMonthWithZero}.{Year}</a>
  437.  
  438. {block:RebloggedFrom}
  439. <i data-feather="compass"></i><a href="{ReblogParentURL}">via</a>
  440. {block:ContentSource}
  441. / <a href="{ReblogRootURL}">src</a>
  442. {/block:ContentSource}
  443. {block:RebloggedFrom}
  444.  
  445. <div class="like-reblog">
  446. <a href="{ReblogURL}" target="_blank" class="reblog"><i data-feather="repeat"></i></a>
  447. <a href="#" class="like">{LikeButton}<i data-feather="heart"></i></a>
  448. </div>
  449. </div>
  450. {/block:Date}
  451.  
  452. <!-- text posts -->
  453. {block:Text}
  454. {block:Title}<div class="ttl">{Title}</div>{/block:Title}
  455.  
  456. {block:NotReblog}
  457. <div class="caption" style="margin-top: -10px">{Body}</div>
  458. {/block:NotReblog}
  459.  
  460. {block:Rebloggedfrom}
  461. <div class="caption">
  462. <div class="reblog-list">
  463. {block:Reblogs}
  464. <div class="reblogs">
  465. <div class="reblog-header">
  466. {block:IsActive}
  467. <a class="{block:isNotOriginalEntry}sub-reblog{/block:isNotOriginalEntry}" href="{Permalink}" target="_blank">
  468. <img src="{PortraitURL-64}" style="width:18px; float:left; margin-right: 6px; border-radius: 100%">
  469. </a>
  470. {/block:IsActive}
  471. {block:IsDeactivated}
  472. <span class="inactive {block:isNotOriginalEntry}sub-reblog{/block:isNotOriginalEntry}">
  473. <img src="{PortraitURL-64}" style="width:18px; float:left; margin-right: 6px; border-radius: 100%">
  474. </span>
  475. {/block:IsDeactivated}
  476. {block:isactive}
  477. <a href="{permalink}">{username}</a>
  478. {/block:isactive}
  479. {block:isdeactivated}
  480. <a href="{permalink}" class="inactive">{username}</a>
  481. {/block:isdeactivated}
  482. </div>
  483. <div class="reblog-content">
  484. {Body}
  485. </div>
  486. </div>
  487. {/block:Reblogs}
  488. </div>
  489. </div>
  490. {/block:RebloggedFrom}
  491. {/block:Text}
  492.  
  493. <!-- photo posts -->
  494. {block:Photo}
  495. <img src="{PhotoURL-HighRes}" alt="{photoalt}" class="photo">
  496. {block:Photo}
  497.  
  498. <!-- photoset posts -->
  499. {block:Photoset}
  500. {Photoset}
  501. {block:Photoset}
  502.  
  503. <!-- panorama posts -->
  504. {block:Panomara}
  505. <img src="{photourl-panorama}" alt="{photoalt}">
  506. {block:Panomara}
  507.  
  508. <!-- quote posts -->
  509. {block:Quote}
  510. <div class="caption" style="margin-top: -10px">
  511. <div class="quote">{Quote}</div>
  512. <div class="source">- {Source}</div>
  513. </div>
  514. {/block:Quote}
  515.  
  516. <!-- chat posts -->
  517. {block:Chat}
  518. <div class="caption">
  519. <ul class="chat">
  520. {block:Lines}
  521. <li><b>{block:Label}{Label}{/block:Label}</b> {Line}</li>
  522. {/block:Lines}
  523. </ul>
  524. </div>
  525. {/block:Chat}
  526.  
  527. <!--Link posts-->
  528. {block:link}
  529. <div class="link">
  530. <div class="caption">
  531. <a href="{URL}">{Name} <i data-feather="chevrons-right"></i></a>
  532. </div>
  533. </div>
  534. {/block:link}
  535.  
  536. <!-- video posts -->
  537. {block:Video}
  538. <div class="video">{Video-500}</div>
  539. {/block:Video}
  540.  
  541. <!-- audio posts-->
  542. {block:Audio}
  543. {AudioEmbed}
  544. {/block:Audio}
  545.  
  546. <!-- answer posts -->
  547. {block:Answer}
  548. <div class="question_container">
  549. <div class="asker">
  550. <img src="{AskerPortraitURL-48}"/>
  551. {Asker}
  552. </div>
  553. <div class="question">{Question}</div>
  554. </div>
  555.  
  556. {block:Answerer}
  557. <div class="answer_container">
  558. <div class="answerer">
  559. <img src="{AnswererPortraitURL-48}"/>
  560. {Answerer}
  561. </div>
  562. <div class="answer_text">{Answer}</div>
  563. </div>
  564. {block:Reblogs}
  565. <div class="reply_container">
  566. <div class="replier">
  567. <img src="{PortraitURL-64}" />
  568. {block:HasPermalink}<a href="{Permalink}">{/block:HasPermalink}{Username}{block:HasPermalink}</a> {/block:HasPermalink}
  569. </div>
  570. <div class="reply">{Body}</div>
  571. </div>
  572. {/block:Reblogs}
  573. {/block:Answerer}
  574.  
  575. {block:NotReblog}
  576. <div class="answer_container">
  577. <div class="answer_text">{Answer}</div>
  578. </div>
  579. {/block:NotReblog}
  580. {/block:Answer}
  581.  
  582. <!-- captions -->
  583. {block:Caption}
  584. <div class="caption">
  585. {block:notreblog}
  586. {Caption}
  587. {/block:notreblog}
  588. {block:Rebloggedfrom}
  589. <div class="reblog-list">
  590. {block:Reblogs}
  591. <div class="reblogs">
  592. <div class="reblog-header">
  593. {block:IsActive}
  594. <a class="{block:isNotOriginalEntry}sub-reblog{/block:isNotOriginalEntry}" href="{Permalink}" target="_blank">
  595. <img src="{PortraitURL-64}" style="width:18px; float:left; margin-right: 6px; border-radius: 100%">
  596. </a>
  597. {/block:IsActive}
  598. {block:IsDeactivated}
  599. <span class=“inactive {block:isNotOriginalEntry} sub-reblog{/block:isNotOriginalEntry}”>
  600. <img src="{PortraitURL-64}" style="width:18px; float:left; margin-right: 6px; border-radius: 100%">
  601. </span>
  602. {/block:IsDeactivated}
  603. {block:isactive}
  604. <a href="{permalink}">{username}</a>
  605. {/block:isactive}
  606. {block:isdeactivated}
  607. <a href="{permalink}" class="inactive">{username}</a>
  608. {/block:isdeactivated}
  609. </div>
  610. <div class="reblog-content">
  611. {Body}
  612. </div>
  613. </div>
  614. {/block:Reblogs}
  615. </div>
  616. {/block:RebloggedFrom}
  617. </div>
  618. {/block:Caption}
  619.  
  620. <!-- tags -->
  621. {block:HasTags}
  622. <div class="tags">
  623. {block:Tags}
  624. <i data-feather="tag"></i><a href="{TagURL}">{Tag}</a>
  625. {block:Tags}
  626. </div>
  627. {/block:HasTags}
  628.  
  629. </article>
  630. {/block:Posts}
  631. </section>
  632.  
  633. </main>
  634. <!-- credit -->
  635. <!-- if you ever want to move my credit, please send me an ask or message to let me know -->
  636. <a class="crd" href="https://enbythemes.tumblr.com" title="code by rou">enby</a>
  637.  
  638. <script>
  639. feather.replace()
  640. </script>
  641. </body>
  642. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement