Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- ╭━━━┳╮╱╭┳━━━┳━━━┳━━━━┳╮╱╭┳━━━┳━╮╭━┳━━━┳━━━╮
- ┃╭━╮┃┃╱┃┃╭━━┫╭━╮┃╭╮╭╮┃┃╱┃┃╭━━┫┃╰╯┃┃╭━━┫╭━╮┃
- ┃╰━━┫╰━╯┃╰━━┫┃╱┃┣╯┃┃╰┫╰━╯┃╰━━┫╭╮╭╮┃╰━━┫╰━━╮
- ╰━━╮┃╭━╮┃╭━━┫╰━╯┃╱┃┃╱┃╭━╮┃╭━━┫┃┃┃┃┃╭━━┻━━╮┃
- ┃╰━╯┃┃╱┃┃╰━━┫╭━╮┃╱┃┃╱┃┃╱┃┃╰━━┫┃┃┃┃┃╰━━┫╰━╯┃
- ╰━━━┻╯╱╰┻━━━┻╯╱╰╯╱╰╯╱╰╯╱╰┻━━━┻╯╰╯╰┻━━━┻━━━╯
- Page ⎾TBD⏌ by sheathemes @ tumblr
- - TERMS -
- I. Do NOT remove my credit from the index page. Keep it exactly where it is
- II. Do NOT take any part of my code to use for your personal designs
- III. Do NOT claim any part of my code as your own
- IV. NO redistrubuting of any of my code
- V. Editing is allowed. As long as it's NOT being claimed as your own
- CREDITS
- > Tippy.js: https://atomiks.github.io/tippyjs/
- > Smoothscroll script: https://cdnjs.com/libraries/smoothscroll
- > Icons: https://phosphoricons.com/
- > Removing tumblr app button on mobile themes: https://yeolithm.com/post/172903772712/tutorial-removing-tumblr-app-button-on-mobile
- !-->
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en" data-theme="light">
- <script>
- const storedTheme = localStorage.getItem("theme") || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
- if (storedTheme) document.documentElement.setAttribute("data-theme", storedTheme);
- </script>
- <head>
- <!------------Smooth Scroll Script------------>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/smoothscroll/1.4.6/SmoothScroll.min.js"></script>
- <!------------Smooth Scroll Script------------>
- <!--------------Custom 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=Barlow:ital,wght@0,400;0,700;1,500&family=Mukta:wght@400;500;700&display=swap" rel="stylesheet">
- <!--------------Custom Fonts-------------->
- <!--Homelinks Icons -->
- <script src="https://unpkg.com/phosphor-icons"></script>
- <!--Homelinks Icons-->
- <title>{Title}</title>
- <link rel="shortcut icon" href="{Favicon}">
- <link rel="altertnate" type="application/rss+xml" href="{RSS}">
- <meta http-equiv="x-dns-prefetch-control" content="off"/>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/smoothscroll/1.4.6/SmoothScroll.min.js"></script>
- <style type="text/css">
- /*------
- CUSTOMIZATION OPTIONS HERE. HERE YOU CAN GE EVERYTHING FROM THE COLORS TO THE OVERALL FONT SIZE TO YOUR LIKING!
- ------ */
- :root {
- --main-font-size: 14px;
- }
- :root, html[data-theme='light'] {
- --LightOn: block; /* displays <span> with moon icon */
- --LightOff: none; /* hides <span> with sun icon */
- --accent: #EC9969;
- --accented-text: #ffffff;
- --main-background: #fbfbfb;
- --text: #444444;
- --bold: #000000;
- --italic #000000;
- --main-links: #000000;
- --main-links-hover: #EC9969;
- --link-hover: #B08E72;
- --scrollbar: #EC9969;
- --text-selection-background: #EC9969;
- --text-selection: #fff;
- --tooltip: #fff;
- --tooltip-background: #EC9969;
- --topbar-title: #000000;
- --top-banner: #ffffff;
- --main-posts: #ffffff;
- --post-borders: #e8e8e8;
- }
- html[data-theme='dark'] {
- --LightOn: none; /* hides <span> with moon icon */
- --LightOff: block; /* displays <span> with sun icon */
- --accent: #EC9969;
- --accented-text: #ffffff;
- --main-background: #313131;
- --text: #ffffff;
- --bold: #EC9969;
- --italic #000000;
- --main-links: #ffffff;
- --link-hover: #B08E72;
- --scrollbar: #EC9969;
- --text-selection-background: #EC9969;
- --text-selection: #fff;
- --tooltip: #fff;
- --tooltip-background: #EC9969;
- --topbar-title: #ffffff;
- --top-banner: #414141;
- --main-posts: #414141;
- --post-borders: #2e2e2e;
- }
- html.theme-transition,
- html.theme-transition *,
- html.theme-transition *:before,
- html.theme-transition *:after {
- transition: 0s !important;
- transition-delay: 0 !important;
- }
- /*----------FADE-IN ANIMATION----------*/
- @keyframes fadein {
- from {opacity:0;}
- to {opacity:1;}
- }
- @-moz-keyframes fadein { /* Firefox */
- from {opacity:0;}
- to {opacity:1;}
- }
- @-webkit-keyframes fadein { /* Safari and Chrome */
- from {opacity:0;}
- to {opacity:1;}
- }
- @-o-keyframes fadein { /* Opera */
- from {opacity:0;}
- to {opacity: 1;}
- }
- /*----------TUMBLR CONTROLS----------*/
- iframe#tumblr_controls, .iframe-controls--desktop {
- right: 10px !important;
- top: 25px !important;
- position: fixed !important;
- z-index: 99999999999999999999 !important;
- -webkit-filter: invert(100%);
- -moz-filter: invert(100%);
- -o-filter: invert(100%);
- -webkit-transition: opacity 0.4s linear;opacity: 0.4;
- -webkit-transition: all 0.8s ease-out;
- -moz-transition: all 0.8s ease-out;
- transition: all 0.8s ease-out;
- display: none;
- }
- /*----------SCROLLBAR----------*/
- ::-webkit-scrollbar {
- width: 4px;
- height: 4px;
- }
- ::-webkit-scrollbar-button {
- width: 0px;
- height: 0px;
- }
- ::-webkit-scrollbar-thumb {
- background-color: var(--scrollbar);
- border-radius: 6px;
- }
- ::-webkit-scrollbar-track {
- background: var(--main-background);
- border-radius: 6px;
- }
- /*----------TOOLTIPS----------*/
- .tippy-tooltip.custom-theme {
- background-color: var(--tooltip-background);
- color: var(--tooltip);
- text-align:center;
- font-weight: 700;
- }
- .tippy-tooltip.custom-theme .tippy-svg-arrow {
- fill: var(--tooltip-background);
- }
- /*----------TEXT SELECTION----------*/
- ::selection {
- background: var(--text-selection-background);
- color: var(--text-selection);
- }
- ::-moz-selection {
- background: var(--text-selection-background);
- color: var(--text-selection);
- }
- ::-webkit-selection {
- background: var(--text-selection-background);
- color: var(--text-selection);
- }
- /*----------THEME BASICS----------*/
- body {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- display: flex;
- justify-content: center;
- align-items: center;
- min-height: 100vh;
- color: var(--main-font-color);
- font-family: 'Mukta', sans-serif;
- font-weight: 400;
- line-height: 180%;
- font-size: var(--main-font-size);
- background: var(--main-background) url("") center; /*Add a background image between the quotations*/
- background-attachment: fixed;
- background-repeat: repeat;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- animation: fadein 2.5s;
- -moz-animation: fadein 2.5s;
- -webkit-animation: fadein 2.5s;
- -o-animation: fadein 2.5s;
- }
- b,strong {
- color:var(--bold);
- font-weight: 700;
- }
- i,em {
- color:var(--italic);
- }
- small,sub,sup {
- font-size: calc(var(--main-font-size) - 0.5px);
- }
- h1,h2,h3 {
- font-weight: 700;
- font-size: 1.3em;
- color: var(--bold);
- }
- h4,h5,h6 {
- font-weight: 700;
- font-size: 1.2em;
- color: var(--bold);
- }
- a {
- color: var(--main-links);
- text-decoration:none;
- -moz-transition-duration: 0.5s;
- -o-transition-duration: 0.5s;
- -webkit-transition-duration: 0.5s;
- transition-duration: 0.5s;
- }
- a:hover {
- color: var(--link-hover);
- -moz-transition-duration: 0.5s;
- -o-transition-duration: 0.5s;
- -webkit-transition-duration: 0.5s;
- transition-duration: 0.5s;
- }
- /*----------DAY/NIGHT MODE---------*/
- .toggle-header {
- position: fixed;
- top: 50px;
- right: 50px;
- }
- button#theme-toggle {
- outline: none;
- border: 0;
- background: transparent;
- padding: 0;
- cursor: pointer;
- }
- button#theme-toggle i {
- font-size: 18px;
- background-color: var(--accent);
- color: var(--accented-text);
- padding: 10px;
- border-radius: 50%;
- }
- .toggle-header {
- display: flex;
- }
- .light-on{
- display: var(--LightOn);
- }
- .light-off{
- display: var(--LightOff);
- }
- /*----------THEME CREDIT/DO NOT REMOVE!!!---------*/
- #bottom {
- bottom: 40px;
- position: fixed;
- right: 40px;
- z-index: 99;
- display: flex;
- }
- .ph-copyright {
- padding: 3px;
- font-size: 22px;
- width: 22px;
- height: 22px;
- background-color: var(--accent);
- color: var(--accented-text);
- border-radius: 50%;
- margin: 0 2px;
- }
- </style>
- </head>
- <body>
- <div class="toggle-header">
- <button id="theme-toggle" aria-label="toggle dark or light mode" type="button">
- <span class="light-on"><a href="javascript:;" title="toggle dark mode"><i class="ph-moon"></i></a></span>
- <span class="light-off"><a href="javascript:;" title="toggle light mode"><i class="ph-sun"></i></a></span>
- </button>
- </div>
- <footer id="bottom">
- <!-------------------DO NOT REMOVE THEME CREDIT!!!------------------->
- <a href="https://sheathemes.tumblr.com" target="_blank" title="sheathemes"><i class="ph-copyright"></i></a>
- <!-------------------DO NOT REMOVE THEME CREDIT!!!------------------->
- </footer>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
- <!-----------Tooltips Script----------->
- <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/dist/svg-arrow.css" />
- <!-----------Tooltips Script----------->
- <script>
- $(document).ready(function(){
- tippy('a[title]', {
- theme: 'custom',
- arrow: tippy.roundArrow,
- zIndex: 9999999999,
- placement: 'auto',
- maxWidth: 300,
- content(reference) {
- const title = reference.getAttribute('title');
- reference.removeAttribute('title'); return title; },
- });
- });
- </script>
- <script>
- // toggle dark/light
- 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);
- };
- </script>
- </body>
- </html> <!---------------------------END--------------------------->
Advertisement
Add Comment
Please, Sign In to add comment