Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- - characters page 'is it over now?' 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://feathericons.com/
- - carousel by https://yeolithm.com/carousel/tutorial
- -->
- <!DOCTYPE html>
- <html>
- <head>
- <title>{title}</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="shortcut icon" href="{favicon}">
- <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=Karla:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&?family=Inconsolata:wght@400;500;600;700;800;900&display=swap" rel="stylesheet">
- <!-- normalize -->
- <link href="https://necolas.github.io/normalize.css/7.0.0/normalize.css" rel="stylesheet">
- <style>
- :root {
- --outside-background: #f6f6f6;
- --background:#ffffff;
- --text:#333;
- --links: #aaa;
- --links-hover: #000;
- --borders:#ddd;
- --icons: #aaa;
- }
- .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(--borders);}
- ::-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 'Karla', sans-serif;}
- body {font-size:14px;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(--borders);margin:0;}
- /* carousel global */
- #book-button:checked ~ #carousel #panels {-webkit-transform: translateY(0);transform: translateY(0);}
- #characters-button:checked ~ #carousel #panels { -webkit-transform: translateY(-100%);transform: translateY-100%);}
- /* content */
- #container {
- display: flex;
- height: 100vh;
- }
- #carousel, #carousel-navigation {
- flex: initial;
- display: block;
- }
- #carousel {
- overflow: hidden;
- width: 100%;
- height: 100vh;
- background-color: var(--outside-background);
- }
- /* carousel navigation */
- #carousel-navigation {padding: 6rem 0rem 3rem 3rem;}
- [class^="label_"] {
- transition: .2s;
- display: block;
- cursor: pointer;
- padding: .7rem .8rem;
- border-radius: 5px;
- margin-bottom: 3rem;
- }
- [class^="label_"]:hover {background-color: var(--icons);}
- #carousel-navigation .feather-icon {
- width: 20px;
- height: 20px;
- opacity: 1;
- color:var(--icons)
- }
- #book-button:checked ~ #carousel-navigation .label_book,
- #characters-button:checked ~ #carousel-navigation .label_characters{background-color: var(--icons);}
- #book-button:checked ~ #carousel-navigation .label_book .feather-icon,
- #characters-button:checked ~ #carousel-navigation .label_characters .feather-icon{color: var(--background);}
- [class^="label_"]:hover .feather-icon{color: var(--background)!important;}
- /* panels */
- #panels {
- position: relative;
- width: 100%;
- max-width: 65rem;
- height: 100%;
- transition: .3s;
- }
- [class^="panel_"] {
- overflow: auto;
- position: relative;
- width: inherit;
- height: inherit;
- padding: 3rem;
- background-color: var(--background);
- }
- /* book panel */
- /* book section */
- /* book cover */
- .book-cover {
- width: 100%;
- height: 20rem;
- }
- img.book-cover {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- /* page title */
- #page-title {
- font: 500 2rem 'Inconsolata', monospace;
- text-align: center;
- margin-top: 3rem;
- }
- /* book summary */
- #book-summary {
- max-width: 50rem;
- margin:3rem auto 0;
- letter-spacing: .04rem;
- line-height: 130%;
- }
- /* divider dot */
- #divider {
- margin:5rem auto;
- position: relative;
- }
- #divider hr {
- max-width: 80%;
- width: 38rem;
- position: absolute;
- z-index: 0;
- inset: 0;
- margin: auto;
- }
- #divider .feather-icon {
- margin: auto;
- color:var(--icons);
- width: 45px;
- height: 45px;
- display: block;
- z-index: 1;
- position: relative;
- background-color: var(--icons);
- border:15px solid var(--background);
- border-radius: 100%;
- }
- /* author section */
- figure.author-image {
- width: 15rem;
- height: 15rem;
- float:left;
- margin:0 2rem 1rem 0;
- border:.7rem solid var(--background);
- outline: 1px solid var(--borders);
- }
- img.author-image {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- /* author name */
- #author-name {font: 500 2rem 'Inconsolata', monospace;}
- #author-name::first-letter {
- color: var(--icons);
- font-weight: 600;
- }
- /* author about */
- #author-about {
- margin-top: 2rem;
- letter-spacing: .03rem;
- line-height: 110%;
- max-width: 50rem;
- }
- /* author links */
- #author-links nav ul {
- list-style: none;
- margin-top: 2rem;
- }
- #author-links nav ul li{
- display: inline-block;
- margin:.5rem 1.5rem .5rem 0;
- padding: .3rem .5rem;
- border: 1px solid var(--borders);
- border-radius: 3px;
- }
- /* sns */
- #author-sns {margin-top: 2rem;}
- #author-sns nav ul{list-style: none;}
- #author-sns nav ul li{
- margin:0 2rem 1rem 0;
- display: inline-block;
- }
- #author-sns .fa-brands {
- color: var(--icons);
- font-size: 1.5rem;
- }
- /* characters panel */
- .column-count {
- column-gap: 1rem;
- column-count: 2;
- }
- .character {
- width: 18rem;
- break-inside: avoid;
- margin-bottom: 10rem;
- }
- .character-flex {
- display: flex;
- position: relative;
- }
- /* character image */
- figure.character-image {
- width: 15rem;
- height: 15rem;
- flex-shrink: 0;
- border: 10px solid transparent;
- outline: 1px solid var(--borders);
- margin-bottom: 1rem;
- }
- img.character-image {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- /* character palette */
- .palette {
- display: flex;
- flex-direction: column;
- justify-content: space-evenly;
- align-items: flex-end;
- height: 12rem;
- width: 100%;
- }
- .palette .palette-color {
- width: 2rem;
- height: 2rem;
- }
- /* character faceclaim */
- figure.faceclaim-image {
- width: 5rem;
- height: 5rem;
- flex-shrink: 0;
- position: absolute;
- inset: auto 0 -1rem auto;
- }
- img.faceclaim-image {
- width: 100%;
- height: 100%;
- object-fit: cover;
- border-radius: 5px;
- }
- .faceclaim-name {
- font:500 .8rem 'karla', sans-serif;
- text-transform: uppercase;
- margin-top: .5rem;
- text-align: right;
- background-color: var(--background);
- padding: .5rem;
- border-radius: 5px;
- }
- /* character name */
- .character-name {
- font:500 1.4rem 'karla', monospace;
- margin:1rem 5rem 2rem 0
- }
- /* character details */
- .character-details {margin-right: 5rem;}
- .character-details ul {list-style-position: inside;}
- .character-details ul li {margin:.5rem 0}
- .character-details ul li::marker{color:var(--icons);}
- /* character gallery */
- .gallery {
- display: flex;
- justify-content: space-between;
- }
- .gallery-image {
- width: 5rem;
- height: 5rem;
- object-fit: cover;
- }
- /* MEDIA */
- @media only screen and (min-width:0px) and (max-width:789px) {
- figure.author-image {
- width: 10rem;
- height: 10rem;
- }
- .column-count {column-count: 1;}
- .character {
- display: block;
- width: 22rem;
- }
- figure.character-image {
- width: 18rem;
- height: 18rem;
- }
- .palette {
- height: 15rem;
- width: 100%;
- }
- .palette .palette-color {
- width: 3rem;
- height: 3rem;
- }
- }
- </style>
- </head>
- <body>
- <div id="container">
- <!-- carousel inputs -->
- <input hidden type="radio" name="carousel-control" id="book-button" checked /><input hidden type="radio" name="carousel-control" id="characters-button"/>
- <!-- carousel navigation -->
- <nav id="carousel-navigation">
- <label for="book-button" title="book cover" class="label_book"><i class="feather-icon" data-feather="home"></i></label>
- <label for="characters-button" title="characters" class="label_characters"><i class="feather-icon" data-feather="user"></i></label>
- </nav>
- <!-- carousel navigation end -->
- <!-- main content -->
- <main id="carousel"><div id="panels">
- <!-- book cover -->
- <section class="panel_book">
- <!-- book cover image -->
- <figure class="book-cover"><img src="IMAGE URL" alt="" class="book-cover"></figure>
- <h1 id="page-title">
- <!-- page title -->
- title
- </h1>
- <article id="book-summary">
- <!-- book description. please wrap paragraphs between <p>paragraph</p> -->
- <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Rerum aut libero, eum perferendis voluptatum iusto asperiores porro repellat ullam suscipit, enim ducimus cumque ab laborum nostrum iure similique doloremque consequatur.</p>
- <p>paragraph</p>
- </article>
- <figure id="divider"><i class="feather-icon" data-feather="circle"></i><hr></figure>
- <!-- author image -->
- <figure class="author-image"><img src="AUTHOR IMAGE URL" alt="" class="author-image"></figure>
- <h2 id="author-name">
- <!-- author name -->
- name
- </h2>
- <article id="author-about">
- <!-- about the author -->
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ab, ipsa. Labore ratione tempore minima, ad dolorem harum qui, corrupti cupiditate tempora, alias deleniti atque eveniet debitis saepe ipsa soluta repudiandae.</p>
- </article>
- <!-- book links -->
- <article id="author-links"><nav><ul>
- <!-- author links. add as many as you want -->
- <li><a href="LINK URL">LINK NAME</a></li>
- <li><a href="LINK URL">LINK NAME</a></li>
- <li><a href="LINK URL">LINK NAME</a></li>
- </ul></nav></article>
- <article id="author-sns"><nav><ul>
- <!-- find more icons at https://fontawesome.com/search?o=r&m=free&f=brands -->
- <li><a href="LINK"><i class="fa-brands fa-twitter"></i></a></li>
- <li><a href="LINK"><i class="fa-brands fa-instagram"></i></a></li>
- <li><a href="LINK"><i class="fa-brands fa-paypal"></i></a></li>
- </ul></nav></article>
- </section>
- <!-- characters -->
- <section class="panel_characters"><div class="column-count">
- <!-- to add more characters copy paste from 'character start' to 'character end' -->
- <!-- character start -->
- <article class="character"><div class="character-flex">
- <figure class="character-image">
- <!-- character image -->
- <img class="character-image" src="CHARACTER IMAGE URL" alt=""></figure>
- <article class="palette">
- <!-- change the word color for the color you want. dont add more than three colors -->
- <div class="palette-color" style="background-color: COLOR;"></div>
- <div class="palette-color" style="background-color: COLOR;"></div>
- <div class="palette-color" style="background-color: COLOR;"></div>
- </article>
- <figure class="faceclaim-image">
- <!-- faceclaim image -->
- <img src="FACECLAIM IMAGE URL" alt="" class="faceclaim-image">
- <h4 class="faceclaim-name">
- FACECLAIM NAME
- </h4>
- </figure>
- </div><!-- flex end -->
- <h3 class="character-name">
- character name.
- </h3>
- <article class="character-details"><ul>
- <li>detail</li>
- <li>detail</li>
- <li>detail</li>
- </ul></article>
- <article class="character-bio">
- <!-- please wrap your paragraphs between <p></p> -->
- <p>character bio paragraph</p>
- <p>character bio paragraph</p>
- </article>
- <article class="gallery">
- <!-- gallery images. dont add more than three -->
- <figure class="gallery-image"><img src="GALLERY IMAGE URL" alt="" class="gallery-image"></figure>
- <figure class="gallery-image"><img src="GALLERY IMAGE URL" alt="" class="gallery-image"></figure>
- <figure class="gallery-image"><img src="GALLERY IMAGE URL" alt="" class="gallery-image"></figure>
- </article>
- </article>
- <!-- character end -->
- </div><!-- column count --></section> <!-- panel_characters -->
- </div> <!-- panels --></main> <!-- carousel -->
- </div> <!-- container -->
- <!-- do not touch -->
- <div style="position:fixed;bottom:2rem;left:4rem;z-index:999999999999999999999!important;font-size:.7rem;letter-spacing:.03rem;"><a style="color: var(--icons);" href="https://southcodes.tumblr.com" title="coded by southcodes" target="_blank">SC</a></div>
- <script src="https://code.jquery.com/jquery-3.6.1.min.js" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous"></script>
- <!-- icons font -->
- <script src="https://unpkg.com/feather-icons/dist/feather.min.js" crossorigin="anonymous"></script>
- <!-- icons font -->
- <script src="https://kit.fontawesome.com/0993e30c04.js" crossorigin="anonymous"></script>
- <script>
- feather.replace();
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment