Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- theme 02: blue moon // @freddie-mercurys
- credits
- - base code - @seyche
- - icon fonts - https://phosphoricons.com
- - css photosets - @annasthms and @eggdesign
- - npf photoset fix - @glenthemes
- - custom audio player - @annasthms
- - dark mode button inspired by @rstylr
- - tippy.js tooltips - atomiks
- - fade in effect - cory laviska
- - remove tumblr redirects - @magnusthemes
- - responsive iframes - @nouvae
- - custom like and reblog button inspired by @shythemes
- - notecount shortener by @shythemes
- please don't remove credit or take parts of this code :)
- -->
- <!DOCTYPE html>
- <html lang="en" data-theme="light">
- <head>
- <title>{Title} {block:TagPage}/ #{Tag}{/block:TagPage}{block:PostSummary}: {PostSummary}{/block:PostSummary}</title>
- <link rel="shortcut icon" href="{Favicon}">
- <link rel="alternate" type="application/rss+xml" href="{RSS}">
- {block:Description}<meta name="description" content="{MetaDescription}"/>{/block:Description}
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <!-- variables and options -->
- <meta name="image:sidebar" content=""/>
- <meta name="color:background" content="#ffffff"/>
- <meta name="color:secondary background" content="#fbfbfb"/>
- <meta name="color:text" content="#333333"/>
- <meta name="color:link" content="#bbbbbb"/>
- <meta name="color:accent" content="#a1c4d8"/>
- <meta name="color:borders" content="#dddddd"/>
- <meta name="color:dark mode background" content="#212121"/>
- <meta name="color:dark mode secondary background" content="#333333"/>
- <meta name="color:dark mode text" content="#f6f6f6"/>
- <meta name="color:dark mode link" content="#cccccc"/>
- <meta name="color:dark mode accent" content="#d7bdca"/>
- <meta name="color:dark mode borders" content="#444444"/>
- <meta name="select:post width" content="400px" title="400px"/>
- <meta name="select:post width" content="500px" title="500px"/>
- <meta name="select:post width" content="540px" title="540px"/>
- <meta name="select:sidebar position" content="right" title="right"/>
- <meta name="select:sidebar position" content="left" title="left"/>
- <meta name="select:sidebar image size" content="70px" title="small"/>
- <meta name="select:sidebar image size" content="100px" title="large"/>
- <meta name="select:sidebar image shape" content="0%" title="square"/>
- <meta name="select:sidebar image shape" content="0.5em" title="rounded"/>
- <meta name="select:sidebar image shape" content="100%" title="circle"/>
- <meta name="select:sidebar image shape" content="30% 70% 70% 30% / 30% 30% 70% 70%" title="blob"/>
- <meta name="if:rounded corners" content="1"/>
- <meta name="if:hide tags" content="1"/>
- <meta name="if:search bar" content="1"/>
- <meta name="if:updates tab" content="1"/>
- <meta name="text:title" content="blog title"/>
- <meta name="text:description" content="this is where your description goes"/><meta name="text:font" content="Muli"/>
- <meta name="text:font size" content="13"/>
- <meta name="text:post margin" content="150"/>
- <meta name="text:home link" content="home"/>
- <meta name="text:ask link" content="contact"/>
- <meta name="text:archive link" content="archive"/>
- <meta name="text:link 1 URL" content="/"/>
- <meta name="text:link 1" content="link 1"/>
- <meta name="text:link 2 URL" content="/"/>
- <meta name="text:link 2" content="link 2"/>
- <meta name="text:link 3 URL" content="/"/>
- <meta name="text:link 3" content="link 3"/>
- <meta name="text:link 4 URL" content="/"/>
- <meta name="text:link 4" content="link 4"/>
- <meta name="text:updates title" content="update title"/>
- <meta name="text:updates content" content="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur iaculis leo a leo gravida, in dictum velit ultricies. Suspendisse maximus."/>
- <!--jquery-->
- <script src="//cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js"></script>
- <!--google fonts-->
- <link rel="preconnect" href="https://fonts.gstatic.com">
- <link href="https://fonts.googleapis.com/css2?family={text:font}:wght@400;600;700&display=swap" rel="stylesheet">
- <!--icon fonts-->
- <script src="https://unpkg.com/phosphor-icons"></script>
- <!--tooltips-->
- <script src="https://unpkg.com/popper.js@1"></script>
- <script src="https://unpkg.com/tippy.js@5/dist/tippy-bundle.iife.js"></script>
- <link rel="stylesheet" href="https://unpkg.com/tippy.js@5/animations/perspective.css"/>
- <!--photoset fixes-->
- <link href="https://static.tumblr.com/0podkko/xIbplezmo/modified_photosets.css" rel="stylesheet">
- <script src="https://static.tumblr.com/0podkko/jfMplm3f8/modified_photosets.js"></script>
- <!--
- 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:2em;
- --NPF-Image-Spacing:4px;
- }
- </style>
- <link rel="stylesheet" media="screen" href="//assets.tumblr.com/client/prod/standalone/blog-network-npf/index.build.css">
- <!-- responsive iframes -->
- <script src="https://rawgit.com/robinpx/tumblr/master/scripts/flexibleFrames/flexibleFrames.min.js"></script>
- <!--custom audio player-->
- <script src="https://cdn.jsdelivr.net/gh/annasthms/customaudio@latest/customaudio.min.js"></script>
- <!--smooth scroll-->
- <script src="https://cdnjs.cloudflare.com/ajax/libs/smoothscroll/1.4.10/SmoothScroll.min.js" integrity="sha512-HaoDYc3PGduguBWOSToNc0AWGHBi2Y432Ssp3wNIdlOzrunCtB2qq6FrhtPbo+PlbvRbyi86dr5VQx61eg/daQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
- <script>const storedTheme = localStorage.getItem("theme") || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
- if (storedTheme) document.documentElement.setAttribute("data-theme", storedTheme); </script>
- <style type="text/css">
- :root {
- --google-font: {text:font};
- --font-size: {text:font size}px;
- --post-width: {select:post width};
- --post-margin: {text:post margin}px;
- --sidebar-image-size: {select:sidebar image size};
- --sidebar-image-shape: {select:sidebar image shape};
- --sidebar-position: {select:sidebar position};
- {block:ifroundedcorners}
- --rounded-corners: 0.5em;
- {/block:ifroundedcorners}
- {block:ifnotroundedcorners}
- --rounded-corners: 0em;
- {/block:ifnotroundedcorners}
- }
- :root, html[data-theme='light'] {
- --LightOn: block;
- --LightOff: none;
- --background-color: {color:background};
- --secondary-background-color: {color:secondary background};
- --text-color: {color:text};
- --link-color: {color:link};
- --accent-color: {color:accent};
- --border-color: {color:borders};
- }
- html[data-theme='dark'] {
- --LightOn: none;
- --LightOff: block;
- --background-color: {color:dark mode background};
- --secondary-background-color: {color:dark mode secondary background};
- --text-color: {color:dark mode text};
- --link-color: {color:dark mode link};
- --accent-color: {color:dark mode accent};
- --border-color: {color:dark mode borders};
- }
- html.theme-transition,
- html.theme-transition *,
- html.theme-transition *:before,
- html.theme-transition *:after {
- transition: 0s !important;
- transition-delay: 0 !important;
- }
- /*--basic styling--*/
- * {box-sizing: border-box;}
- body {
- font-family: var(--google-font);
- font-size: var(--font-size);
- -webkit-font-smoothing: antialiased;
- color: var(--text-color);
- background-color: var(--background-color);
- line-height: 180%;
- word-wrap: break-word;
- letter-spacing: 0.2px;
- margin: 0;
- padding: 0;
- transition: 0.3s opacity;
- }
- body.fade-out {
- opacity: 0;
- transition: none;
- }
- a {
- color: var(--link-color);
- text-decoration: none;
- -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: var(--accent-color);
- -webkit-transition: all 0.3s;
- -moz-transition: all 0.3s;
- -ms-transition: all 0.3s;
- -o-transition: all 0.3s;
- transition: all 0.3s;
- }
- blockquote {
- padding: 0 0 0 1.5em;
- border-left: 1px solid var(--border-color);
- margin: 1.5em 0 1.5em 1.5em;
- }
- h1, h2, h3, h4, h5, .title {
- letter-spacing: 0.4px;
- font-weight: 700;
- }
- h1, .title {font-size: 1.3em;}
- h2, h3, h4, h5 {font-size: 1em;}
- .title a {color: var(--accent-color) !important;}
- small, big {font-size: 1em;}
- hr {
- height: 1px;
- border: none;
- box-shadow: none;
- background-color: var(--border-color);
- }
- pre {
- line-height: inherit;
- font-size: inherit;
- white-space: pre-wrap;
- white-space: -moz-pre-wrap;
- white-space: -pre-wrap;
- white-space: -o-pre-wrap;
- word-wrap: break-word;
- }
- /*--controls and dark mode button--*/
- #top-buttons {
- display: flex;
- flex-direction: column;
- align-items: flex-end;
- grid-gap: 1.5em;
- position: fixed;
- top: 20px;
- right: 20px;
- z-index: 999999;
- }
- #controls-icon {
- cursor: pointer;
- font-size: calc(var(--font-size) + 5px);
- background: var(--secondary-background-color);
- color: var(--accent-color);
- padding: 5px;
- border: 1px solid var(--border-color);
- border-radius: 5px;
- vertical-align: middle;
- -webkit-transition: all 0.3s;
- -moz-transition: all 0.3s;
- -ms-transition: all 0.3s;
- -o-transition: all 0.3s;
- transition: all 0.3s;
- }
- #controls-icon:hover {
- background: var(--accent-color);
- color: var(--background-color);
- -webkit-transition: all 0.3s;
- -moz-transition: all 0.3s;
- -ms-transition: all 0.3s;
- -o-transition: all 0.3s;
- transition: all 0.3s;
- }
- button#theme-toggle {
- outline: none;
- border: 0;
- background: transparent;
- padding: 0;
- cursor: pointer;
- }
- .light-on{
- display: var(--LightOn);
- }
- .light-off{
- display: var(--LightOff);
- }
- body.controls-click .tmblr-iframe {
- position: fixed;
- opacity: 0.8;
- 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: 999999!important;
- top: 13px !important;
- right: 55px !important;
- opacity: 0;
- visibility: hidden;
- transform: scale(0.8);
- transform-origin: 100% 0;
- -webkit-transform: scale(0.8);
- -webkit-transform-origin: 100% 0;
- -o-transform: scale(0.8);
- -o-transform-origin: 100% 0;
- -moz-transform: scale(0.8);
- -moz-transform-origin: 100% 0;
- -ms-transform: scale(0.8);
- -ms-transform-origin: 100% 0;
- -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--app-cta-button {display: none!important;}
- /*updates tab*/
- {block:ifupdatestab}
- #update-box {
- display: none;
- width: 200px;
- line-height: 150%;
- padding: 1em;
- background: var(--secondary-background-color);
- border-radius: var(--rounded-corners);
- border: 1px solid var(--border-color);
- }
- #update-title {
- font-weight: 600;
- margin-bottom: 0.5em;
- }
- {/block:ifupdatestab}
- /*--scrollbar--*/
- ::-webkit-scrollbar {
- width:19px;
- height:19px;
- }
- ::-webkit-scrollbar {
- background-color:var(--background-color);
- }
- ::-webkit-scrollbar-track {
- border:9px solid var(--background-color);
- background-color:var(--border-color);
- }
- ::-webkit-scrollbar-thumb {
- border:7px solid var(--background-color);
- background-color:var(--accent-color);
- min-height:24px;
- min-width:24px;
- }
- /*--tooltips--*/
- .tippy-tooltip.custom-theme {
- background: var(--secondary-background-color);
- color: var(--text-color);
- font-size: var(--font-size);
- text-transform: lowercase;
- text-align: center;
- border-radius: var(--rounded-corners);
- border: 1px solid var(--border-color);
- }
- /*--sidebar--*/
- #sidebar {
- display: flex;
- flex-direction: column;
- grid-gap: 1.5em;
- width: 200px;
- position: fixed;
- top: var(--post-margin);
- }
- .right #sidebar {margin-left: calc(var(--post-width) + 100px);}
- #sidebar-wrapper, #description-wrapper {
- display: flex;
- flex-direction: column;
- grid-gap: 1em;
- }
- {block:ifSidebarImage}
- #side-img {
- margin-bottom: 0.5em;
- border-radius: var(--sidebar-image-shape);
- width: var(--sidebar-image-size);
- }
- {/block:ifSidebarImage}
- .find {
- padding: 2px 4px;
- border: 1px solid var(--border-color);
- border-radius: var(--rounded-corners);
- }
- .find input {
- border: 0;
- outline: 0;
- background: var(--background-color);
- font-family: inherit;
- color: var(--text-color);
- font-size: var(--font-size);
- }
- .find input[type=text] {
- font-size: calc(var(--font-size) - 1px);
- color: var(--text-color);
- }
- #nav-wrapper {
- display: flex;
- flex-direction: column;
- grid-gap: 0.5em;
- }
- #nav, #more-links {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- align-items: center;
- }
- #nav a {margin-right: 1em;}
- #more-links {display: none;}
- #more-links a {margin-right: 1em;}
- #dropdown, #nav-icon {
- cursor: pointer;
- font-size: calc(var(--font-size) + 10px);
- color: var(--accent-color);
- vertical-align: middle;
- }
- .rotate{
- -moz-transition: all 0.2s linear;
- -webkit-transition: all 0.2s linear;
- transition: all 0.2s linear;
- }
- .rotate.down{
- -ms-transform: rotateX(180deg);
- -moz-transform: rotateX(180deg);
- -webkit-transform: rotateX(180deg);
- transform: rotateX(180deg);
- transform-origin: center;
- }
- /*--posts--*/
- main {
- position: relative;
- width: calc(200px + (var(--post-width)) + 100px);
- margin: auto;
- }
- .left section {
- position: relative;
- width: var(--post-width);
- margin: 0 0 0 300px;
- }
- .right section {
- position: relative;
- width: var(--post-width);
- margin: 0 300px 0 0;
- }
- article {
- width: 100%;
- position: relative;
- margin: var(--post-margin) auto;
- }
- article hr {margin-top: 2em};
- .posts li, .posts blockquote, figure, video, iframe, .video, .video iframe, figure.tmblr-embed.tmblr-full, figure.tmblr-embed.tmblr-full iframe, .caption iframe {max-width: 100%;}
- /*--captions--*/
- .caption {
- margin-top: 2em;
- padding-bottom: 1em;
- border-bottom: 1px solid var(--border-color);
- }
- .caption:last-of-type {padding-bottom: 0; border-bottom: 0;}
- .text-caption:first-of-type {margin-top: 0;}
- .user-icon, .ask-icon {
- display: inline-block;
- vertical-align: middle;
- margin-right: 1em;
- padding: 4px;
- background-color: var(--secondary-background-color);
- border: 1px solid var(--border-color);
- border-radius: 100% !important;
- }
- .user-icon {width: 2em; height: 2em;}
- .ask-icon {width: 3.5em; height: 3.5em;}
- .username {
- display: inline-block;
- vertical-align: middle;
- font-weight: 600;
- }
- .username a {color: var(--text-color) !important;}
- .username a:hover {color: var(--accent-color) !important;}
- .deactive::after {
- content: '(deactivated)';
- margin-left: 1em;
- opacity: 0.75;
- color: var(--text-color);
- }
- p.tmblr-attribution {margin-top: 1em !important;}
- /*--text--*/
- h1.post-title {margin-top: 0;}
- /*--link--*/
- a.link-wrap {display: block;}
- .link {padding: 0;}
- .npf-link-block {
- margin-top: 1em;
- background-color: inherit;
- border: 0;
- color: inherit;
- }
- /*--photo/video--*/
- img {
- margin: 0;
- display: block;
- height: auto;
- max-width: 100%;
- }
- .photo img, .video {
- width: 100%;
- border-radius: var(--rounded-corners);
- overflow: hidden;
- }
- .vignette, #vignette {opacity: 0;}
- .tmblr-lightbox, #tumblr_lightbox {background-color: rgba(130, 130, 130, 0.75) !important;}
- .lightbox-image, #tumblr_lightbox img {
- box-shadow: none !important;
- border-radius: 0 !important;
- max-width: none;
- }
- #tumblr_lightbox_caption, .lightbox-caption {
- color: #fff !important;
- font-family: inherit;
- margin-top: 1em !important;
- }
- /*--photoset--*/
- [photoset-layout] {
- grid-gap: 4px;
- border-radius: var(--rounded-corners);
- overflow: hidden;
- }
- .npf_inst {
- border-radius: var(--rounded-corners);
- overflow: hidden;
- }
- /*--quote--*/
- .quote, p.npf_quote {
- letter-spacing: 0.5px;
- font-weight: 700;
- font-size: 1.3em;
- }
- p.npf_quote {font-family: inherit;}
- .quote p:first-of-type {margin-top: 0;}
- .quote p:last-of-type {margin-bottom: 0;}
- .source {margin-top: 1.5em;}
- /*--chat--*/
- .chat {padding: 0; margin: 0;}
- .chat li {list-style-type: none; margin-top: 1em;}
- .chat li:first-of-type {margin-top: 0;}
- .chatter {font-weight: 600;}
- p.npf_chat, p.npf_chat b {font-family: inherit;}
- /*--answer--*/
- .ask-wrap {border: 1px solid var(--border-color); padding: 1.5em; border-radius: var(--rounded-corners); background: var(--secondary-background-color);}
- .ask-wrap .asking {
- display: inline-block;
- vertical-align: middle;
- font-weight: 600;
- text-transform: lowercase;
- }
- .ask-wrap .asking a {color: var(--text-color) !important;}
- .ask-wrap .asking a:hover {color: var(--accent-color) !important;}
- .asked, .answered {display: inline-block; opacity: 0.7;}
- .question {margin-top: 1em;}
- .question p:first-of-type {margin-top: 0;}
- .question p:last-of-type {margin-bottom: 0;}
- /*--audio--*/
- .audio_post {
- display: flex;
- align-items: center;
- background-color: var(--secondary-background-color);
- border-radius: var(--rounded-corners);
- border: 1px solid var(--border-color);
- padding: 1em;
- }
- .audio_player {
- display: flex;
- justify-content: space-between;
- align-items: center;
- width: 100%;
- }
- .audio_wrap {
- display:flex;
- align-items: center;
- }
- .audio_info {margin-left: 1.5em;}
- .track {
- display: block;
- font-weight: 600;
- }
- .album-art {
- width: 80px;
- height: 80px;
- border-radius: 100%;
- }
- #audio-player-icon {
- cursor: pointer;
- font-size: calc(var(--font-size) + 5px);
- background: var(--background-color);
- color: var(--text-color);
- padding: 15px;
- border: 1px solid var(--border-color);
- border-radius: 100%;
- vertical-align: middle;
- -webkit-transition: all 0.3s;
- -moz-transition: all 0.3s;
- -ms-transition: all 0.3s;
- -o-transition: all 0.3s;
- transition: all 0.3s;
- }
- #audio-player-icon:hover {
- background: var(--accent-color);
- color: var(--background-color);
- -webkit-transition: all 0.3s;
- -moz-transition: all 0.3s;
- -ms-transition: all 0.3s;
- -o-transition: all 0.3s;
- transition: all 0.3s;
- }
- .custom_audio_seekbar {
- height: 0;
- }
- .spotify_audio_player, .soundcloud_audio_player {
- max-height: 80px;
- border-radius: var(--rounded-corners);
- }
- /*--info--*/
- .info {
- display: flex;
- justify-content: space-between;
- align-content: center;
- margin-top: 2em;
- vertical-align: middle;
- }
- .info a {color:var(--text-color);}
- .info a:hover {color:var(--accent-color);}
- .info-left, .info-right {
- display: flex;
- align-items: center;
- grid-gap: 1em;
- }
- .date {
- font-weight: 600;
- text-transform: uppercase;
- letter-spacing: 1.2px;
- }
- .dash {
- content:"";
- width: 30px;
- height: 1px;
- vertical-align: middle;
- background: var(--border-color);
- }
- #post-info-icon, #pinned-post-icon {
- cursor: pointer;
- font-size: calc(var(--font-size) + 5px);
- vertical-align: middle;
- }
- #post-info-icon {color: var(--text-color);}
- #pinned-post-icon {color: var(--accent-color);}
- .like {position: relative;}
- .like .like_button {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- width: 100%;
- height: 100%;
- opacity: 0;
- }
- .like .like_button iframe {
- width: 100%!important;
- height: 100%!important;
- }
- .like_button.liked + #post-info-icon {color: #dc143c!important;}
- .tags {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- align-items: center;
- margin-top: 1em;
- {block:ifhidetags}
- display: none;
- {/block:ifhidetags}
- }
- .tags a {margin-right: 1.5em;}
- a.pinned-post {font-weight: 600; color: var(--accent-color);}
- /*--post notes--*/
- .notes {margin-top: var(--post-margin);}
- ol.notes {
- max-width: 100%;
- padding: 0;
- margin-top: 2em;
- }
- ol.notes li.note {
- padding: 0.5em 0;
- list-style-type: none;
- }
- ol.notes li.note img.avatar {display: none;}
- ol.notes li.reblog::before, ol.notes li.like::before, ol.notes li.reply::before {
- font-family: 'phosphor';
- font-size: calc(var(--font-size) + 3px);
- color: var(--accent-color);
- vertical-align: middle;
- margin-right: 1em;
- }
- ol.notes li.reblog::before {content: "\f267";}
- ol.notes li.like::before {content: "\f460";}
- ol.notes li.reply::before {content: "\f339";}
- ol.notes li.original_post:before {content: "\f613";}
- /*--pagination--*/
- #page-navigation {
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- #page-navigation a {
- color: var(--text-color);
- }
- .previous-next, .pages {
- display: flex;
- align-items: center;
- grid-gap: 1em;
- }
- .current-page {
- font-weight: bold;
- color: var(--accent-color);
- }
- /*--scroll to top and credit--*/
- #bottom-buttons {
- display: flex;
- flex-direction: column;
- position: fixed;
- bottom: 20px;
- right: 20px;
- z-index: 999999;
- grid-gap: 1.5em;
- }
- /*--responsiveness--*/
- @media only screen and (max-width: 1100px) {
- main {width: var(--post-width);}
- #sidebar, .right #sidebar {
- position: relative;
- margin: var(--post-margin) auto;
- width: 100%;
- top: auto;
- }
- #sidebar-wrapper {
- flex-direction: row;
- grid-gap: 3em;
- align-items: center;
- }
- #side-img {width: 100px; margin-bottom: 0;}
- .left section {margin-left: 0;}
- .right section {margin-right: 0;}
- }
- @media only screen and (max-width: 720px) {
- main, .left section, .right section {width: 80vw;}
- #controls, .tippy-tooltip.custom-theme {display:none;}
- }
- {CustomCSS}
- </style>
- </head>
- <!--html-->
- <body>
- <script>document.body.className += ' fade-out';</script>
- <!--controls-->
- <div id="top-buttons">
- <a id="controls" title="show controls"><i class="ph-gear-six-fill" id="controls-icon"></i></a>
- <button id="theme-toggle" aria-label="toggle dark or light mode" type="button">
- <span class="light-on" title="dark mode"><i class="ph-moon-fill" id="controls-icon"></i></span>
- <span class="light-off" title="light mode"><i class="ph-sun-dim-fill" id="controls-icon"></i></span>
- </button>
- <!--updates tab-->
- {block:ifupdatestab}
- <div id="update-icon" title="updates"><i class="ph-bell-fill" id="controls-icon"></i></div>
- <div id="update-box">
- <div id="update-title">{text:updates title}</div>
- {text:updates content}
- </div>
- {/block:ifupdatestab}
- </div>
- <main class="{select:sidebar position}"><!--main = main container-->
- <!--sidebar-->
- <aside id="sidebar">
- <div id="sidebar-wrapper">
- {block:ifsidebarimage}<img src="{image:sidebar}" id="side-img" alt="sidebar image"/></a>{/block:ifsidebarimage}
- <div id="description-wrapper">
- <div class="title"><a href="/">{text:title}</a></div>
- {block:Description}<div id="description">{text:description}</div>{/block:Description}
- </div>
- </div>
- {block:ifsearchbar}<form action="/search" method="get" class="find" name="sform">
- <input type="text" name="q" placeholder="search blog..." value="{SearchQuery}" value autocomplete="off" class="upper"/>
- </form>{/block:ifsearchbar}
- <div id="nav-wrapper">
- <div id="nav">
- {block:ifHomeLink}<a href="/" title="{text:Home Link}"><i class="ph-house" id="nav-icon"></i></a>{/block:ifHomeLink}
- {block:ifAskLink}<a href="/ask" title="{text:Ask Link}"><i class="ph-chat-teardrop" id="nav-icon"></i></a>{/block:ifAskLink}
- {block:ifArchiveLink}<a href="/archive" title="{text:Archive Link}"><i class="ph-folder" id="nav-icon"></i></a>{/block:ifArchiveLink}
- <div class="rotate"><i class="ph-caret-circle-down" id="dropdown" title="explore more"></i></div>
- </div>
- <div id="more-links">
- {block:ifLink1}<a href="{text:Link 1 URL}">{text:Link 1}</a>{/block:ifLink1}
- {block:ifLink2}<a href="{text:Link 2 URL}">{text:Link 2}</a>{/block:ifLink2}
- {block:ifLink3}<a href="{text:Link 3 URL}">{text:Link 3}</a>{/block:ifLink3}
- {block:ifLink4}<a href="{text:Link 4 URL}">{text:Link 4}</a>{/block:ifLink4}
- </div>
- </div>
- </aside>
- <section><!-- section = post container -->
- <!--posts-->
- {block:posts inlineMediaWidth="1280" inlineNestedMediaWidth="1280"}
- <article class="posts" id="{PostID}" post-type="{PostType}">
- {block:Text}
- <div id="text-container">
- {block:Title}<h1 class="post-title"><a href="{Permalink}">{Title}</a></h1>{/block:Title}
- {block:NotReblog}
- <div class="caption text-caption">
- {Body}
- </div>
- {/block:NotReblog}
- {block:RebloggedFrom}
- {block:Reblogs}
- <div class="caption text-caption">
- <div class="commenter source-head">
- <img src="{PortraitURL-64}" class="user-icon">
- <div class="username {block:IsDeactivated}deactive{/block:IsDeactivated}"><a href="{Permalink}">{Username}</a></div>
- </div>
- <div class="comment">{Body}</div>
- </div>
- {/block:Reblogs}
- {/block:RebloggedFrom}
- </div>
- {/block:Text}
- {block:Link}
- <div id="link-container">
- <a href="{URL}" class="link-wrap">
- <div class="link">
- <div class="title">{Name}</div>
- </div>
- </a>
- {block:Description}
- {block:NotReblog}
- <div class="caption">
- {Description}
- </div>
- {/block:NotReblog}
- {/block:Description}
- {block:RebloggedFrom}
- {block:Reblogs}
- <div class="caption">
- <div class="commenter">
- <img src="{PortraitURL-64}" class="user-icon">
- <div class="username {block:IsDeactivated}deactive{/block:IsDeactivated}"><a href="{Permalink}">{Username}</a></div>
- </div>
- <div class="comment">{Body}</div>
- </div>
- {/block:Reblogs}
- {/block:RebloggedFrom}
- </div>
- {/block:Link}
- {block:Photo}
- <div id="photo-container">
- <div class="photo">
- {LinkOpenTag}<a href="#" 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"><img src="{PhotoURL-HighRes}" alt="{PhotoAlt}"></a>{LinkCloseTag}
- </div>
- {block:Caption}
- {block:NotReblog}
- <div class="caption">
- {Caption}
- </div>
- {/block:NotReblog}
- {block:RebloggedFrom}
- {block:Reblogs}
- <div class="caption">
- <div class="commenter">
- <img src="{PortraitURL-64}" class="user-icon">
- <div class="username {block:IsDeactivated}deactive{/block:IsDeactivated}"><a href="{Permalink}">{Username}</a></div>
- </div>
- <div class="comment">{Body}</div>
- </div>
- {/block:Reblogs}
- {/block:RebloggedFrom}
- {/block:Caption}
- </div>
- {/block:Photo}
- {block:Photoset}
- <div id="photoset-container">
- <div class="photoset-grid" photoset-layout="{PhotosetLayout}">{block:Photos}<div data-width="{PhotoWidth-HighRes}" data-height="{PhotoHeight-HighRes}" data-lowres="{PhotoURL-500}" data-highres="{PhotoURL-HighRes}" onclick="lightbox(this)"><img src="{PhotoURL-HighRes}" /></div>{/block:Photos}</div>
- {block:Caption}
- {block:NotReblog}
- <div class="caption">
- {Caption}
- </div>
- {/block:NotReblog}
- {block:RebloggedFrom}
- {block:Reblogs}
- <div class="caption">
- <div class="commenter">
- <img src="{PortraitURL-64}" class="user-icon">
- <div class="username {block:IsDeactivated}deactive{/block:IsDeactivated}"><a href="{Permalink}">{Username}</a></div>
- </div>
- <div class="comment">{Body}</div>
- </div>
- {/block:Reblogs}
- {/block:RebloggedFrom}
- {/block:Caption}
- </div>
- {/block:Photoset}
- {block:Video}
- <div id="video-container">
- <div class="video">{Video-500}</div>
- {block:Caption}
- {block:NotReblog}
- <div class="caption">
- {Caption}
- </div>
- {/block:NotReblog}
- {block:RebloggedFrom}
- {block:Reblogs}
- <div class="caption">
- <div class="commenter">
- <img src="{PortraitURL-64}" class="user-icon">
- <div class="username {block:IsDeactivated}deactive{/block:IsDeactivated}"><a href="{Permalink}">{Username}</a></div>
- </div>
- <div class="comment">{Body}</div>
- </div>
- {/block:Reblogs}
- {/block:RebloggedFrom}
- {/block:Caption}
- </div>
- {/block:Video}
- {block:Quote}
- <div id="quote-container">
- <div class="quote">{Quote}</div>
- {block:Source}<div class="source">{Source}</div>{/block:Source}
- </div>
- {/block:Quote}
- {block:Chat}
- <div id="chat-container">
- {block:Title}<h1 class="post-title"><a href="{Permalink}">{Title}</a></h1>{/block:Title}
- <ul class="chat">{block:Lines}
- <li>
- {block:Label}<div class="chatter">{Label}</div>{/block:Label}
- {Line}
- </li>
- {/block:Lines}</ul>
- </div>
- {/block:Chat}
- {block:Answer}
- <div id="ask-container">
- <div class="ask-wrap">
- <img src="{AskerPortraitURL-64}" class="ask-icon">
- <div class="asking">{Asker} <div class="asked">asked</div></div>
- <div class="question">{Question}</div>
- </div>
- {block:Answerer}
- <div class="caption">
- <div class="commenter">
- <img src="{AnswererPortraitURL-64}" class="user-icon">
- <div class="username {block:IsDeactivated}deactive{/block:IsDeactivated}"><a href="{Permalink}">{Answerer}</a> <div class="answered">said</div></div>
- </div>
- <div class="answer">{Answer}</div>
- </div>
- {/block:Answerer}
- {block:NotReblog}
- <div class="caption">
- <div class="replies">{Replies}</div>
- </div>
- {/block:NotReblog}
- {block:RebloggedFrom}
- {block:Reblogs}
- <div class="caption">
- <div class="commenter">
- <img src="{PortraitURL-64}" class="user-icon">
- <div class="username {block:IsDeactivated}deactive{/block:IsDeactivated}"><a href="{Permalink}">{Username}</a></div>
- </div>
- <div class="comment">{Body}</div>
- </div>
- {/block:Reblogs}
- {/block:RebloggedFrom}
- </div>
- {/block:Answer}
- {block:Audio}
- <div id="audio-container">
- {block:AudioPlayer}
- {AudioPlayer}
- <div class="audio_post">
- <div class="audio_player">
- <div class="audio_wrap">
- <span class="custom_audio_buttons"></span>
- <div class="audio_info">
- {block:TrackName}<div class="track">{TrackName}</div>{/block:TrackName}
- {block:Artist}{Artist}{/block:Artist}
- </div>
- </div>
- {block:AlbumArt}
- <img src="{AlbumArtURL}" class="album-art">
- {/block:AlbumArt}
- </div>
- <div class="custom_audio_seekbar"></div>
- </div>
- {/block:AudioPlayer}
- {block:Caption}
- {block:NotReblog}
- <div class="caption">
- {Caption}
- </div>
- {/block:NotReblog}
- {block:RebloggedFrom}
- {block:Reblogs}
- <div class="caption">
- <div class="commenter">
- <img src="{PortraitURL-64}" class="user-icon">
- <div class="username {block:IsDeactivated}deactive{/block:IsDeactivated}"><a href="{Permalink}">{Username}</a></div>
- </div>
- <div class="comment">{Body}</div>
- </div>
- {/block:Reblogs}
- {/block:RebloggedFrom}
- {/block:Caption}
- </div>
- {/block:Audio}
- <hr>
- <!--info-->
- {block:Date}
- <div class="info">
- <div class="info-left">
- {block:PinnedPostLabel}<a href="{Permalink}" class="pinned-post"><i class="ph-push-pin-simple" id="pinned-post-icon"></i></a>{/block:PinnedPostLabel}
- <a class="date" href="{Permalink}">{DayOfMonthWithZero} {ShortMonth}</a>
- {block:NoteCount}
- <div class="dash"></div>
- <a class="notecount" href="{Permalink}">{NoteCountWithLabel}</a>{/block:NoteCount}
- </div>
- <!-- like and reblog buttons -->
- <div class="info-right">
- <a href="{ReblogURL}" target="_blank" title="reblog this post"><i class="ph-arrow-clockwise-light" id="post-info-icon"></i></a>
- <a class="like" title="like this post">{LikeButton}<i class="ph-heart-light" id="post-info-icon"></i></a>
- <!--tags-->
- {block:HasTags}{block:ifhidetags}<a class="tag-icon" title="show tags"><i class="ph-hash-light" id="post-info-icon"></i></a>{/block:ifhidetags}{/block:HasTags}
- </div>
- </div>
- {/block:Date}
- {block:HasTags}
- <div class="tags">
- {block:Tags}<a href="{TagURL}">#{Tag}</a>{/block:Tags}
- </div>
- {/block:HasTags}
- <!--post notes-->
- {block:PermalinkPage}{block:Date}
- {block:NoteCount}{block:PostNotes}
- <div class="notes">
- {PostNotes-64}
- </div>
- {/block:PostNotes}{/block:NoteCount}
- {/block:Date}{/block:PermalinkPage}
- </article>
- {/block:Posts}
- <!--pagination-->
- {block:Pagination}
- <article id="page-navigation">
- <div class="previous-next">
- <a href="{block:PreviousPage}{PreviousPage}{/block:PreviousPage}">prev</a>
- <div class="dash"></div>
- <a href="{block:NextPage}{NextPage}{/block:NextPage}">next</a>
- </div>
- <div class="pages">{block:JumpPagination length="5"}
- {block:CurrentPage}<span class="current-page">{PageNumber}</span>{/block:CurrentPage}
- {block:JumpPage}<a href="{URL}">{PageNumber}</a>{/block:JumpPage}
- {/block:JumpPagination}
- </div>
- </article>
- {/block:Pagination}
- </section><!-- end of posts container -->
- </main><!-- end of main container -->
- <!--scroll to top button and credit-->
- <div id="bottom-buttons">
- <a href="#" title="back to top" id="scrollup"><i class="ph-caret-up-bold" id="controls-icon"></i></a>
- <a href="https://freddie-mercurys.tumblr.com" title="theme by @freddie-mercurys" id="credit"><i class="ph-smiley-bold" id="controls-icon"></i></a>
- </div>
- <script>
- // fade effect
- $(function() {
- $('body').removeClass('fade-out');
- });
- //show controls
- $(document).ready(function(){
- $('#controls').click(function(){
- $('body').toggleClass('controls-click');
- });
- });
- //dark mode button
- const toggle = document.getElementById("theme-toggle");
- toggle.onclick = function () {
- document.documentElement.classList.add("theme-transition");
- let currentTheme = document.documentElement.getAttribute("data-theme");
- let targetTheme = "light";
- if (currentTheme === "light") {
- targetTheme = "dark";
- }
- window.setTimeout(function () {
- document.documentElement.classList.remove("theme-transition");
- }, 50);
- document.documentElement.setAttribute("data-theme", targetTheme);
- localStorage.setItem("theme", targetTheme);
- };
- //updates
- $("#update-icon").click(function(){
- $("#update-box").slideToggle(500);
- });
- //scroll to top
- $("#scrollup").click(function(){
- $("html, body").animate({scrollTop : 0},800);
- return false;
- });
- //show navigation
- $("#dropdown").click(function(){
- $(this).parents("#sidebar").find("#more-links").slideToggle(500);
- });
- $(".rotate").click(function(){
- $(this).toggleClass("down");
- });
- //show tags
- $(".tag-icon").click(function(){
- $(this).parents(".posts").find(".tags").slideToggle(300);
- });
- //tooltips
- tippy('[title]', {
- theme: 'custom',
- arrow: false,
- followCursor: true,
- delay: 100,
- placement: 'top',
- zIndex: 9999999999,
- maxWidth: 200,
- animation: 'perspective',
- content(reference) {
- const title = reference.getAttribute('title');
- reference.removeAttribute('title');
- return title;
- },
- });
- //photosets
- initPhotosets();
- //notecount shortener
- var $container = $('article');
- $container.find('.notecount').each(function(){
- var n = $(this).html().split(' ')[0].replace(/,/g, '');
- if (n > 999) {
- n = Math.floor(n / 100) / 10;
- $(this).text(n + 'k notes');
- }
- });
- // responsive iframes
- $(document).ready(function() {
- flexibleFrames($(".video")); // $(".video") is the class selector passed in the argument
- });
- //custom audio player
- customAudio({
- post: "article",
- wrappers: {
- audio: ".custom_audio_wrapper",
- buttons: ".custom_audio_buttons",
- duration: ".custom_audio_duration",
- timeCurrent: ".custom_audio_current_time",
- timeLeft: ".custom_audio_time_left",
- seekbar: ".custom_audio_seekbar"
- },
- default: false,
- pauseAll: true,
- playButton: "<i class='ph-play-fill' id='audio-player-icon'></i>",
- pauseButton: "<i class='ph-pause-fill' id='audio-player-icon'></i>",
- errorIcon: "<i class='ph-x-fill' id='audio-player-icon'></i>",
- hideInfoIfError: true,
- }).create();
- //remove redirects
- function noHrefLi(){
- var linkSet = document.querySelectorAll('a[href*="href.li/?"]');
- Array.prototype.forEach.call(linkSet,function(el,i){
- var theLink = linkSet[i].getAttribute('href').split("href.li/?")[1];
- linkSet[i].setAttribute("href",theLink);
- });
- }
- noHrefLi();
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement