Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- - book page 'skye' by skye southcodes.tumblr.com
- - modify as you please but please do not touch the credit
- - any errors? need help? have questions? let me know!
- southcodes.tumblr.com/inbox
- - normalize css by https://github.com/necolas
- - fonts by google
- - icon font by https://fontawesome.com/icons
- - multiple dropdowns http://jsfiddle.net/SzQwS/
- -->
- <!DOCTYPE html>
- <html>
- <head>
- <title>{title}</title>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width">
- <link rel="shortcut icon" href="{favicon}">
- <link rel="alternate" type="application/rss+xml" href="{RSS}">
- <meta name="description" content="{MetaDescription}"/>
- <!-- 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=Corinthia&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Open+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600;1,700;1,800&family=Square+Peg&display=swap" rel="stylesheet">
- <!-- normalize css -->
- <link rel="stylesheet" type="text/css" href="https://necolas.github.io/normalize.css/8.0.1/normalize.css">
- <style>
- :root {
- --borders:#eee;
- --background:white;
- --text:#444;
- --links: lightblue;
- --links-hover: blue;
- --icons: lightblue;
- }
- .tmblr-iframe {margin:.7rem;opacity:.6;-ms-transform: scale(0.85); /* IE 9 */-webkit-transform: scale(0.85); /* Safari */transform: scale(0.85);}
- .tmblr-iframe:hover {opacity:.8;}
- ::-webkit-scrollbar-thumb:vertical {border-left:2px solid var(--links);}
- ::-webkit-scrollbar {width:6px;height:0;}
- ::-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+ */
- background:#fafafa;
- border:1px solid var(--borders);
- padding:1rem;
- }
- body, figure{margin:0;padding:0}
- html{font: 14px 'Open Sans', sans-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;}
- blockquote blockquote {border-left:1px solid var(--borders);padding:.1rem 0 .1rem .7rem;}
- img {max-width:100%;height: auto;display: block;margin: 0}
- hr {border:0;border-top:1px solid var(--borders);margin:1rem 0;}
- video { max-width:100%;}
- /* containers */
- #container {
- display: flex;
- flex-flow: row nowrap;
- justify-content: space-evenly;
- align-items: center;
- background-color: var(--background);
- }
- #divider {
- width:1px;
- height:90vh;
- background:var(--borders);
- }
- header,main {
- width: 50%;
- height: 100vh;
- overflow:auto
- }
- /* header */
- #header-wrapper {
- padding:5rem 3rem 3rem;
- box-sizing: border-box;
- }
- #header-wrapper article:last-of-type{
- border:0;
- padding-bottom: 0;
- margin-bottom: 3rem;
- }
- /* links */
- #links {
- display: flex;
- flex-flow: row wrap;
- justify-content: space-around;
- margin-bottom: 3rem;
- padding-bottom: 3rem;
- border-bottom:1px solid var(--borders);
- text-transform: uppercase;
- font-weight: 600;
- font-family: 'Montserrat', sans-serif;
- font-size: .9rem;
- }
- #links li {
- margin:0 1.5rem 1rem;
- list-style: none;
- }
- /* summary */
- #summary {
- font-size: .9rem;
- line-height: 160%;
- font-style: italic;
- border-bottom:1px solid var(--borders);
- letter-spacing: .04rem;
- padding-bottom: 2rem;
- }
- /* gallery */
- #gallery {
- display: flex;
- flex-flow: row wrap;
- justify-content: space-around;
- border-bottom:1px solid var(--borders);
- margin:4rem 0;
- padding-bottom: 4rem;
- }
- figure.gallery-image {
- width:8rem;
- height:8rem;
- border:10px solid var(--background);
- outline: 1px solid var(--borders);
- margin:2rem .5rem;
- box-sizing: border-box;
- }
- img.gallery-image {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- /* characters */
- #characters-wrapper {
- margin-top: 3rem;
- display: flex;
- flex-flow: row wrap;
- justify-content: space-between;
- border-bottom:1px solid var(--borders);
- margin:4rem 0 4rem;
- padding-bottom: 4rem;
- }
- .character {
- display: flex;
- flex-flow: row wrap;
- justify-content: space-between;
- margin:1rem 1rem 1rem;
- vertical-align: top;
- width: calc(50% - 2rem);
- font-size: .9rem!important;
- letter-spacing: .05rem;
- }
- figure.character-image {
- width:5rem;
- height:5rem;
- border:7px solid var(--background);
- outline: 1px solid var(--borders);
- margin:1rem 0;
- box-sizing: border-box;
- display: inline-block;
- vertical-align: middle;
- border-radius: 100%;
- }
- img.character-image {
- width: 100%;
- height: 100%;
- object-fit: cover;
- border-radius: 100%;
- }
- .character-inside {
- vertical-align: middle;
- display: inline-block;
- background-color: #fcfcfc;
- width: calc(100% - 6rem);
- height: 7rem;
- overflow: auto;
- border: 1px solid var(--borders);
- box-sizing: border-box;
- padding:1rem
- }
- .character-name {
- text-transform: uppercase;
- font-family: 'Montserrat', sans-serif;
- font-weight: 600;
- margin-bottom: 1.5rem;
- font-size: 1rem;
- }
- .character-description li {
- list-style: none;
- margin:1rem 0;
- border-bottom: 1px solid #eee;
- padding-bottom: 1rem;
- }
- /* details & triggers */
- #details-triggers {
- display: flex;
- font-size: .9rem;
- line-height: 160%;
- letter-spacing: .04rem;
- padding-bottom: 4rem;
- margin-bottom: 4rem;
- border-bottom: 1px solid #eee;
- }
- #details,#triggers {
- flex-grow:1;
- width:50%;
- margin:0 1rem;
- list-style: none;
- }
- #details li,#triggers li{
- margin:1rem 0
- }
- #details li:before {
- content: '\f138';
- font-weight: 900;
- margin-right: 1rem;
- font-family: 'Font Awesome 5 Free';
- color:var(--icons)
- }
- #triggers li:before {
- content: '\f05e';
- font-family: 'Font Awesome 5 Free';
- margin-right: 1rem;
- font-weight: 900;
- color:red
- }
- /* faq */
- #faq {
- }
- .question-wrapper {
- margin-bottom: 4rem;
- padding-bottom: 4rem;
- position: relative;
- }
- .question-wrapper:after {
- content: '';
- width:50%;
- height:1px;
- position: absolute;bottom:0;right:0;left:0;
- background-color: var(--borders);
- margin:auto
- }
- .question-wrapper:last-of-type:after {
- display: none;
- }
- .question-wrapper:last-of-type {
- margin-bottom: 0;
- padding-bottom: 0;
- }
- .question {
- line-height: 155%;
- font-weight: 600;
- cursor: pointer;
- }
- .question:before {
- content:'O ';
- font-weight: 900;
- color:var(--icons);
- font-family: 'Montserrat', sans-serif;
- font-size: 1.1rem;
- margin-right: 1rem;
- }
- .answer {
- display:none;
- margin-top: 2rem;
- font-size: .9rem;
- line-height: 150%;
- }
- /* book section */
- #main-wrapper {
- max-width: 45rem;
- padding:3rem 2rem;
- box-sizing: border-box;
- margin:auto
- }
- /* banner */
- figure.banner {
- width:100%;
- height: 15rem;
- position:relative
- }
- img.banner {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- #book-title {
- background-color: rgba(255, 255, 255,.5);
- width: 100%;
- margin:0;
- position: absolute;
- padding:2rem 1rem;
- box-sizing: border-box;
- text-align: center;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- font-size: 1.4rem;
- overflow: auto;
- max-height: 15rem;
- font-size: 4rem;
- font-weight: 400;
- font-family: 'Corinthia', cursive;
- }
- /* chapters */
- .chapter-title {
- text-align: center;
- text-transform: uppercase;
- font-family: 'Montserrat', sans-serif;
- margin: 5rem 0;
- padding-top: 5rem;
- border-top: 1px solid var(--borders);
- }
- .chapter-title:first-of-type {
- border:0;
- padding:0
- }
- .book-chapter {
- margin-top:5rem;
- line-height: 160%;
- }
- #open-popup {
- display: none;
- }
- /* MEDIA */
- @media only screen and (min-width:0px) and (max-width:770px) {
- #container {
- display: block;
- align-items: center;
- background-color: var(--background);
- }
- #divider {
- display:none;
- }
- header,main {
- width: 100%;
- }
- #characters-wrapper {
- display: block;
- border-bottom:1px solid var(--borders);
- margin:4rem 0 4rem;
- padding-bottom: 4rem;
- }
- .character {
- display: block;
- margin:2rem 0 ;
- vertical-align: top;
- width: 100%!important;
- }
- .character:last-of-type{
- margin-bottom: 0;
- }
- figure.character-image {
- display: block;
- margin:0 auto 2rem
- }
- .character-inside {
- display: block;
- width: 100%;
- height: 100%;
- overflow: auto;
- max-width: 35rem;
- margin: auto;
- }
- #details-triggers {
- display: block;
- font-size: .9rem;
- line-height: 160%;
- letter-spacing: .04rem;
- padding-bottom: 4rem;
- margin-bottom: 4rem;
- border-bottom: 1px solid #eee;
- }
- #details,#triggers {
- flex-grow:1;
- width:100%;
- margin:1rem;
- list-style: none;
- }
- #triggers {
- margin-top: 3rem;
- }
- }
- @media only screen and (min-width:770px) and (max-width:1150px) {
- #characters-wrapper {
- display: block;
- }
- .character-inside {
- width: calc(100% - 7rem);
- }
- .character {
- display: flex;
- flex-flow: row wrap;
- justify-content: space-between;
- margin:3rem 0 ;
- vertical-align: top;
- width: 100%;
- }
- }
- @media only screen and (min-width:0) and (max-width:950px) {
- .show-popup {
- display: block;
- }
- .overflow {
- overflow:hidden
- }
- #open-popup {
- background:var(--icons);
- /* width:3rem; */
- text-align: center;
- display: block;
- position: fixed;top:2rem;left:2rem;
- z-index: 9999999;
- font-size: .8rem;
- cursor: pointer;
- padding:1rem;
- font-family: 'Montserrat', sans-serif;
- border: 1px solid var(--borders);
- font-weight: 600;
- text-transform: uppercase;
- border-radius: 3px;
- }
- #open-popup .fa-solid {
- font-size: 1.4rem;
- margin-left: 1rem;
- color:var(--background);
- vertical-align: middle;
- }
- #container {
- display: block;
- align-items: center;
- background-color: var(--background);
- }
- #divider {
- display:none;
- }
- header,main {
- width: 100%;
- height: 100%;
- overflow:auto
- }
- #main-wrapper {
- min-height: 100%;
- position: relative;
- padding-top: 7rem;
- }
- header {
- position: fixed;
- top:0;right:0;left:0;bottom:0;
- padding-top: 3rem;
- display: none;
- background-color: var(--background);
- }
- #links {
- margin-top: 3rem;
- }
- }
- </style>
- </head>
- <body>
- <div id="open-popup">find out more <i class="fa-solid fa-book-open"></i></div>
- <div id="container">
- <main>
- <section id="main-wrapper">
- <figure class="banner">
- <img src="IMAGE URL" alt="" class="banner">
- <h1 id="book-title">title</h1>
- </figure>
- <!-- chapter start -->
- <div class="book-chapter">
- <h2 class="chapter-title">chapter I</h2>
- chapter 1
- </div>
- <!-- chapter end -->
- <!-- chapter start -->
- <div class="book-chapter">
- <h2 class="chapter-title">chapter II</h2>
- chapter 2
- </div>
- <!-- chapter end -->
- </section> <!-- main wrapper end -->
- </main>
- <div id="divider"></div>
- <header>
- <section id="header-wrapper">
- <!-- links start -->
- <article id="links">
- <li><a href="">link 1</a></li>
- |
- <li><a href="">link 2</a></li>
- |
- <li><a href="">link 3</a></li>
- </article>
- <!-- links end -->
- <!-- summary start -->
- <article id="summary">
- <p>summary</p>
- </article>
- <!-- summary end -->
- <!-- gallery start -->
- <article id="gallery">
- <figure class="gallery-image"><img src="IMAGE URL" alt="" class="gallery-image"></figure>
- <figure class="gallery-image"><img src="IMAGE URL" alt="" class="gallery-image"></figure>
- <figure class="gallery-image"><img src="IMAGE URL" alt="" class="gallery-image"></figure>
- <figure class="gallery-image"><img src="IMAGE URL" alt="" class="gallery-image"></figure>
- </article>
- <!-- gallery end -->
- <!-- characters wrapper -->
- <article id="characters-wrapper">
- <!-- character start -->
- <div class="character">
- <figure class="character-image">
- <img class="character-image" src="IMAGE URL" alt="" align="left">
- </figure>
- <div class="character-inside">
- <div class="character-name">name</div>
- <div class="character-description">
- <li>detail 1</li>
- <li>detail 2</li>
- <p>paragraph</p>
- </div>
- </div> <!-- character inside -->
- </div>
- <!-- character end -->
- <!-- character start -->
- <div class="character">
- <figure class="character-image">
- <img class="character-image" src="IMAGE URL" alt="" align="left">
- </figure>
- <div class="character-inside">
- <div class="character-name">name</div>
- <div class="character-description">
- <li>detail 1</li>
- <li>detail 2</li>
- <p>paragraph</p>
- </div>
- </div> <!-- character inside -->
- </div>
- <!-- character end -->
- </article>
- <!-- characters wrapper -->
- <!-- details and triggers start -->
- <article id="details-triggers">
- <div id="details">
- <li>details 1</li>
- <li>details 2</li>
- <li>details 3</li>
- </div>
- <div id="triggers">
- <li>trigger 1</li>
- <li>trigger 2</li>
- <li>trigger 3</li>
- </div>
- </article>
- <!-- details and triggers end -->
- <!-- faq start -->
- <article id="faq">
- <!-- question start -->
- <div class="question-wrapper">
- <div class="question">
- question?
- </div>
- <div class="answer">
- answer!
- </div>
- </div>
- <!-- question end -->
- <!-- question start -->
- <div class="question-wrapper">
- <div class="question">
- question 2?
- </div>
- <div class="answer">
- answer 2!
- </div>
- </div>
- <!-- question end -->
- </article>
- <!-- faq end -->
- </section> <!-- header wrapper -->
- </header>
- </div> <!-- container -->
- <!-- dont touch -->
- <div style="position: fixed;bottom: 2rem;right: 2rem;background:white;border-radius:5px;width:25px;height:25px;text-align: center;line-height: 25px;z-index: inherit;9999999999999!important"><a target="_blank" style="color:#333" href="https://southcodes.tumblr.com/">sc</a></div>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
- <!-- icons font -->
- <script src="https://kit.fontawesome.com/0993e30c04.js" crossorigin="anonymous"></script>
- <script>
- $( document ).ready(function() {
- // disable scroll
- $('#open-popup').click(function(){
- $('body').toggleClass('overflow');
- return false;
- });
- // show popup
- $( "#open-popup" ).click(function() {
- $( 'header' ).toggleClass( "show-popup" );
- });
- // faq dropdowns
- $('.question').click(function(){
- $(this).next('.answer').slideToggle();
- });
- // anchor links animation
- $('.anchor').click(function(){
- $('html, body').animate({
- scrollTop: $( $(this).attr('href') ).offset().top
- }, 450); return false;
- });
- });
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment