Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- - page #15 'hey, stranger' 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/
- CREDITS:
- - fadein tabs by https://www.w3schools.com/howto/howto_js_tabs.asp
- - normalize css by http://necolas.github.io/normalize.css/
- -->
- <!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}"/>
- <link href="https://fonts.googleapis.com/css?family=Lato:400,700|Merriweather|Open+Sans:400" rel="stylesheet">
- <link href="https://necolas.github.io/normalize.css/7.0.0/normalize.css" rel="stylesheet">
- <style>
- body, figure{margin: 0;padding: 0}
- html{font-size: 14px}
- body {font: 1.1rem/150% 'Lato', sans-serif;color:#333;
- background:url('IMAGE URL') fixed;} /* BACKGROUND IMAGE */
- a {text-decoration: none;color:darkred;} /* LINKS COLOR */
- a:hover {color:crimson;}/* LINKS COLOR ON HOVER*/
- b {font-weight: 700}
- hr {border:0;border-bottom:1px solid #ccc;}
- /* nav */
- nav {position: fixed;top:0;left:0;right: 0;
- width:100%;
- height: 4rem;
- background:rgba(255,255,255,.8);
- padding:0 .5rem;
- border-bottom:1px solid #aaa;
- font:700 1.1rem/4rem 'Lato', sans-serif;
- text-transform: uppercase;
- }
- nav ul li {
- display: inline-block;margin:0 1rem;letter-spacing: .05rem}
- nav ul,nav li {list-style-type:none;margin:0;padding:0;}
- h1 {font:400 2.6rem 'Lato', sans-serif;}
- /* header */
- header {
- width: 60rem;
- margin: 7rem auto;
- max-width: 95vw;
- font-size: .95rem
- }
- header h1 {border-bottom: 3px solid darkred; /* TITLE BORDER BOTTOM COLOR */
- padding:0 .3rem .4rem;display:inline;}
- #description {
- border: 1px solid #aaa;
- padding:0rem .7rem;
- box-sizing: border-box;
- background: white;
- font-size:1.1rem;
- }
- #dimg {
- width: 60rem;
- max-width: 95vw;
- height: 13rem;
- margin-top: 2rem;
- background-image: url('IMAGE URL'); /* HEADER IMAGE */
- background-position: 50% 40%; /* IMAGE POSITION */
- background-size: cover;
- }
- /* main */
- main {
- width: 60rem;
- max-width: 95vw;
- margin:5rem auto;
- text-align:justify;
- line-height: 170%
- }
- main h1 {font-size:1.8rem;margin-bottom: 2rem}
- /* tabs */
- .tab {
- width: 60rem;
- max-width: 95vw;
- border:1px solid #aaa;
- background: white;
- display:flex;
- align-items: center;
- justify-content: space-between;
- }
- .tablinks {
- width:calc(100% / 4);
- text-align: center;
- background: white;
- cursor:pointer;
- padding:1rem 0;
- border:0;
- font-size:1.4rem;
- letter-spacing: .03rem}
- .tablinks:hover {background: #f0ebec}/* TABS ON HOVER COLOR */
- .tablinks:focus {outline:0;}
- .tab div.active {background-color: #e0cccc;} /* ACTIVE TAB COLOR */
- .tabcontent {
- background: white;
- display: none;
- margin-top:2rem;
- border:1px solid #aaa;
- animation: fadeEffect 1s;
- }
- @keyframes fadeEffect {
- from {opacity: 0;}
- to {opacity: 1;}
- }
- /* story */
- #story {
- font:400 1.1rem/170% 'Merriweather', serif;
- padding: 1rem 1.5rem;}
- /* characters */
- #characters {
- padding: 0 1rem;
- }
- .char {
- border-bottom:1px solid #ccc;
- padding: .6rem;
- padding: 2rem 0;}
- .char:last-of-type {border:0;}
- .cimg {
- width:10rem;
- margin-right:1rem;
- border:1px solid #ccc;
- padding:0.3rem;}
- .cinfo {margin:0;vertical-align: top;}
- .char .cinfo p {margin:.7rem 0;}
- .char .cinfo p:first-of-type {margin-top:0;}
- .char .cinfo p:last-of-type {margin-bottom:0;}
- /* information */
- #information {padding: 1.5rem 1rem;font-size:1.15rem;}
- #information p:first-of-type {margin-top:0;}
- #information p:last-of-type {margin-bottom:0;}
- .pinfo {
- border-bottom:1px solid #ccc;
- margin:1.5rem 0;
- padding-bottom:1.5rem;}
- .pinfo:last-of-type {border:0;padding:0;}
- .binfo {
- font-size: 1.1rem;
- text-transform: uppercase;
- background: #e3d8da; /* INFORMATION TITLE BACKGROUND */
- padding:.5rem;
- margin-right:.7rem;
- }
- /* faq */
- #faq {padding: 1rem}
- .ask {margin-bottom:2rem;padding-bottom:2rem;border-bottom:1px solid #ccc;}
- .ask:last-of-type {margin-bottom:0;border:0;}
- .q {
- margin:0;
- border-bottom:3px solid #e3d8da; /* QUESTION BORDER COLOR */
- background: #f0ebec; /* QUESTION BACKGROUND */
- padding: 1rem;
- font-weight: 700;
- text-align: right;
- font-size: 1.2rem
- }
- .a {
- margin:0;
- padding: 1rem;
- background: #f6f6f6; /* ANSWER BACKGROUND COLOR */
- }
- /*DONT TOUCH*/
- footer {z-index:9999;position:fixed;bottom:1.5rem;right:2rem;line-height:0%;padding:1rem .5rem;font-size:.8rem;background:white;font-family:'Open Sans', sans-serif;}
- </style>
- </head>
- <body>
- <!-- !! PLEASE WRAP YOUR PARAGRAPHS IN P TAGS !! -->
- <nav><ul>
- <li><a href="/">home</a></li>
- {block:AskEnabled}<li><a href="/ask">inbox</a></li>{/block:AskEnabled}
- <li><a href="/archive">archive</a></li>
- <li><a href="https://tumblr.com/dashboard">dashboard</a></li>
- </ul></nav>
- <header>
- <h1>Book title</h1>
- <figure id="dimg"></figure> <!-- to add image check css -->
- <article id="description">
- <p>This book is about ...</p>
- </article> <!--END DESCRIPTION-->
- </header>
- <main>
- <div class="tab">
- <div class="tablinks" onclick="openTab(event, 'story')" id="defaultOpen">Story</div>
- <div class="tablinks" onclick="openTab(event, 'characters')">Characters</div>
- <div class="tablinks" onclick="openTab(event, 'information')">Information</div>
- <div class="tablinks" onclick="openTab(event, 'faq')">FAQ</div>
- </div>
- <!-- start story section-->
- <article class="tabcontent" id="story">
- <h1>Chapter One</h1>
- <p>Text text text.</p>
- <hr> <!--divider-->
- <p>text text text</p>
- <h1>Chapter Two</h1>
- <p>text</p>
- </article>
- <!-- end story section-->
- <!-- start characters section -->
- <article class="tabcontent" id="characters">
- <!-- start character-->
- <div class="char">
- <img src="IMAGE URL" class="cimg" align="left">
- <article class="cinfo">
- <p><b>name:</b> icarus</p>
- <p><b>age:</b> 21</p>
- <p><b>status:</b> dead</p>
- <p><b>background:</b> example.</p>
- </article>
- </div>
- <!-- end character -->
- </article>
- <!-- end characters section -->
- <!-- start information section-->
- <article id="information" class="tabcontent">
- <p class="pinfo"><b class="binfo">item 1:</b> Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
- <p class="pinfo"><b class="binfo">item 2:</b> example</p>
- </article>
- <!-- end information section-->
- <!--start FAQ section-->
- <article id="faq" class="tabcontent">
- <div class="ask">
- <p class="q">question?</p>
- <p class="a">answer.</p>
- </div>
- <div class="ask">
- <p class="q">question?</p>
- <p class="a">answer</p>
- </div>
- </article>
- <!--end FAQ section-->
- </main>
- <footer><a href="https://southcodes.tumblr.com" target="_blank" title="southcodes">SC</a></footer>
- <script>
- document.getElementById("defaultOpen").click();
- function openTab(evt, tabName) {
- var i, tabcontent, tablinks;
- tabcontent = document.getElementsByClassName("tabcontent");
- for (i = 0; i < tabcontent.length; i++) {
- tabcontent[i].style.display = "none";
- }
- tablinks = document.getElementsByClassName("tablinks");
- for (i = 0; i < tablinks.length; i++) {
- tablinks[i].className = tablinks[i].className.replace(" active", "");
- }
- document.getElementById(tabName).style.display = "block";
- evt.currentTarget.className += " active";}
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement