Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <link rel="shortcut icon" href="{Favicon}" />
- <link rel="alternate" type="application/rss+xml" href="{RSS}" />
- <title>{Title}</title>
- {block:Description}
- <meta name="description" content="{MetaDescription}" />
- {/block:Description}
- {NewPostStyles}
- <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
- <link rel="stylesheet" type="text/css" href="https://assets.tumblr.com/fonts/favorit/stylesheet.css?v=1">
- <!--
- THEME BY BRU
- icons by phosphoricons, cappuccicons
- scrollbar by shythemes
- tumblr controls, masonry by maziekeen
- -->
- {block:Options}
- <meta name="image:background" content="" />
- <meta name="image:sidebar" content="" />
- <meta name="image:menu icon" content=""/>
- <meta name="color:background" content="#f8f8f8" />
- <meta name="color:borders" content="#d9d9d9"/>
- <meta name="color:posts" content="#fff" />
- <meta name="color:text" content="#222" />
- <meta name="color:links" content="#222" />
- <meta name="color:hover" content="" />
- <meta name="text:DesktopTitle" content="Write your description title here.">
- <meta name="text:DesktopDesc" content="Write your description here.">
- <meta name="text:Link 1" content="" />
- <meta name="text:Link 1 Title" content="link 1"/>
- <meta name="text:Link 2" content="" />
- <meta name="text:Link 2 Title" content="link 2"/>
- <meta name="text:Link 3" content="" />
- <meta name="text:Link 3 Title" content="link 3"/>
- <meta name="text:Link 4" content="" />
- <meta name="text:Link 4 Title" content="link 4"/>
- <meta name="text:Link 5" content="" />
- <meta name="text:Link 5 Title" content="link 5"/>
- {/block:Options}
- <!--- SCRIPTS --->
- <script src="//cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
- <script type="text/javascript" src="https://static.tumblr.com/7qjmkr5/IUmmdsy41/jquery.style-my-tooltips.js"></script>
- <script>
- (function($){
- $(document).ready(function(){
- $("[title]").style_my_tooltips();
- });
- })(jQuery);
- </script>
- <!---- FONTS --->
- <link rel="preconnect" href="https://fonts.googleapis.com">
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
- <link href="https://fonts.googleapis.com/css2?family=Dela+Gothic+One&family=Inter&family=Kanit&family=Nunito+Sans&family=Poppins&display=swap" rel="stylesheet">
- <script src="https://cdn.jsdelivr.net/npm/@phosphor-icons/[email protected]"></script>
- <script src="//pull.cappuccicons.com/cpf.js"></script>
- <script src="//cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js"></script>
- <link rel="stylesheet" media="screen" href="//assets.tumblr.com/client/prod/standalone/blog-network-npf/index.build.css">
- <!--
- NPF images fix v3.0 by @glenthemes [2021]
- ð git.io/JRBt7
- --->
- <script src="//npf-images-v3.github.io/script.js"></script>
- <link rel="stylesheet" href="//npf-images-v3.github.io/recon.css">
- <style tmblr-npf>
- :root {
- --NPF-Caption-Spacing:1em;
- --NPF-Image-Spacing:4px;
- }
- </style>
- <style>
- /* Theme Options */
- :root {
- --background-image: url({image:background});
- --background-color: {color:background};
- --spacing: 1rem;
- --posts: {color:posts};
- --accent: {AccentColor};
- --text: {color:text};
- --links: {color:links};
- --title-font: {TitleFont}
- --header-image: url({HeaderImage});
- }
- * {
- box-sizing:border-box;
- }
- body {
- margin: 0;
- background-color: var(--background-color);
- background-image: var(--background-image);
- {block:iffullbackground}
- background-size: cover;
- {/block:iffullbackground}
- background-attachment: fixed;
- font-family: 'Inter', sans-serif;
- word-wrap: break-word;
- font-size: 13.5px;
- color:{color:text};
- }
- .flex {
- display: flex;
- flex-wrap: wrap;
- }
- .centered {
- align-items: center;
- justify-content: center;
- }
- .align-center {
- align-items: center;
- }
- .justify-center {
- justify-content: center;
- }
- /* SCROLLBAR */
- ::-webkit-scrollbar {
- width:0px;
- height:0px;
- }
- ::-webkit-scrollbar {
- background-color:rgb(255,255,255); /* background color */
- }
- ::-webkit-scrollbar-track {
- border:8px solid rgb(255,255,255); /* background color */
- background-color:rgb(230,230,230); /* light border color */
- }
- ::-webkit-scrollbar-thumb {
- border:8px solid rgb(255,255,255); /* background color */
- background-color:rgb(144,144,144); /* dark border color */
- min-height:0px;
- min-width:0px;
- }
- /* ----- TUMBLR CONTROLS ---- */
- .controls-button {
- position: fixed;
- cursor: help;
- top: 20px;
- right: 2rem;
- z-index: 1000;
- cursor: pointer;
- right:1.5rem;
- color:{color:text};
- font-size:15px;
- }
- .tmblr-iframe {
- z-index: 999999999!important;
- opacity: 0;
- visibility: hidden;
- width:30px;
- -webkit-transition: all 0.5s;
- -moz-transition: all 0.5s;
- -ms-transition: all 0.5s;
- -o-transition: all 0.5s;
- transition: all 0.5s;
- }
- body.controls-click .tmblr-iframe {
- opacity: 1;
- margin-right: 4rem;
- display:inline;
- vertical-align:bottom;
- visibility: visible;
- -webkit-transition: all 0.5s;
- -moz-transition: all 0.5s;
- -ms-transition: all 0.5s;
- -o-transition: all 0.5s;
- transition: all 0.5s;
- }
- .tmblr-iframe-compact .tmblr-iframe--unified-controls {z-index: 999999999!important;}
- /* --- TOOLTIPS --*/
- #s-m-t-tooltip {
- z-index: 9999;
- background: #fff;
- font-size: 13px;
- padding:10px;
- font-family:'Poppins', sans-serif;
- line-height: 13px;
- letter-spacing: 1px;
- border-radius:5%;
- background-color:{color:hover};
- color:{color:text};
- moz-border-radius-bottomright: 5px;
- border-bottom-right-radius: 5px;
- -moz-border-radius-topleft: 5px;
- border-top-left-radius: 5px;
- -moz-border-radius-bottomleft: 5px;
- border-bottom-left-radius: 5px;
- -moz-border-radius-topright: 5px;
- border-top-right-radius: 5px;
- -o-transition: all 0.3s ease-out;
- -webkit-transition: all 0.3s ease-out;
- -moz-transition: all 0.3s ease-out;
- text-transform: normal
- max-width: 150px;
- word-wrap: break-word;
- display: block;
- margin: 24px 14px 7px 12px;
- }
- .topmenu {
- background:{color:posts};
- padding:10px;
- width:100%;
- position:fixed;
- z-index:99999!important;
- height:50px;
- }
- .title {
- text-transform:normal;
- font-weight:400;
- font-size:15px;
- text-align:left;
- font-family: 'Dela Gothic One', sans-serif;
- margin-right:10px;
- }
- .title a {
- color:{color:links};
- }
- .title a:hover{
- color:{color:hover};
- }
- .topmenu img {
- margin-left:10px;
- margin-right:10px;
- border-radius:5px;
- vertical-align:middle;
- width:30px!important;
- height:30px!important;
- }
- .sr-text {
- border: 0;
- clip: rect(1px, 1px, 1px, 1px);
- clip-path: inset(50%);
- height: 1px;
- margin: -1px;
- overflow: hidden;
- padding: 0;
- position: absolute;
- width: 1px;
- word-wrap: normal !important;
- }
- .sidebar {
- align-items:center;
- position: fixed;
- top: {text:post margin}px;
- text-align: center;
- margin-top:190px;
- width:350px;
- padding:10px;
- margin-left:280px;
- border-radius:10px;
- background:{color:posts};
- border:1px solid {color:borders};
- }
- .sidebar img {
- max-width:300px;
- border-radius:10px;
- margin-bottom:10px;
- margin-top:10px;
- }
- .desctitle {
- text-transform:normal;
- font-weight:600;
- font-size:15px;
- text-align:center;
- font-family: 'Kanit', sans-serif;
- margin-right:10px;
- color:{color:links};
- }
- .description {
- font-size:14px;
- text-align:center;
- margin-bottom:20px;
- margin-top:10px;
- width:300px;
- margin-left:10px;
- margin-right:10px;
- }
- nav {
- max-width:300px!important;
- text-align:center;
- font-size:17px;
- margin-left:10px;
- margin-right:10px;
- margin-top:15px;
- font-weight:600;
- margin-bottom:10px;
- }
- nav a {
- padding:10px;
- -webkit-transition: all 0.3s;
- -moz-transition: all 0.3s;
- -ms-transition: all 0.3s;
- -o-transition: all 0.3s;
- transition: all 0.3s;
- }
- nav a:hover {
- background:{color:hover};
- border-radius:10px;
- -webkit-transition: all 0.3s;
- -moz-transition: all 0.3s;
- -ms-transition: all 0.3s;
- -o-transition: all 0.3s;
- transition: all 0.3s;
- color:{color:text};
- }
- a {
- color:{color:links};
- -webkit-transition: all 0.3s;
- -moz-transition: all 0.3s;
- -ms-transition: all 0.3s;
- -o-transition: all 0.3s;
- transition: all 0.3s;
- }
- a:hover {
- color:{color:hover};
- border-radius:10px;
- -webkit-transition: all 0.3s;
- -moz-transition: all 0.3s;
- -ms-transition: all 0.3s;
- -o-transition: all 0.3s;
- transition: all 0.3s;
- }
- main {
- width: 100%;
- margin: auto;
- margin-left:350px;
- max-width: 1230px;
- justify-content: space-around;
- align-items: flex-start;
- }
- section {
- width: calc(100% - 540px);
- margin-left:80px;
- margin-top:50px;
- }
- article {
- margin-left:420px;
- }
- article .info,
- .npf-link-block,
- article .answer,
- .tags,
- .reblog-header,
- article .quote,
- article .question,
- article .replies,
- article .source,
- .pagination,
- article h1,
- article h2 {
- padding: var(--spacing);
- }
- .info { font-family: 'Poppins', sans-serif; font-size:14px;}
- .info a {margin-right:10px;}
- article .question,
- article .answer {
- margin: var(--spacing);
- border-radius: .2rem;
- border: 1px solid {color:borders};
- }
- a.asker {
- font-weight:bold;
- }
- .ask-icon {
- display: inline-block;
- vertical-align: middle;
- width: 3.5em;
- height: 3.5em;
- border-radius:5px;
- margin-right: 1em;
- padding:5px;
- }
- .tags {
- padding-top: 0;
- font-size:14px;
- }
- .tags a {
- padding:1.5px;
- }
- a.pinned-post {
- font-weight: bold;
- color: {color:links};
- vertical-align:middle;
- }
- .spotify_audio_player,
- article iframe[src*='soundcloud'] {
- max-height: calc(170px + var(--spacing));
- border: 0;
- padding: var(--spacing);
- padding-bottom: 0;
- }
- .npf-link-block {
- margin: var(--spacing) !important;
- }
- article .caption p {
- padding: var(--spacing);
- padding-bottom: 0;
- margin: 0;
- margin-bottom:20px;
- }
- .caption {
- border-bottom:1px solid {color:Borders};
- }
- .reblog-content {
- white-space: pre-wrap;
- }
- .caption:last-child p,
- .reblog-content p:last-of-type {
- padding-bottom: var(--spacing);
- }
- .reblog-header img {
- max-width: 30px;
- margin-right: .4rem;
- border-radius: .2rem;
- }
- .reblog-header:is(:not(.original)) {
- border-top: 1px solid {color:borders};
- }
- .reblog-header,
- .reblog-content {
- padding-bottom: 0;
- border-bottom:1px solid {color:borders};
- }
- .reblog-header a {
- font-weight:600;
- margin-bottom:10px;
- }
- p:empty {
- display: none;
- }
- article .info {
- justify-content: space-between;
- font-family: 'Kanit', sans-serif;
- text-transform:uppercase;
- }
- .pagination {
- justify-content: space-around;
- }
- article .info a {
- color: var(--info-text);
- }
- article h1 {
- margin: 0;
- font-size: 2rem;
- }
- article,
- .pagination {
- max-width: 540px;
- background: var(--posts);
- width: 100%;
- border: 1px solid {color:borders};
- border-radius: 10px;
- margin: calc(var(--spacing) * 4) auto;
- }
- article {
- padding:10px;
- }
- ol.notes li {
- padding: 10px;
- }
- ol.notes img {
- display: none;
- }
- article img {
- display: block;
- }
- article iframe,
- article img {
- max-width: 100%;
- }
- a {
- text-decoration: none;
- color: var(--links);
- }
- blockquote {
- padding: var(--spacing);
- border-left: 2px solid {color:borders};
- }
- blockquote p {
- padding: 0!important;
- }
- .tmblr-full>.audio-caption .album-cover {
- width:70px;
- height:70px;
- border-radius:5px;
- margin-bottom:10px;
- }
- /*---- CREDIT -----*/
- #credit {
- position: fixed;
- bottom: 20px;
- right: 20px;
- font-size: 20px;
- }
- #credit a:hover {
- background:{color:hover};
- border-radius:10px;
- -webkit-transition: all 0.3s;
- -moz-transition: all 0.3s;
- -ms-transition: all 0.3s;
- -o-transition: all 0.3s;
- transition: all 0.3s;
- color:{color:text};
- }
- @media only screen and (max-width: 1100px) {
- section {
- width: 100%;
- }
- article {
- margin: 100px auto;
- }
- .sidebar {
- display:none;
- }
- }
- {CustomCSS}
- </style>
- </head>
- <body class="{block:homepage}home{/block:homepage}{block:tagpage}tag{/block:tagpage}{block:searchpage}search{/block:searchpage}{block:submitpage}submit-{/block:submitpage}{block:AskPage}ask{/block:AskPage}-page">
- <div class="topmenu">
- <div class="title"><img src="{image:menu icon}"> <a href="/">{Title}</a></div>
- <div title="Tumblr Controls" class="controls-button"><i class="cp cp-more"></i></div>
- </div>
- <div class="sidebar">
- <img src="{image:sidebar}">
- <div class="desctitle">{text:DesktopTitle}</div>
- <div class="description">
- {text:DesktopDesc}
- </div>
- <nav>
- <a href="/" title="home"><i class="cp cp-home-o"></i></a>
- <a href="/ask" title="inbox"><i class="cp cp-chat-o"></i></a>
- <a href="{text:Link 1}" title="{text:Link 1 Title}"><i class="cp cp-compass-o
- "></i></a>
- <a href="{text:Link 2}" title="{text:Link 2 Title}"><i class="cp cp-ghost-o"></i></a>
- <a href="{text:Link 3}" title="{text:Link 3 Title}"><i class="cp cp-heart-o"></i></a>
- <a href="{text:Link 4}" title="{text:Link 4 Title}"><i class="cp cp-pikachu"></i></a>
- <a href="{text:Link 5}" title="{text:Link 5 Title}"><i class="cp cp-rainbow-o"></i></a>
- </nav>
- </div>
- <!-- main container -->
- <main class="flex">
- <!-- posts -->
- <section>
- {block:Posts}
- <article id="post-{PostID}" class="{posttype}-post posts">
- {block:Photo}
- <div class="legacy-photo"><img src="{PhotoURL-HighRes}" alt="{photoalt}" class="photos"></div>
- {/block:Photo}
- {block:Photoset}
- <div class="legacy-photoset">{Photoset}</div>
- {/block:Photoset}
- {block:Panorama}
- <div class="legacy-photo"><img src="{photourl-panorama}" alt="{photoalt}"></div>
- {/block:Panorama}
- <!-- quote posts -->
- {block:Quote}
- <div class="quote">
- "{Quote}"
- </div>
- <div class="source">
- -{Source}
- </div>
- {/block:Quote}
- <!-- chat posts -->
- {block:Chat}
- <ul class="chat">
- {block:Lines}
- <li>
- {block:Label}{Label}{/block:Label}
- {Line}
- </li>
- {/block:Lines}
- </ul>
- {/block:Chat}
- {block:link}
- <div class="npf-link-block">
- <a href="{URL}">
- {Name}
- </a>
- </div>
- {/block:link}
- {block:Video}
- {Video-500}
- {/block:Video}
- {block:Audio}
- {audioembed}
- {/block:Audio}
- {block:Answer}
- <div class="question">
- <img src="{AskerPortraitURL-64}" class="ask-icon" style="border-radius:100%;">
- {Asker} asked: {Question}
- </div>
- {block:Answerer}
- <div class="answer">
- {Answerer} answered: {Answer}
- </div>
- {/block:Answerer}
- {block:NotReblog}
- <div class="replies">
- {Replies}
- </div>
- {/block:NotReblog}
- {/block:Answer}
- <div class="caption {block:notreblog} original-post {/block:notreblog}">
- {block:Text}
- {block:Title}<h2>{Title}</h2>{/block:Title}
- {/block:Text}
- {block:notreblog}
- {block:caption}{Caption}{/block:caption}
- {block:Text}{body}{/block:Text}
- {/block:notreblog}
- {block:Rebloggedfrom}
- {block:Reblogs}
- <div class="reblogs">
- <div class="reblog-header {block:IsOriginalEntry}original{/block:IsOriginalEntry} flex align-center">
- <a href="{permalink}" target="_blank"><img src="{PortraitURL-64}" alt="{username}'s avatar"></a>
- <a href="{permalink}" target="_blank" {block:isdeactivated}class="inactive"{/block:isdeactivated}>
- {username}
- </a>
- </div>
- <div class="reblog-content">
- {Body}
- </div>
- </div>
- {/block:Reblogs}
- {/block:RebloggedFrom}
- </div>
- {block:Date}
- <div class="info flex align-center">
- <div class="perma-info">
- {block:PinnedPostLabel}<a href="{Permalink}" class="pinned-post" title="{PinnedPostLabel}"><i class="ph ph-push-pin" style="font-size:14px;"></i></a> {/block:PinnedPostLabel}
- <a href="/day/{Year}/{MonthNumberWithZero}/{dayofmonthwithzero}" title="{TimeAgo}">{ShortMonth} {DayofMonth}, {Year} </a>
- <a href="{permalink}" title="{NoteCountWithLabel}"> {NoteCount} </a>
- {block:permalinkpage}
- {block:RebloggedFrom}
- <a href="{reblogparenturl}" title="reblogged from">
- <i class="ph ph-caret-left"></i>
- </a>
- <a href="{reblogrooturl}" title="original poster">
- <i class="ph ph-user-focus"></i>
- </a>
- {/block:RebloggedFrom}
- {/block:permalinkpage}
- </div>
- </div>
- {/block:Date}
- {block:Hastags}
- <div class="tags">
- {block:Tags}
- <a href="{TagURL}">#{Tag}</a>
- {/block:Tags}
- </div>
- {/block:Hastags}
- {PostNotes}
- </article>
- {/block:Posts}
- {block:Pagination}
- <div class="pagination flex centered">
- {block:previouspage}
- <a href="{previouspage}">Prev</a>
- {/block:previouspage}
- {block:nextpage}
- <a href="{nextpage}">Next</a>
- {/block:nextpage}
- </div>
- {/block:pagination}
- </section>
- </main>
- <!----- CREDIT ----->
- <a href="https://geminicodes.tumblr.com" title="by bru" id="credit"><i class="ph ph-moon"></i></a>
- <!-- masonry navigation -->
- <script src="https://static.tumblr.com/0siu224/Ljlqmh1nv/masonry.pkgd.min.js"></script>
- <script type="text/javascript">
- // masonry navigation
- var elements = document.getElementsByClassName('masonry-navigation');
- var msnry;
- var nElements = elements.length;
- for(var i = 0; i < nElements; i++){
- msnry = new Masonry( elements[i], {
- // columnWidth: 268,
- gutter: 10,
- itemSelector: '.masonry-navigation-item',
- });
- }
- </script>
- </body>
- <!--- TUMBLR CONTROLS -->
- <script src=â//ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.jsâ></script>
- <script>
- $('.controls-button').click(function(){
- $('body').toggleClass('controls-click');
- });
- </script>
- <script>
- // remove empty p tags
- for (const p of document.querySelectorAll('p')) {
- if (p.innerHTML.trim() === '') {
- p.remove()
- }
- }
- // create posts array
- let posts = []
- {block:Posts}
- posts.push({ npf: JSON.parse({JSNPF}), id: {JSPostId}})
- {/block:Posts}
- //function for updating post types
- function updateTypes(type, article) {
- article.classList.remove('text-post')
- article.classList.add(`${ type }-post`, 'npf-post')
- }
- // loop through array to get each post
- for (const post of posts) {
- let npf = post.npf
- let article = document.getElementById(`post-${post.id}`)
- // select captions that have something in them
- let caption = article.querySelector('.caption:is(:not(:empty))')
- if (caption != null && article.classList.contains('text-post')) {
- // if content exists
- if (npf.trail.length || npf.content.length) {
- // assign various post types based on NPF data
- switch (npf.trail[0]?.content[0]?.type ?? npf.content[0].type) {
- case 'image':
- updateTypes('photos', article)
- if (article.querySelector('.npf_row') == null) {
- caption.prepend(article.querySelector('figure'))
- }
- break
- case 'video':
- updateTypes('video', article)
- let video = article.querySelector('figure')
- caption.prepend(video)
- break
- case 'link':
- updateTypes('link', article)
- case 'audio':
- updateTypes('audio', article)
- break
- case 'quote':
- updateTypes('quote', article)
- }
- // if there are photos
- if (article.classList.contains('photos-post')) {
- let photoset = document.createElement('div')
- photoset.classList.add('npf-photos')
- caption.prepend(photoset)
- // find where a photoset would be split up by another content block
- let photoBreak = article.querySelector('.reblog-content p, .reblog-content h1, .reblog-content h2')
- let elements = []
- if (photoBreak) {
- let prevElement = photoBreak.parentNode.firstElementChild
- while (prevElement !== photoBreak) {
- elements.push(prevElement)
- prevElement = prevElement.nextElementSibling
- }
- }
- // if there is nothing that breaks up the photoset, select all rows
- else {
- elements = article.querySelectorAll('.npf_row')
- }
- // move each row to the top
- for (const el of elements) {
- photoset.append(el)
- }
- if (article.querySelectorAll('.npf_row').length > 1) {
- updateTypes('photoset', article)
- }
- else {
- updateTypes('photo', article)
- }
- }
- // clean up any potential stray reblog headers
- let reblogHeader = article.querySelector('.reblog-header')
- let reblogContent = article.querySelector('.reblog-content')
- if (reblogHeader?.nextElementSibling === reblogContent && reblogContent?.childElementCount === 0) {
- reblogHeader.remove()
- reblogContent.remove()
- }
- }
- }
- }
- </script>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement