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://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/
- -isotope filters by https://isotope.metafizzy.co/
- - 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}"/>
- <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">
- <!-- normalize -->
- <link href="https://necolas.github.io/normalize.css/7.0.0/normalize.css" rel="stylesheet">
- <style>
- /* colors for light mode */
- :root, html[data-theme='light'] {
- --text: #333;
- --background:white;
- --titles: #b88f80;
- --links: #b88f80;
- --links: #b88f80;
- --links-hover: #9b6b59;
- --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;
- --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(--accents);}
- ::-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;}
- p {margin:1rem 0}
- body, figure{margin:0;padding:0}
- html{font: 16px 'quicksand', serif;}
- body {font-size:1rem;color:var(--text);background:var(--background);}
- a {text-decoration: none;color:var(--links);word-break:break-word;}
- a:hover {color:var(--links-hover);}
- blockquote {margin:0;padding:0;}
- img {max-width:100%;height: auto;display: block;margin:0}
- hr {border:0;border-top:1px solid var(--accents);margin:0;}
- @font-face {
- font-family: nygth-regular;
- src: url(https://static.tumblr.com/p5i0ib5/i1sspt31d/nyghtserif-regular.ttf);
- }
- @font-face {
- font-family: nygth-regular-italic;
- src: url(https://static.tumblr.com/p5i0ib5/wGispt31j/nyghtserif-regularitalic.ttf);
- }
- /* 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);
- }
- #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;}
- /* container */
- #container {
- width: 90vw;
- max-width: 70rem;
- margin: 16rem auto;
- }
- /* header */
- #header {
- margin-bottom:15rem;
- text-align: center;
- }
- #page-title {
- font-family: nygth-regular-italic;
- font-size: 6rem;
- font-weight: 400;
- text-align: center;
- color: var(--titles);
- }
- /* filters */
- #filters {
- font-family: 'quicksand', sans-serif;
- font-weight: 500;
- text-transform: uppercase;
- font-size: 1.3rem;
- }
- #filters li {
- list-style-type: none;
- display: inline-block;
- margin:0 1rem
- }
- #filters a {padding:0 .3rem;
- transition-duration: .3s;}
- .current {box-shadow:inset 0 -10px var(--accents);}
- /* novels */
- .novel-wrapper {
- display: flex;
- margin-bottom: 20rem;
- }
- .novel-wrapper:last-of-type {margin-bottom: 0;}
- .novel-content {
- display: flex;
- flex-direction: column;
- justify-content:space-around;
- }
- /* novels layout */
- .novel-wrapper:nth-child(odd) {flex-direction: row-reverse;}
- .novel-wrapper:nth-child(even) .novel-content{
- text-align: left;
- margin-left: 7rem;
- }
- .novel-wrapper:nth-child(odd) .novel-content{
- margin-right: 7rem;
- text-align: right;
- }
- .novel-content,figure.novel-image {
- width: 50%;
- object-fit: cover;
- }
- /* novel title */
- .novel-title {
- font: 500 3rem nygth-regular-italic;
- color: var(--titles);
- letter-spacing: .05rem;
- }
- .novel-text {
- line-height: 155%;
- letter-spacing: .04rem;
- }
- /* novel images */
- img.novel-image {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- /* timestamp + read more */
- footer {
- font-family: 'quicksand', serif;
- font-weight: 500;
- text-transform: uppercase;
- }
- footer time {margin-right: 2rem;}
- .read-more-link span{
- box-shadow: inset 0 -10px var(--accents);
- padding: 0 .5rem;
- font-size: 1.1rem;
- }
- /* MEDIA */
- @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:0px) and (max-width:1000px) {
- .novel-wrapper:nth-child(even) .novel-content{
- text-align: left;
- margin-left: 10%;
- }
- .novel-wrapper:nth-child(odd) .novel-content{
- margin-right: 10%;
- text-align: right;
- }
- }
- @media only screen and (min-width:0px) and (max-width:650px) {
- .novel-wrapper {
- display: block;
- }
- .novel-content{
- margin: 4rem 0 0!important;
- }
- .novel-content,figure.novel-image {
- width: 100%;
- object-fit: cover;
- }
- .novel-content {
- margin-top: 4rem;
- }
- }
- @media only screen and (min-width:0) and (max-width:400px) {
- #global-navigation ul li {
- display:block;
- margin-right: 0;
- }
- }
- </style>
- </head>
- <body>
- <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="header">
- <h1 id="page-title">the untold</h1>
- <!-- filters -->
- <nav id="filters">
- <li><a href="#" data-filter="*" class="current">all</a></li>
- <li><a href="#" data-filter=".filipino">filipino</a></li>
- <li><a href="#" data-filter=".english">english</a></li>
- </nav>
- </header>
- <!-- main content -->
- <main id="main-wrapper">
- <!-- novel start -->
- <section class="novel-wrapper english">
- <!-- novel image -->
- <figure class="novel-image"><img src="https://images.unsplash.com/photo-1713731267887-df60125ecaeb?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTR8fGJyb3duJTIwY29sb3J8ZW58MHx8MHx8fDA%3D" alt="" class="novel-image"></figure>
- <article class="novel-content">
- <!-- novel title -->
- <h2 class="novel-title">blog title</h2>
- <!-- novel text -->
- <article class="novel-text">
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ratione suscipit vel numquam eveniet minus quia aspernatur quod aliquid quisquam voluptate aliquam obcaecati tenetur nihil, quas alias ipsam molestias quibusdam delectus?</p>
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ratione suscipit vel numquam eveniet minus quia aspernatur quod aliquid quisquam voluptate aliquam obcaecati tenetur nihil, quas alias ipsam molestias quibusdam delectus?</p>
- </article>
- <footer>
- <!-- novel date -->
- <time datetime="">february 2 2025</time>
- <!-- novel read more link -->
- <a href="" class="read-more-link"><span>read more</span></a>
- </article>
- </section>
- <!-- novel end -->
- <!-- novel start -->
- <section class="novel-wrapper english">
- <!-- novel image -->
- <figure class="novel-image"><img src="https://images.unsplash.com/photo-1713731267887-df60125ecaeb?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTR8fGJyb3duJTIwY29sb3J8ZW58MHx8MHx8fDA%3D" alt="" class="novel-image"></figure>
- <article class="novel-content">
- <!-- novel title -->
- <h2 class="novel-title">blog title</h2>
- <!-- novel text -->
- <article class="novel-text">
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ratione suscipit vel numquam eveniet minus quia aspernatur quod aliquid quisquam voluptate aliquam obcaecati tenetur nihil, quas alias ipsam molestias quibusdam delectus?</p>
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ratione suscipit vel numquam eveniet minus quia aspernatur quod aliquid quisquam voluptate aliquam obcaecati tenetur nihil, quas alias ipsam molestias quibusdam delectus?</p>
- </article>
- <footer>
- <!-- novel date -->
- <time datetime="">february 2 2025</time>
- <!-- novel read more link -->
- <a href="" class="read-more-link"><span>read more</span></a>
- </article>
- </section>
- <!-- novel end -->
- <!-- novel start -->
- <section class="novel-wrapper english">
- <!-- novel image -->
- <figure class="novel-image"><img src="https://images.unsplash.com/photo-1713731267887-df60125ecaeb?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTR8fGJyb3duJTIwY29sb3J8ZW58MHx8MHx8fDA%3D" alt="" class="novel-image"></figure>
- <article class="novel-content">
- <!-- novel title -->
- <h2 class="novel-title">blog title</h2>
- <!-- novel text -->
- <article class="novel-text">
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ratione suscipit vel numquam eveniet minus quia aspernatur quod aliquid quisquam voluptate aliquam obcaecati tenetur nihil, quas alias ipsam molestias quibusdam delectus?</p>
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ratione suscipit vel numquam eveniet minus quia aspernatur quod aliquid quisquam voluptate aliquam obcaecati tenetur nihil, quas alias ipsam molestias quibusdam delectus?</p>
- </article>
- <footer>
- <!-- novel date -->
- <time datetime="">february 2 2025</time>
- <!-- novel read more link -->
- <a href="" class="read-more-link"><span>read more</span></a>
- </article>
- </section>
- <!-- novel end -->
- <!-- novel start -->
- <section class="novel-wrapper english">
- <!-- novel image -->
- <figure class="novel-image"><img src="https://images.unsplash.com/photo-1713731267887-df60125ecaeb?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTR8fGJyb3duJTIwY29sb3J8ZW58MHx8MHx8fDA%3D" alt="" class="novel-image"></figure>
- <article class="novel-content">
- <!-- novel title -->
- <h2 class="novel-title">blog title</h2>
- <!-- novel text -->
- <article class="novel-text">
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ratione suscipit vel numquam eveniet minus quia aspernatur quod aliquid quisquam voluptate aliquam obcaecati tenetur nihil, quas alias ipsam molestias quibusdam delectus?</p>
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ratione suscipit vel numquam eveniet minus quia aspernatur quod aliquid quisquam voluptate aliquam obcaecati tenetur nihil, quas alias ipsam molestias quibusdam delectus?</p>
- </article>
- <footer>
- <!-- novel date -->
- <time datetime="">february 2 2025</time>
- <!-- novel read more link -->
- <a href="" class="read-more-link"><span>read more</span></a>
- </article>
- </section>
- <!-- novel end -->
- </main>
- </section>
- <!-- do not touch -->
- <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://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js'></script>
- <!-- icons font -->
- <script src="https://unpkg.com/@phosphor-icons/web"></script>
- <!-- isotope filters -->
- <script src='https://npmcdn.com/isotope-layout@3/dist/isotope.pkgd.js'></script>
- <script>
- // isotope
- $(window).load(function(){
- var $container = $('#main-wrapper');
- $container.isotope({
- filter: '*',
- animationOptions: {
- duration: 750,
- easing: 'linear',
- queue: false
- }
- });
- $('#header a').click(function(){
- $('#header .current').removeClass('current');
- $(this).addClass('current');
- var selector = $(this).attr('data-filter');
- $container.isotope({
- filter: selector,
- animationOptions: {
- duration: 750,
- easing: 'linear',
- queue: false
- }
- });
- return false;
- });
- });
- // updates tab popup
- $("#updates-button").click(function(){
- $("#updates-tab").fadeToggle();
- });
- </script>
- <script>
- // disable right click
- document.addEventListener('contextmenu', event => {
- event.preventDefault();
- });
- // updates tab popup
- $("#updates-button").click(function(){
- $("#updates-tab").fadeToggle();
- });
- // 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