Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <!-- theme by spacetchi, Medusa Moxie
- http://spacetchi.tumblr.com/
- http://5ppi.tumblr.com/
- http://tchi.space/
- Do not steal!
- -->
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- {block:Description}
- <meta name="description" content="{MetaDescription}" />
- {/block:Description}
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>{Title}</title>
- <link rel="shortcut icon" href="{Favicon}">
- <link rel="alternate" type="application/rss+xml" href="{RSS}">
- <meta name="image:background" content=""/>
- <meta name="if:tile background" content="1"/>
- <meta name="text:Link 1 Url" content="/"/>
- <meta name="text:Link 1 Title" content="one"/>
- <meta name="text:Link 2 Url" content="/"/>
- <meta name="text:Link 2 Title" content="two"/>
- <meta name="text:link 3 url" content="/"/>
- <meta name="text:link 3 title" content="three"/>
- <meta name="color:Background" content="#fff">
- <meta name="color:Text" content="#000">
- <meta name="color:Link" content="#00f">
- <meta name="color:Active Link" content="#f00">
- <meta name="if:Show Post Info on Index Page" content="0">
- </head>
- <!-- photoset stylesheet by pixelunion! -->
- <link href="https://static.tumblr.com/qudkd6d/OcDnl99gb/style.css" rel="stylesheet" type="text/css"/>
- <style>
- /* general */
- * {
- box-sizing:border-box;
- }
- html {
- font-size:16px;
- font-size:calc(15px + 0.2vw);
- }
- body {
- font-family:'Times New Roman', georgia, palatino, serif;
- color:{color:Text};
- background:{color:Background};
- {block:ifBackgroundImage}background-image:url('{image:background}');
- background-attachment:fixed;
- {block:ifNotTileBackground}background-size:cover;{/block:ifNotTileBackground}{/block:ifBackgroundImage}
- padding:0;
- margin:0;
- line-height:1.6;
- }
- a {
- color:{color:Link};
- text-decoration:underline;
- }
- a:active {
- color:{color:Active Link};
- }
- blockquote {
- margin:0 0 0 1em;
- padding:0 0 0 1em;
- border-left:1px solid black;
- }
- ul,
- ol {
- margin:0 0 0 1em;
- padding:0 0 0 1em;
- }
- * > *:first-child {
- margin-top:0;
- }
- * > *:last-child {
- margin-bottom:0;
- }
- img {
- max-width:100%;
- height:auto;
- }
- .lightbox-image {
- max-width:none;
- }
- .media iframe,
- #ask_form,
- #submit_form {
- max-width:100%;
- display:block;
- }
- /* wrappers */
- .wrapper {
- margin:2rem auto;
- padding:1rem;
- max-width:100%;
- width:60%;
- width:calc(8vw + 500px);
- }
- /* sidebar */
- .links {
- margin-bottom:5rem;
- }
- .links ul {
- margin:0;
- padding:0;
- list-style-type:none;
- }
- .links li {
- display:inline;
- }
- .links li:not(:last-child) {
- padding-right:5px;
- }
- .photo-row {
- padding:0.1em 0;
- display:flex;
- }
- .media--image--container {
- cursor:pointer;
- padding:0 0.1em;
- flex-grow:1;
- }
- .media--image--container:first-child {
- padding-left:0;
- }
- .media--image--container:last-child {
- padding-right:0;
- }
- .media--image {
- width:100%;
- height:100%;
- object-fit:cover;
- cursor:pointer;
- }
- .tumblr_video_container {
- width:initial !important;
- height:initial !important;
- position:static;
- }
- .video--container iframe {
- width:100% !important;
- min-width:0 !important;
- }
- /* post */
- .post-info {
- margin-bottom:5rem;
- }
- .post {
- margin-bottom:5rem;
- }
- .caption {
- margin-top:1em;
- }
- .chat .name {
- font-weight:bold;
- }
- .quote {
- font-style:italic;
- font-weight:400;
- }
- .quote.medium {
- font-size:1.2em;
- }
- .quote.long {
- font-size:1em;
- }
- .question {
- font-style:italic;
- }
- /* post notes */
- ol.notes {
- margin:0 0 5rem 0;
- }
- .notes img {
- display:inline;
- margin-right:5px;
- }
- .notes li.more_notes_link_container {
- text-align:left !important; /* must use this due to tumblr code */
- text-transform:lowercase;
- list-style-type:none;
- }
- /* pagination */
- .pagination {
- text-align:center;
- text-transform:lowercase;
- }
- .pagination a:not(:last-child) {
- padding-right:5px;
- }
- @media (min-width:800px) {
- .wrapper {
- margin:5rem 0;
- padding:0 3rem;
- }
- header {
- margin-bottom:5rem;
- }
- .links {
- position:fixed;
- left:calc(8vw + 500px);
- top:5rem;
- }
- .links ul {
- list-style-type:disc;
- padding-left:1em;
- }
- .links li {
- display:list-item;
- }
- }
- </style>
- <body>
- <div class="wrapper">
- {block:IndexPage}
- <header>
- <center><h1 class="title"><a href="{BlogURL}">{Title}</a></h1></center>
- <p id="desc">{Description}</p>
- </header>
- {/block:IndexPage}
- <aside class="links">
- <nav><center>
- <ul>
- <li><a href="/">refresh</a></li>
- {block:AskEnabled}
- <li><a href="/ask">message</a></li>
- {/block:AskEnabled}
- <li><a href="{text:Link 1 Url}">{text:Link 1 Title}</a></li>
- <li><a href="{text:Link 2 Url}">{text:Link 2 Title}</a></li>
- <li><a href="{text:link 3 url}">{text:link 3 title}</a></li>
- <li><a href="http://5ppi.tumblr.com/" title="Updated 2020-06-07">theme</a></li>
- </ul></center>
- </nav>
- </aside>
- <main>
- {block:Posts}
- <article class="post">
- {block:PermalinkPage}
- {block:Date}
- <div class="post-info">
- <p>
- posted {DayOfWeek}, {ShortMonth}. {DayOfMonth}{DayOfMonthSuffix}, {Year} at {12HourWithZero}:{Minutes}:{Seconds} {CapitalAmPm}
- {block:NoteCount}
- <br />with {NoteCountWithLabel}
- {/block:NoteCount}
- </p>
- {block:HasTags}
- <div class="tags">
- {block:Tags}
- <a href="{TagURL}">#{Tag}</a>
- {/block:Tags}
- </div><!-- tags -->
- {/block:HasTags}
- </div><!-- post-info -->
- {/block:Date}
- {/block:PermalinkPage}
- {block:Text}
- {block:Title}
- <h2 class="title"><a href="{Permalink}">{Title}</a></h2>
- {/block:Title}
- {Body}
- {/block:Text}
- {block:Photo}
- <div class="media media-photoset" data-layout="1">
- <div
- class="media--image--container"
- data-width="{PhotoWidth-HighRes}"
- data-height="{PhotoHeight-HighRes}"
- data-lowres="{PhotoURL-500}"
- data-highres="{PhotoURL-HighRes}"
- >
- <img src="{PhotoURL-HighRes}"
- srcset="{PhotoURL-250} 250w,
- {PhotoURL-400} 400w,
- {PhotoURL-500} 500w,
- {PhotoURL-HighRes} 1280w"
- sizes="80vw" alt="{PhotoAlt}" class="media--image"/>
- </div><!-- media--image--container -->
- </div><!-- media-photoset -->
- {block:Caption}
- <div class="caption">{Caption}</div>
- {/block:Caption}
- {/block:Photo}
- {block:Photoset}
- <div class="media media-photoset" data-layout="{PhotosetLayout}">
- {block:Photos}
- <div
- class="media--image--container"
- data-width="{PhotoWidth-HighRes}"
- data-height="{PhotoHeight-HighRes}"
- data-lowres="{PhotoURL-500}"
- data-highres="{PhotoURL-HighRes}"
- >
- <img src="{PhotoURL-HighRes}"
- srcset="{PhotoURL-250} 250w,
- {PhotoURL-400} 400w,
- {PhotoURL-500} 500w,
- {PhotoURL-HighRes} 1280w"
- sizes="80vw" alt="{PhotoAlt}" class="media--image"/>
- </div><!-- media--image--container -->
- {/block:Photos}
- </div><!-- media-photoset -->
- {block:Caption}
- <div class="caption">{Caption}</div>
- {/block:Caption}
- {/block:Photoset}
- {block:Quote}
- <h2 class="quote {Length}">“{Quote}”</h2>
- {block:Source}
- <p class="source">—{Source}</p>
- {/block:Source}
- {/block:Quote}
- {block:Link}
- <h2 class="title"><a href="{URL}">{Name} →</a></h2>
- {block:Description}
- <div class="link-desc">{Description}</div>
- {/block:Description}
- {/block:Link}
- {block:Chat}
- {block:Title}
- <h2 class="title"><a href="{Permalink}">{Title}</a></h2>
- {/block:Title}
- <div class="chat">
- <p>
- {block:Lines}
- <div class="{Alt} user_{UserNumber}">
- {block:Label}
- <span class="name">{Label}</span>{/block:Label}
- {Line}
- </div>
- {/block:Lines}
- </p>
- </div><!-- chat -->
- {/block:Chat}
- {block:Video}
- <div class="media media-video">
- <div class="video--container">
- {Video-700}
- </div>
- </div>
- {block:Caption}
- <div class="caption">{Caption}</div>
- {/block:Caption}
- {/block:Video}
- {block:Audio}
- <div class="media media-audio">
- {block:AudioEmbed}{AudioEmbed color="white"}{/block:AudioEmbed}
- </div>
- {block:Caption}
- <div class="caption">{Caption}</div>
- {/block:Caption}
- {/block:Audio}
- {block:Answer}
- <p>
- <span class="asker">{Asker} says:</span> <span class="question">{Question}</span>
- </p>
- <p class="answer">{Answer}</p>
- {/block:Answer}
- {block:Date}
- {block:IndexPage}
- <p>
- {block:IfNotShowPostInfoOnIndexPage}
- <a href="{Permalink}" title="{NoteCountWithLabel}">{TimeAgo}</a>
- {/block:IfNotShowPostInfoOnIndexPage}
- {block:HasTags}{block:Tags}<a href="{TagURL}"> #{Tag}</a> {/block:Tags}{/block:HasTags}
- {block:IfShowPostInfoOnIndexPage}
- <a href="{Permalink}">{TimeAgo}</a> with <a href="{Permalink}">{NoteCountWithLabel}</a></div>
- {/block:IfShowPostInfoOnIndexPage}
- </p>
- {/block:IndexPage}
- {/block:Date}
- </article><!-- post -->
- {block:PermalinkPage}
- {block:NoteCount}
- {block:PostNotes}{PostNotes}{/block:PostNotes}
- {/block:NoteCount}
- {/block:PermalinkPage}
- {/block:Posts}
- {block:Pagination}
- <nav class="pagination">
- {block:PreviousPage}
- <a href="{PreviousPage}" class="back">Back</a>
- {/block:PreviousPage}
- {block:NextPage}
- <a href="{NextPage}" class="next">Next</a>
- {/block:NextPage}
- </nav>
- {/block:Pagination}
- {block:PermalinkPagination}
- <nav class="pagination">
- {block:PreviousPost}
- <a class="back" href="{PreviousPost}">Previous Post</a>
- {/block:PreviousPost}
- {block:NextPost}
- <a class="next" href="{NextPost}">Next Post</a>
- {/block:NextPost}
- </nav><!-- nav -->
- {/block:PermalinkPagination}
- </main>
- </div><!-- wrapper -->
- <script>
- "use strict";
- window.addEventListener('load', startup, false);
- function startup() {
- let photosets = document.getElementsByClassName("media-photoset");
- for (let i = 0, n = photosets.length; i < n; i++) {
- let photoset = photosets[i];
- makePhotoset(photoset);
- makeLightboxes(photoset);
- }
- }
- function makeLightboxes(photoset) {
- let image_containers = photoset.getElementsByClassName("media--image--container");
- for (let i = 0, n = image_containers.length; i < n; i++) {
- let image_container = image_containers[i];
- image_container.addEventListener("click", function() {
- let current = i + 1;
- lightbox(image_containers, current);
- });
- }
- }
- function lightbox(image_containers, current) {
- let lightboxes = [];
- for (let i = 0, n = image_containers.length; i < n; i++) {
- let image_container = image_containers[i]
- let arrayContents = {
- "width" : image_container.dataset.width,
- "height" : image_container.dataset.height,
- "low_res" : image_container.dataset.lowres,
- "high_res" : image_container.dataset.highres,
- }
- lightboxes.push(arrayContents);
- }
- Tumblr.Lightbox.init(lightboxes, current);
- }
- function makePhotoset(photoset) {
- var images = photoset.getElementsByClassName("media--image--container");
- var layout = photoset.dataset.layout;
- for (var i = 0; i < layout.length; i++) {
- var cols = layout[i];
- var row = document.createElement("div");
- row.classList.add("photo-row-" + cols);
- row.classList.add("photo-row");
- for (var j = 0; j < parseInt(cols); j++) {
- row.appendChild(images[0]);
- }
- photoset.appendChild(row);
- }
- }
- </script>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement