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}"/>
- <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>
- :root {
- --hover-image-background: rgba(196, 170, 101, 0.5);
- }
- /* colors for light mode */
- :root, html[data-theme='light'] {
- --light-on: block;
- --light-off: none;
- --text: #333;
- --background:white;
- --titles: #b88f80;
- --links: #b88f80;
- --links-hover: #9b6b59;
- --accents: #d1a990;
- --toggle-button-icon:rgb(218, 215, 215);
- --toggle-button-background:rgb(51, 49, 49);
- }
- /* 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: 14px 'quicksand', sans-serif;}
- body {font-size:1rem;color:var(--text);background:var(--background);font-family: 'Palatino';}
- 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;}
- ol,li,ul {list-style-type: none;padding:0;margin: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-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: 95vw;
- max-width: 85rem;
- margin: 16rem auto 8rem;
- }
- #header {margin-bottom: 7rem;}
- #page-title {
- font-family: nygth-regular-italic;
- text-align: center;
- font-size: 6rem;
- font-weight: 400;
- color: var(--titles);
- }
- /* filters */
- #filters {
- font-family: 'quicksand', serif;
- font-weight: 500;
- text-transform: uppercase;
- font-size: 1.3rem;
- text-align: center;
- }
- #filters li {
- display: inline-block;
- list-style-type: none;
- margin:0 1rem;
- letter-spacing: .1rem;
- }
- #filters a {padding:0 .5rem}
- .current {
- box-shadow:inset 0 -10px var(--accents);
- transition-duration: .3s;
- }
- /* novels */
- .novel-wrapper {
- width: calc(33% - 6rem);
- margin:8rem 3rem
- }
- /* novel image */
- .novel-image {
- width: 100%;
- position: relative;
- transition-duration: .9s;
- }
- .novel-title {
- margin:1.5rem 0 0;
- color: var(--titles);
- font-weight: 400;
- text-transform: uppercase;
- letter-spacing: .07rem;
- }
- .novel-link {
- font-size: 1.4rem;
- box-shadow:inset 0 -10px var(--accents);
- }
- .novel-image:hover img{
- filter: blur(8px);
- -webkit-filter: blur(5px);
- }
- .novel-image:hover .image-hover {opacity: 1;}
- .image-hover {
- position: absolute;
- inset: 0;
- opacity: 0;
- z-index: 9999!important;
- padding: 2rem;
- overflow: auto;
- background-color: var(--hover-image-background);
- font-family: 'quicksand', serif!important;
- font-size: 1.2rem;
- transition-duration: .3s;
- }
- .hover-title {
- margin-bottom: 2rem;
- font-family: nyght-regular;
- font-size: 2.6rem;
- font-weight: 400;
- }
- .image-hover li{
- margin-bottom: 1.5rem;
- font-size: 1.2rem;
- }
- .image-hover span{
- margin-right: 1rem;
- font-weight: 500;
- font-family: nyght-regular;
- font-size: 1.4rem;
- text-transform: uppercase;
- }
- /* 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;
- }
- #filters ul:last-of-type {
- margin-top: 0;
- }
- #filters li {
- display: inline-block;
- margin:0 1rem 2rem;
- }
- }
- @media only screen and (min-width:551px) and (max-width:1000px) {
- .novel-wrapper {
- width: calc(50% - 6rem);
- margin:0 3rem 8rem
- }
- }
- @media only screen and (min-width:0) and (max-width:550px) {
- #container {
- margin: 16rem auto 8rem;
- }
- .novel-wrapper {
- width: 100%;
- margin:0 0 8rem;
- padding:0 2rem;
- }
- }
- @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">
- <!-- page title -->
- <h1 id="page-title">novels</h1>
- <!-- filters -->
- <nav id="filters">
- <li><a href="#" data-filter="*" class="current">all</a></li>
- <ul>
- <li><a href="#" data-filter=".filipino">filipino</a></li>
- <li><a href="#" data-filter=".english">english</a></li>
- <li><a href="#" data-filter=".red">red</a></li>
- <li><a href="#" data-filter=".black">black</a></li>
- </ul>
- </nav>
- </header>
- <main id="main-wrapper">
- <!-- novel start -->
- <article class="novel-wrapper english red">
- <!-- novel image -->
- <figure class="novel-image"><div class="hover-image-blur"><img src="https://mail.google.com/mail/u/0?ui=2&ik=b5020bf892&attid=0.13&permmsgid=msg-f:1821410995498506444&th=1946f3a670add8cc&view=fimg&fur=ip&permmsgid=msg-f:1821410995498506444&sz=s0-l75-ft&attbid=ANGjdJ-E7ae0AJkP3eCXPZ1Ov2CTfgF8g0sVaawWi7H6d8VXoDRS_vxVs92ldP4V0LJzsAUu1ICpccb6R8_7dwJ9wwRoqGNApihWuZFwEfKmD_85f5lDd7EJ6Xe0Gi0&disp=emb&realattid=3056BC86-BA37-4F19-8135-0935FB242C24&zw" alt="" class="novel-image"></div>
- <!-- hover content -->
- <div class="image-hover"><div>
- <h2 class="hover-title">title</h2>
- <ul>
- <li><span>title</span> content</li>
- <li><span>title</span> content</li>
- <li><span>title</span> content</li>
- <li><span>title</span> content</li>
- </ul>
- </div></div>
- </figure>
- <!-- novel title -->
- <h2 class="novel-title">novel title</h2>
- <!-- read more link -->
- <a href="" class="novel-link">read more</a>
- </article>
- <!-- novel end -->
- <!-- novel start -->
- <article class="novel-wrapper english red">
- <!-- novel image -->
- <figure class="novel-image"><div class="hover-image-blur"><img src="https://mail.google.com/mail/u/0?ui=2&ik=b5020bf892&attid=0.13&permmsgid=msg-f:1821410995498506444&th=1946f3a670add8cc&view=fimg&fur=ip&permmsgid=msg-f:1821410995498506444&sz=s0-l75-ft&attbid=ANGjdJ-E7ae0AJkP3eCXPZ1Ov2CTfgF8g0sVaawWi7H6d8VXoDRS_vxVs92ldP4V0LJzsAUu1ICpccb6R8_7dwJ9wwRoqGNApihWuZFwEfKmD_85f5lDd7EJ6Xe0Gi0&disp=emb&realattid=3056BC86-BA37-4F19-8135-0935FB242C24&zw" alt="" class="novel-image"></div>
- <!-- hover content -->
- <div class="image-hover"><div>
- <h2 class="hover-title">title</h2>
- <ul>
- <li><span>title</span> content</li>
- <li><span>title</span> content</li>
- <li><span>title</span> content</li>
- <li><span>title</span> content</li>
- </ul>
- </div></div>
- </figure>
- <!-- novel title -->
- <h2 class="novel-title">novel title</h2>
- <!-- read more link -->
- <a href="" class="novel-link">read more</a>
- </article>
- <!-- novel end -->
- <!-- novel start -->
- <article class="novel-wrapper filipino black">
- <!-- novel image -->
- <figure class="novel-image"><div class="hover-image-blur"><img src="https://mail.google.com/mail/u/0?ui=2&ik=b5020bf892&attid=0.13&permmsgid=msg-f:1821410995498506444&th=1946f3a670add8cc&view=fimg&fur=ip&permmsgid=msg-f:1821410995498506444&sz=s0-l75-ft&attbid=ANGjdJ-E7ae0AJkP3eCXPZ1Ov2CTfgF8g0sVaawWi7H6d8VXoDRS_vxVs92ldP4V0LJzsAUu1ICpccb6R8_7dwJ9wwRoqGNApihWuZFwEfKmD_85f5lDd7EJ6Xe0Gi0&disp=emb&realattid=3056BC86-BA37-4F19-8135-0935FB242C24&zw" alt="" class="novel-image"></div>
- <!-- hover content -->
- <div class="image-hover"><div>
- <h2 class="hover-title">title</h2>
- <ul>
- <li><span>title</span> content</li>
- <li><span>title</span> content</li>
- <li><span>title</span> content</li>
- <li><span>title</span> content</li>
- </ul>
- </div></div>
- </figure>
- <!-- novel title -->
- <h2 class="novel-title">novel title</h2>
- <!-- read more link -->
- <a href="" class="novel-link">read more</a>
- </article>
- <!-- novel end -->
- <!-- novel start -->
- <article class="novel-wrapper english red">
- <!-- novel image -->
- <figure class="novel-image"><div class="hover-image-blur"><img src="https://mail.google.com/mail/u/0?ui=2&ik=b5020bf892&attid=0.13&permmsgid=msg-f:1821410995498506444&th=1946f3a670add8cc&view=fimg&fur=ip&permmsgid=msg-f:1821410995498506444&sz=s0-l75-ft&attbid=ANGjdJ-E7ae0AJkP3eCXPZ1Ov2CTfgF8g0sVaawWi7H6d8VXoDRS_vxVs92ldP4V0LJzsAUu1ICpccb6R8_7dwJ9wwRoqGNApihWuZFwEfKmD_85f5lDd7EJ6Xe0Gi0&disp=emb&realattid=3056BC86-BA37-4F19-8135-0935FB242C24&zw" alt="" class="novel-image"></div>
- <!-- hover content -->
- <div class="image-hover"><div>
- <h2 class="hover-title">title</h2>
- <ul>
- <li><span>title</span> content</li>
- <li><span>title</span> content</li>
- <li><span>title</span> content</li>
- <li><span>title</span> content</li>
- </ul>
- </div></div>
- </figure>
- <!-- novel title -->
- <h2 class="novel-title">novel title</h2>
- <!-- read more link -->
- <a href="" class="novel-link">read more</a>
- </article>
- <!-- 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>
- $(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>
- // 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