Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- book theme and pages coded by skye southcodes.tumblr.com for artsbyannz.tumblr.com
- - normalize css by https://github.com/necolas
- - fonts:
- google fonts
- https://online-fonts.com/fonts/palatino-linotype
- https://www.tunera.xyz/fonts/nyght-serif/
- - dark mode https://mournstera.tumblr.com/post/724742111455592448/a-dark-mode-guide-with-css-variables-and-js-this by https://mournstera.tumblr.com/
- - icons by https://phosphoricons.com/
- -->
- <!DOCTYPE html>
- <html lang="en" data-theme="light">
- <head>
- <title>{title}</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script>
- const storedTheme = localStorage.getItem("theme") || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
- if (storedTheme) {
- document.documentElement.setAttribute("data-theme", storedTheme);
- }
- </script>
- <link rel="shortcut icon" href="{favicon}">
- <meta name="description" content="{MetaDescription}"/>
- <!-- normalize -->
- <link href="https://necolas.github.io/normalize.css/7.0.0/normalize.css" rel="stylesheet">
- <!-- quicksand font -->
- <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=Quicksand:wght@300..700&display=swap" rel="stylesheet">
- <style>
- /* colors for light mode */
- :root, html[data-theme='light'] {
- --text: #333;
- --background:white;
- --titles: #b88f80;
- --links: #b88f80;
- --links-hover: #9b6b59;
- --icons: #b88f80;
- --accents: #d1a990;
- --toggle-button-icon:rgb(218, 215, 215);
- --toggle-button-background:rgb(51, 49, 49);
- --light-on: block;
- --light-off: none;
- }
- /* colors for dark mode */
- :root, html[data-theme='dark'] {
- --light-on: none;
- --light-off: block;
- --text: #b9b7b7;
- --background:rgb(60, 60, 61);
- --titles: #b88f80;
- --links: #b88f80;
- --links-hover: #9b6b59;
- --icons: #776660;
- --accents: #795738;
- --toggle-button-icon:rgb(218, 215, 215);
- --toggle-button-background:rgb(51, 49, 49);
- --light-on: none;
- --light-off: block;
- }
- .tmblr-iframe {margin:.7rem;opacity:.6;-ms-transform: scale(0.85);-webkit-transform: scale(0.85); /* Safari */transform: scale(0.85);}
- .tmblr-iframe:hover {opacity:.8;}
- ::-webkit-scrollbar-thumb:vertical {border-left:2px solid var(--titles);}
- ::-webkit-scrollbar {width:6px}
- ::-webkit-scrollbar-track-piece{margin:5px 0;}
- pre {font-family:consolas;
- white-space: pre-wrap; /* css-3 */
- white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
- white-space: -pre-wrap; /* Opera 4- */
- white-space: -o-pre-wrap; /* Opera 7 */
- word-wrap: break-word;} /* Internet Explorer 5.5+ */
- * {margin: 0;padding: 0; box-sizing: border-box;}
- body, figure{margin:0;padding:0}
- html{font: 14px 'Palatino', serif;}
- body {font-size:1.1rem;color: var(--text); background-color: var(--background);}
- p {margin:1rem 0}
- a {text-decoration: none;color:var(--links);word-break:break-word;}
- a:hover {color:var(--links-hover);}
- a:focus {outline: 0;}
- blockquote {margin:0;padding:0;}
- img {max-width:100%;height: auto;display: block;margin:0}
- hr {border:0;margin:0;}
- ol, ul, li {list-style-type:none;margin:0;padding:0;}
- @font-face {
- font-family: Palatino;
- src: url(https://static.tumblr.com/p5i0ib5/Lr2spt320/palatinolinotype_roman.ttf);
- }
- @font-face {
- font-family: nygth-regular;
- src: url(https://static.tumblr.com/p5i0ib5/i1sspt31d/nyghtserif-regular.ttf);
- font-weight: 400;
- }
- @font-face {
- font-family: nygth-regular-italic;
- src: url(https://static.tumblr.com/p5i0ib5/wGispt31j/nyghtserif-regularitalic.ttf);
- font-weight: 400;
- }
- /* dark mode */
- html.theme-transition,
- html.theme-transition *,
- html.theme-transition *:before,
- html.theme-transition *:after {
- transition: 0s !important;
- transition-delay: 0 !important;
- }
- button.theme-toggle {
- position: fixed;
- inset:1.5rem auto auto 2rem;
- padding: .5rem;
- border: 0;
- border-radius: 100%;
- outline: none;
- cursor: pointer;
- font-size: 25px;
- color: var(--text);
- background: var(--toggle-button-background);
- }
- .theme-toggle .ph{color: var(--toggle-button-icon)}
- .light-on {display: var(--light-on);}
- .light-off {display: var(--light-off);}
- /* global navigation */
- #global-navigation {
- padding: 4.5rem 4rem 2.5rem;
- text-align: center;
- font-family: nygth-regular;
- font-weight: 500;
- font-size: 1.4rem;
- letter-spacing: .08rem;
- }
- #global-navigation ul li {
- display: inline-block;
- margin-right: 6rem;
- text-transform: uppercase;
- }
- #global-navigation ul li:last-of-type {margin-right: 0;}
- /* updates tab */
- #updates-button {
- border: 0;
- padding: 0;
- font: inherit;
- cursor:pointer;
- letter-spacing: inherit;
- text-transform: uppercase;
- color: var(--links);
- outline: none;
- background-color: transparent;
- }
- #updates-button:hover {color: var(--links-hover);}
- #updates-tab {
- display: none;
- position: absolute;
- inset: 5.2rem auto auto 50%;
- -ms-transform: translate(-50%, -50%);
- transform: translateX(-50%);
- width: 90vw;
- max-width: 20rem;
- padding: 1.5rem;
- border: 2px solid var(--accents);
- border-radius: 4px;
- font: 400 1.1rem 'quicksand', serif;
- text-transform: none;
- line-height: 140%;
- background-color: var(--background);
- z-index: 9999!important;
- }
- #updates-tab h4 {
- margin-top: 1rem;
- font: 500 1.7rem nygth-regular-italic;
- letter-spacing: .1rem;
- color:var(--titles);
- }
- #updates-tab span {
- padding: 0 .5rem;
- box-shadow: inset 0 -7px var(--accents);
- }
- #updates-tab hr {
- width: .8rem;
- height: .8rem;
- margin: 2rem auto;
- border: 0;
- border-radius: 100%;
- background-color: var(--accents);
- }
- #updates-tab a {font-weight: 600;}
- /* content */
- #container {
- width: 90vw;
- max-width: 60rem;
- margin: 16rem auto;
- }
- /* header */
- #container-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: 5rem;
- }
- #book-title,#choose-chapter, .chapter-number {
- font-family: nygth-regular-italic;
- font-weight: 400;
- margin: 0;
- }
- #book-title {
- color: var(--titles);
- font-size: 3rem;
- margin:0 0 .5rem;
- width: 95%;
- letter-spacing: .05rem;
- }
- #navigate-link {
- font-family: 'quicksand', sans-serif;
- text-transform: uppercase;
- color: var(--text);
- letter-spacing: .05rem;
- }
- #choose-chapter {
- text-align: center;
- width: 13rem;
- font-size: 2.1rem;
- letter-spacing: 0.06rem;
- letter-spacing: .08em;
- color: var(--text);
- flex-shrink: 0;
- position: relative;
- background-color: var(--background);
- cursor: pointer;
- }
- #chapter-navigation {
- display: none;
- position: absolute;
- font:500 1.1rem 'quicksand', serif;
- text-transform: uppercase;
- text-align: center;
- inset:4rem 0 auto ;
- background-color: var(--background);
- }
- #chapter-navigation li{
- margin-bottom: 1rem;
- }
- /* book content */
- main {
- margin-top: 17rem;
- }
- #book-content {
- margin-top: 5rem;
- line-height: 160%;
- font-size: 1.6rem;
- }
- .book-chapter {
- }
- .chapter-divider {
- margin:10rem auto;
- border-top: 1px solid var(--links);
- }
- .chapter-header {
- text-align: center;
- }
- .chapter-number {
- font-size: 6rem;
- letter-spacing: .3rem;
- color: var(--titles);
- }
- .chapter-title {
- font-family: ;
- font-weight: 400;
- text-transform: uppercase;
- font: 400 1.9rem nygth-regular;
- letter-spacing: .5rem;
- }
- /* MEDIA */
- @media only screen and (min-width:0) and (max-width:586px) {
- main {
- margin-top: 10rem;
- }
- #container-header {
- display: block;
- text-align: center;
- }
- #book-title {
- text-align: center;
- margin-right:auto ;
- margin-left:auto ;
- }
- #choose-chapter {
- margin: 2rem auto 0;
- display: block;
- }
- }
- @media only screen and (min-width:0) and (max-width:1400px) {
- #global-navigation ul {
- display: flex;
- justify-content: space-evenly;
- flex-wrap:wrap;
- max-width: 75rem;
- margin: 0 auto;
- padding: 2.5rem 1.5rem 2.5rem;
- }
- #global-navigation ul li {
- margin: 0 1rem 1rem;
- }
- }
- @media only screen and (min-width:0) and (max-width:400px) {
- #global-navigation ul li {
- display:block;
- margin-right: 0;
- }
- }
- </style>
- </head>
- <body oncopy="return false" oncut="return false" onpaste="return false">
- <button class="theme-toggle" aria-label="toggle dark or light mode" type="button"><i class="ph ph-moon light-on" title="toggle dark mode"></i><i class="ph ph-sun light-off" title="toggle light mode"></i></button>
- <!-- global navigation -->
- <nav id="global-navigation"><ul>
- <li><a href="/">home</a></li>
- <li><a href="/ask">inbox</a></li>
- <li><a href="/archive">archive</a></li>
- <li><a href="LINK URL">books</a></li>
- <!-- open updates tab -->
- <li style="position: relative;"><button id="updates-button">updates</button>
- <!-- updates tab content -->
- <div id="updates-tab">
- <h4><span>RAIN ON FIRE</span></h4>
- <p>chapter 10 is updated. <a href="#">read the new chapter here.</a></p>
- <!-- updates divider -->
- <hr>
- <h4><span>rain on fire</span></h4>
- <p>chapter 10 is updated. <a href="#">read the new chapter here.</a></p>
- </div>
- </li>
- </ul></nav>
- <section id="container">
- <!-- header -->
- <header id="container-header">
- <section id="header-titles">
- <!-- book title -->
- <h1 id="book-title">
- Lorem ipsum dolor sit amet, consectetur adipiscing.
- </h1>
- <!-- to novel info link -->
- <a id="navigate-link" href="LINK URL">navigate to novel info</a>
- </section>
- <!-- dropdown -->
- <nav id="choose-chapter">
- chapters:
- <ul id="chapter-navigation">
- <li><a href="LINK URL">chapter 1</a></li>
- <li><a href="LINK URL">chapter 2</a></li>
- <li><a href="LINK URL">chapter 1</a></li>
- <li><a href="LINK URL">chapter 2</a></li>
- <li><a href="LINK URL">chapter 1</a></li>
- <li><a href="LINK URL">chapter 2</a></li>
- <li><a href="LINK URL">chapter 1</a></li>
- <li><a href="LINK URL">chapter 2</a></li>
- <li><a href="LINK URL">chapter 1</a></li>
- <li><a href="LINK URL">chapter 2</a></li>
- <li><a href="LINK URL">chapter 1</a></li>
- <li><a href="LINK URL">chapter 2</a></li>
- <li><a href="LINK URL">chapter 1</a></li>
- <li><a href="LINK URL">chapter 2</a></li>
- <li><a href="LINK URL">chapter 1</a></li>
- <li><a href="LINK URL">chapter 2</a></li>
- <li><a href="LINK URL">chapter 1</a></li>
- <li><a href="LINK URL">chapter 2</a></li>
- <li><a href="LINK URL">chapter 3</a></li>
- </ul>
- </nav>
- </header>
- <!-- main content -->
- <main>
- <!-- chapter start -->
- <article class="book-chapter">
- <!-- chapter header -->
- <header class="chapter-header">
- <h2 class="chapter-number">
- chapter one
- </h2>
- <h3 class="chapter-title">
- chapter title
- </h3>
- </header>
- <!-- book content -->
- <section id="book-content">
- <p>paragraph</p>
- <p>paragraph</p>
- <p>paragraph</p>
- <p>paragraph</p>
- <p>paragraph</p>
- </section>
- </article>
- <!-- chapter divider -->
- <hr class="chapter-divider">
- <!-- chapter start -->
- <article class="book-chapter">
- <!-- chapter header -->
- <header class="chapter-header">
- <h2 class="chapter-number">
- chapter one
- </h2>
- <h3 class="chapter-title">
- chapter title
- </h3>
- </header>
- <!-- book content -->
- <section id="book-content">
- <p>paragraph</p>
- <p>paragraph</p>
- <p>paragraph</p>
- <p>paragraph</p>
- <p>paragraph</p>
- </section>
- </article>
- </main>
- </section> <!-- container -->
- <div style="position:fixed;bottom:2rem;right:2rem;z-index:999999999999999999999!important;font-size:.7rem;letter-spacing:.03rem;"><a href="https://southcodes.tumblr.com" title="coded by southcodes" target="_blank">SC</a></div>
- <!-- jquery -->
- <script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
- <!-- icon font -->
- <script src="https://unpkg.com/@phosphor-icons/web"></script>
- <script>
- // updates tab popup
- $("#updates-button").click(function(){
- $("#updates-tab").fadeToggle();
- });
- // dropdown
- $(document).ready(function(){
- $('#choose-chapter').click(function() {
- $('#chapter-navigation').slideToggle(600);
- return false;
- });
- });
- // disable right click
- document.addEventListener('contextmenu', event => {
- event.preventDefault();
- });
- // dark mode
- const themeToggleButtons = document.querySelectorAll(".theme-toggle");
- themeToggleButtons.forEach((btn) => {
- btn.addEventListener("click", function () {
- // Add theme-transition class for smooth transitions
- document.documentElement.classList.add("theme-transition");
- // Retrieve the current theme and determine the target theme
- let currentTheme = document.documentElement.getAttribute("data-theme");
- let targetTheme = (currentTheme === "light") ? "dark" : "light";
- // Remove theme-transition class after a short delay
- window.setTimeout(function () {
- document.documentElement.classList.remove("theme-transition");
- }, 50);
- // Set the data-theme attribute and store in local storage
- document.documentElement.setAttribute("data-theme", targetTheme);
- localStorage.setItem("theme", targetTheme);
- });
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement