Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <!--------------------------------------------------------------------
- "Cards" // a simple theme made by dioticodes
- Version: 1.2.3
- Published: 03/01/17 (Updated 27/11/18)
- ----------
- NOTES:
- + Do not steal code or remove credits.
- + Please ask for permission if using as a base code.
- + You're free to edit the code, providing you do not republish it.
- ----------
- CREDITS:
- + Infinite Scroll script: Cody Sherman (http://codysherman.com/)
- + Tag Search script: generalelectric (http://generalelectric.tumblr.com)
- + Unnested captions: magnusthemes (http://magnusthemes.tumblr.com/) and neothm (http://neothm.com/)
- + Custom Fonts:
- ~ Pangolin (https://fonts.google.com/specimen/Pangolin)
- + Icons:
- ~ Font Awesome (http://fontawesome.io/)
- ----------
- https://dioticodes.tumblr.com
- --------------------------------------------------------------------->
- <head>
- <title>{Title}</title>
- {block:Description}<meta name="description" content="{MetaDescription}"/>{/block:Description}
- <link rel="shortcut icon" href="{Favicon}"/>
- <link rel="alternate" type="application/rss+xml" href="{RSS}">
- <!-- META OPTIONS -->
- <meta name="color:Border" content="#cccccc"/>
- <meta name="color:Background" content="#f6f6f6"/>
- <meta name="image:Background Image" content=""/>
- <meta name="color:Sidebar" content="#ffffff"/>
- <meta name="color:Sidebar Text" content="#666666"/>
- <meta name="color:Link Buttons" content="#eeeeee"/>
- <meta name="color:Link Text" content="#888888"/>
- <meta name="color:Pagination" content="#888888"/>
- <meta name="color:Pagination Hover" content="#cccccc"/>
- <meta name="color:Searchbar" content="#eeeeee"/>
- <meta name="color:Searchbar Text" content="#888888"/>
- <meta name="color:Post Background" content="#ffffff"/>
- <meta name="color:Post Text" content="#666666"/>
- <meta name="color:Post Info Background" content="#eeeeee"/>
- <meta name="color:Post Info Text" content="#888888"/>
- <meta name="color:Notes Text" content="#888888"/>
- <meta name="if:Use Default Font" content="1"/>
- <meta name="if:Tile Background" content="0"/>
- <meta name="if:Fixed Background" content="1"/>
- <meta name="if:Show Captions" content="1"/>
- <meta name="if:Infinite Scroll" content="0"/>
- <meta name="if:Show Searchbox" content="1"/>
- <meta name="if:Enable Announcement Page" content="0"/>
- <meta name="if:Alternative Reblogs" content="0"/>
- <meta name="text:Announcement Text" content="This is a sample announcement!"/>
- <meta name="text:Font Size" content="16px"/>
- <meta name="font:Font" content=""/>
- <meta name="text:Link 1" content="Home"/>
- <meta name="text:Link 1 URL" content="/">
- <meta name="text:Link 2" content="Ask"/>
- <meta name="text:Link 2 URL" content="/ask"/>
- <meta name="text:Link 3" content="Submit"/>
- <meta name="text:Link 3 URL" content="/submit"/>
- <meta name="text:Link 4" content="Archive"/>
- <meta name="text:Link 4 URL" content="/archive"/>
- <meta name="text:Link 5" content="Random"/>
- <meta name="text:Link 5 URL" content="/random">
- <meta name="text:Link 6" content="Theme"/>
- <meta name="text:Link 6 URL" content="http://dioticodes.tumblr.com"/>
- <meta name="select:Avatar Style" content="0%" title="Square"/>
- <meta name="select:Avatar Style" content="100%" title="Circle"/>
- <meta name="select:Avatar Style" content="20%" title="Rounded"/>
- <meta name="select:Avatar Style" content="0px 50% 0px 50%" title="Slit"/>
- <meta name="select:Avatar Style" content="100% 100% 0px 0px" title="Arch"/>
- <meta name="select:Avatar Style" content="50% 50% 0px 50%" title="Teardrop"/>
- <link href="https://fonts.googleapis.com/css?family=Pangolin" rel="stylesheet">
- <link href="//netdna.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet">
- {block:IfShowSearchbox}
- <script src="http://static.tumblr.com/ychvj87/1Uempbuul/geek_built.js"></script>
- {/block:IfShowSearchbox}
- {block:IfEnableAnnouncementPage}
- <script src="https://static.tumblr.com/rphroxy/OLmp2mt7h/cards_announcement_script.js"></script>
- {/block:IfEnableAnnouncementPage}
- <script src="//code.jquery.com/jquery-2.2.4.min.js"></script>
- {block:IfAlternativeReblogs}
- <script src="//static.tumblr.com/wgg6svp/OoTofxa0c/unnest.min.js"></script>
- <script type="text/javascript" charset="utf-8">
- $(document).ready(function(){
- $(".post").unnest({
- yourCaption: ".caption",
- wrapName: ".tumblr_parent",
- newCaptionUsername: false,
- originalPostCaptionUsername: false,
- tumblrAvatars: true,
- usernameColon: false
- });
- });
- </script>
- {/block:IfAlternativeReblogs}
- {block:IfInfiniteScroll}
- <script src="http://static.tumblr.com/c7cvhvu/mCZmb3z94/is.js"></script>
- {/block:IfInfiniteScroll}
- <!-- add a hyperlink to images in text/question posts -->
- <script type="text/javascript" charset="utf-8">
- $(document).ready(function() {
- $('.answer img, .text img').each(function () {
- var img = $(this);
- var src = img.attr("src");
- var full = src.slice(0, -7) + "1280" + src.substr(-4);
- $.get(full)
- .done(function() {
- img.wrap("<a href='" + full + "' </a>");
- }).fail(function() {
- img.wrap("<a href='" + src + "' </a>");
- })
- });
- });
- </script>
- <!-- removes empty space under videos -->
- <script type="text/javascript" charset="utf-8">
- $(document).ready(function() {
- $('.tumblr_video_container').each(function() {
- $(this).attr('style', 'max-height:540px');
- $('.tumblr_video_iframe').attr('style', 'max-height:540px');
- });
- });
- </script>
- <!-- ######################################################## -->
- <style type="text/css">
- /*---- TUMLBLO CURSIVE FONT ---- */
- @font-face {
- font-family: fairwater;
- src: url('https://assets.tumblr.com/fonts/fairwater/fairwater_script_regular-webfont.woff2?v=b7ab7a58cded3365889a447bfd9e9c45');
- }
- .npf_quirky {font: 22px fairwater, serif;}
- /* ---- THE REST ---- */
- body {
- margin: 0;
- padding: 0;
- text-align: center;
- background: url('{image:Background Image}') repeat center;
- background-size: cover;
- {block:IfTileBackground}
- background-size: auto;
- {/block:IfTileBackground}
- background-color: {color:Background};
- font-size: {text:Font Size};
- font-family: 'Pangolin', Verdana, sans-serif;
- {block:IfNotUseDefaultFont}
- font-family: {font:Font}, Verdana, sans-serif;
- {/block:IfNotUseDefaultFont}
- }
- {block:IfFixedBackground}
- body {background-attachment: fixed;}
- {/block:IfFixedBackground}
- a {text-decoration: underline; font-weight: bold;}
- img, video {width: auto; height: auto;}
- iframe, img, embed, object, video {max-width: 100%;}
- blockquote {
- padding-left: 1em;
- margin-left: 0.7em;
- margin-right: 0;
- border-left: 2px solid {color:Post Text};
- }
- blockquote img {margin: 0!important;}
- {block:IfAlternativeReblogs}
- blockquote.tumblr_parent {
- border: 0;
- padding: 0;
- margin: 20px 0;
- border-bottom: 1px solid {color:Border};
- }
- blockquote.tumblr_parent:last-of-type {border: none;}
- a.tumblr_blog {
- position: absolute;
- line-height: 1.5;
- }
- .tumblr_avatar {
- width: 25px;
- height: 25px;
- margin-right: 15px !important;
- }
- {/block:IfAlternativeReblogs}
- pre {
- overflow-x: auto;
- overflow-y: hidden;
- background-color: {color:Post Info Background};
- color: {color:Post Info Text};
- }
- pre a {color: {color:Post Info Text} !important;}
- ol {counter-reset: item;}
- ol li {display: block}
- ol li:before {
- content: counter(item) ". ";
- counter-increment: item;
- font-weight: bold;
- }
- .unselectable {
- -moz-user-select: none;
- -khtml-user-select: none;
- -webkit-user-select: none;
- -ms-user-select: none;
- user-select: none;
- cursor: default;
- }
- #navlinks .link, .post a, .post iframe, .notes a, .pagination a, #avatar, .search input, .post a:hover, .post iframe:hover, .notes a:hover, #avatar:hover, #navlinks .link:hover, .search input:hover, .search input:focus {
- transition: 0.4s ease;
- -o-transition: 0.4s ease;
- -moz-transition: 0.4s ease;
- -webkit-transition: 0.4s ease;
- }
- .post a:hover, .post iframe:hover, .notes a:hover, #avatar:hover {filter: brightness(70%);}
- .post iframe {max-width: 100%;}
- /* --- SIDEBAR --- */
- #side {
- margin-left: 160px;
- width: 200px;
- position: fixed;
- color: {color:Sidebar Text};
- z-index: 999;
- }
- #sidebar, .search {
- padding: 10px;
- border: 3px solid {color:Border};
- background-color: {color:Sidebar};
- }
- #sidebar a {color: {color:Sidebar Text};}
- #avatar {padding: 10px;}
- #avatar img {
- border: 1px solid {color:Border};
- border-radius: {select:Avatar Style};
- }
- #navlinks {
- display: grid;
- grid-template-columns: auto auto;
- grid-gap: 10px;
- margin-top: 10px;
- }
- #navlinks .link {
- text-decoration: none;
- border: 1px solid {color:Border};
- padding: 3px;
- background-color: {color:Link Buttons};
- color: {color:Link Text};
- }
- #navlinks .link:hover {
- color: {color:Link Buttons};
- background-color: {color:Link Text};
- }
- .pagination, .pagination a {
- color:{color:Pagination} !important;
- margin-top: 3px;
- }
- .pagination a:hover {color:{color:Pagination Hover} !important;}
- #page_circle {
- display: inline-block;
- background-color: {color:Pagination};
- width: 1.3em;
- height: 1.3em;
- border-radius: 100%;
- line-height: 1em;
- }
- #page_num {
- font-size: 70%;
- font-weight: bold;
- color: {color:Sidebar};
- position: relative;
- top: 50%;
- left: 50%;
- transform: translate(-50%,-50%);
- overflow: hidden;
- }
- .search {margin-top: 25px; padding: 0;}
- .search input {
- padding: 10px;
- width: 174px;
- outline: none;
- border: 0;
- background-color: {color:Searchbar};
- color: {color:Searchbar Text};
- font-size: {text:Font Size};
- font-family: 'Pangolin', Verdana, sans-serif;
- {block:IfNotUseDefaultFont}
- font-family: {font:Font}, Verdana, sans-serif;
- {/block:IfNotUseDefaultFont}
- text-transform: lowercase;
- }
- .search input:hover, .search input:focus {
- background-color: {color:Searchbar Text};
- color: {color:Searchbar};
- }
- /* --- POSTS --- */
- #container {
- margin-left: 500px;
- width: 500px;
- height: auto;
- text-align: left;
- }
- .post {
- border: 3px solid {color:Border};
- padding: 0px 20px 0px 20px;
- margin: 80px 0px 80px 0px; /* pushes all elements down */
- background-color: {color:Post Background};
- color: {color:Post Text};
- }
- #ask_form, #submit_form {margin-bottom: 15px;}
- .post a {color: {color:Post Text};}
- .post p:first-child {margin-top: 10px;}
- .photo, .audio, .video {margin-top: 19px;}
- .video, .photo {margin-bottom: 0px;}
- {block:IfNotShowCaptions}
- .video, .photo {margin-bottom: 10px;}
- {/block:IfNotShowCaptions}
- .video iframe {max-width: 455px;}
- .text p:first-child {margin-top: 13px;}
- .answer img, .text img {margin-bottom: 10px}
- .audio {text-align: center;}
- .default_album_bg, .album_art {
- width: 200px;
- height: 200px;
- margin-bottom: 5px;
- }
- .player {
- width: 200px;
- height: auto;
- z-index: 2;
- position: absolute;
- margin-left: 127px;
- margin-top: 173px;
- opacity: 0.7;
- }
- .default_album_bg {
- background-color: {color:Post Text};
- color: {color:Post Background};
- font-size: 165px;
- display: inline-block;
- }
- .album_art {
- z-index: 1;
- position: absolute;
- margin-left: -200px;
- }
- .chat li {
- list-style-type: none;
- padding-left: 1em;
- margin-left: -40px;
- }
- .chat .odd {border-left: 2px solid {color:Post Text};}
- .chat .even {
- color: {color:Post Info Text};
- background-color: {color:Post Info Background};
- border-left: 2px solid {color:Post Info Text};
- }
- .pinfo {
- border-top: 1px solid {color:Border};
- width: 474px;
- margin-left: -20px;
- margin-top: 5px;
- padding: 10px;
- background-color: {color:Post Info Background};
- font-size: 12px;
- }
- .pinfo, .pinfo a {
- font-weight: normal;
- color:{color:Post Info Text};
- }
- #perma {display: inline-block; float: right;}
- #tags {display: inline-block; max-width: 310px;}
- /* ---- NOTES ---- */
- .notes {
- list-style-type: none;
- text-align: left;
- padding-right: 20px;
- color: {color:Notes Text};
- }
- .notes a {color: {color:Notes Text};}
- .notes blockquote {border-color: {color:Notes Text};}
- .notes li:last-child {
- margin-top: 25px;
- margin-bottom: 50px;
- text-transform: lowercase;
- }
- .notes img {padding-right: 10px; border: none;}
- {block:IfEnableAnnouncementPage}
- #message-wrapper {
- position: fixed;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- background-color: {color:Link Buttons};
- z-index: 9999;
- display: none;
- }
- .message {
- text-align: center;
- position: relative;
- top: 50%;
- left: 50%;
- transform: translate(-50%,-50%);
- color: {color:Link Text};
- max-width: 350px;
- }
- .tmblr-iframe, .tmblr-iframe--unified-controls, .tmblr-iframe--loaded, .iframe-controls--desktop {z-index: 99999 !important;}
- .message-btn {
- border: 1px solid {color:Link Text};
- padding: 5px;
- font-weight: bold;
- display: inline-block;
- background-color: {color:Link Buttons};
- }
- .message-btn:hover {filter:brightness(80%); cursor: pointer;}
- .message-btn, .message-btn:hover {
- transition: 0.4s ease;
- -o-transition: 0.4s ease;
- -moz-transition: 0.4s ease;
- -webkit-transition: 0.4s ease;
- }
- {/block:IfEnableAnnouncementPage}
- #ask_form {filter:brightness(100%);}
- .npf_row {
- margin: 0!important;
- display: flex;
- align-items: center;
- }
- .npf_row .tmblr-full {
- padding-right: 5px;
- }
- {CustomCSS}
- </style>
- </head>
- <!-- ######################################################## -->
- <body>
- {block:IfEnableAnnouncementPage}
- <div id="message-wrapper">
- <div class="message">
- <p>{text:Announcement Text}</p><br>
- <span class="message-btn unselectable" onclick="closeMessage()">close</span>
- </div>
- </div>
- {/block:IfEnableAnnouncementPage}
- <div id="side">
- <div id="sidebar">
- <div id="avatar"><a href="/" alt="home"><img src="{PortraitURL-96}"></img></a></div>
- <div id="description">{Description}</div>
- {block:IfNotInfiniteScroll}
- {block:Pagination}
- <div class="pagination">
- {block:PreviousPage}<a href="{PreviousPage}"><i class="fa fa-arrow-left"></i></a>{/block:PreviousPage}
- <div id="page_circle" class="unselectable"><div id="page_num">{CurrentPage}</div></div>
- {block:NextPage}<a href="{NextPage}"><i class="fa fa-arrow-right"></i></a>{/block:NextPage}
- </div>
- {/block:Pagination}
- {/block:IfNotInfiniteScroll}
- <div id="navlinks" class="unselectable">
- {block:IfLink1}<a class="link" href="{text:Link 1 URL}">{text:Link 1}</a>{/block:IfLink1}
- {block:IfLink2}<a class="link" href="{text:Link 2 URL}">{text:Link 2}</a>{/block:IfLink2}
- {block:IfLink3}<a class="link" href="{text:Link 3 URL}">{text:Link 3}</a>{/block:IfLink3}
- {block:IfLink4}<a class="link" href="{text:Link 4 URL}">{text:Link 4}</a>{/block:IfLink4}
- {block:IfLink5}<a class="link" href="{text:Link 5 URL}">{text:Link 5}</a>{/block:IfLink5}
- {block:IfLink6}<a class="link" href="{text:Link 6 URL}">{text:Link 6}</a>{/block:IfLink6}
- </div>
- </div>
- <!-- search field -->
- {block:IfShowSearchbox}
- <form class="search" onsubmit="return tagSearch(this)">
- <a><input name="tag" type="text" value="Search Tags..."
- onfocus="if(this.value == 'Search Tags...') { this.value = ''; }" onblur="if(this.value == '') { this.value = 'Search Tags...'; }"/></a>
- </form>
- {/block:IfShowSearchbox}
- </div>
- <div id="container">
- {block:Posts}
- <div class="post" id="{PostID}">
- <!---- TEXT POSTS ---->
- {block:Text}
- <div class="text">
- {block:Title}
- <h1>{Title}</h1>
- {/block:Title}
- <div class="caption">{Body}</div>
- </div>
- {/block:Text}
- <!---- QUOTE POSTS ---->
- {block:Quote}
- <div class="quote">
- <h1>“{Quote}”</h1>
- <h5>—{Source}</h5>
- </div>
- {/block:Quote}
- <!---- LINK POSTS ---->
- {block:Link}
- <div class="link">
- <h1>>> <a href="{URL}">{Name}</a></h1>
- {block:Host}<h5>{Host}</h5>{/block:Host}
- {block:Excerpt}<div class="excerpt">"{Excerpt}"</div>{/block:Excerpt}
- </div>
- {block:Description}
- <div class="caption">{Description}</div>
- {/block:Description}
- {/block:Link}
- <!---- PHOTO POSTS ---->
- {block:Photo}
- <center>
- {LinkOpenTag}
- <img src="{PhotoURL-HighRes}" class="photo"/>
- {LinkCloseTag}
- </center>
- {block:IfShowCaptions}
- {block:Caption}
- <div class="caption">{Caption}</div>
- {/block:Caption}
- {/block:IfShowCaptions}
- {/block:Photo}
- <!---- PHOTOSETS ---->
- {block:Photoset}
- <center><div class="photo photoset">{Photoset-500}</div></center>
- {block:IfShowCaptions}
- {block:Caption}
- <div class="caption">{Caption}</div>
- {/block:Caption}
- {/block:IfShowCaptions}
- {/block:Photoset}
- <!---- CHAT POSTS ---->
- {block:Chat}
- {block:Title}<h1>{Title}</h1>{/block:Title}
- <ul class="chat">
- {block:Lines}
- <li class="{Alt}">
- {block:Label}
- <span class="label"><b>{Label}</b></span>
- {/block:Label}
- <span class="line">{Line}</span>
- </li>
- {/block:Lines}
- </ul>
- {/block:Chat}
- <!---- VIDEO POSTS ---->
- {block:Video}
- <div class="video">{Video-500}</div>
- {block:IfShowCaptions}
- {block:Caption}
- <div class="caption">{Caption}</div>
- {/block:Caption}
- {/block:IfShowCaptions}
- {/block:Video}
- <!---- ASKS ---->
- {block:Answer}
- <div class="question">
- <div class="asker"><h3>{Asker} said:</h3></div>
- <div class="q"><i>{Question}</i></div>
- </div>
- <div class="answer">{Answer}</div>
- {/block:Answer}
- <!---- AUDIO POSTS ---->
- {block:Audio}
- <div class="audio">
- {block:AudioPlayer}
- <div class="player unselectable">{AudioPlayerWhite}</div>
- {/block:AudioPlayer}
- <div class="default_album_bg"><i class="fa fa-headphones"></i></div>
- {block:AlbumArt}
- <img class="album_art" src="{AlbumArtURL}">
- {/block:AlbumArt}
- <div class="audio_info">
- <b style="text-transform:uppercase">
- {block:TrackName}{TrackName}{/block:TrackName}
- {block:Artist} by {Artist}{/block:Artist}
- </b>
- <br>
- <i class="fa fa-play-circle-o"></i> <i>{PlayCountWithLabel}</i>
- </div>
- </div>
- {block:IfShowCaptions}
- {block:Caption}
- <div id="caption">{Caption}</div>
- {/block:Caption}
- {/block:IfShowCaptions}
- {/block:Audio}
- <!---- SUBMISSION ---->
- {block:Submission}
- <h5 style="text-align:right">
- (submitted by <a href="{SubmitterURL}">{Submitter}</a>)
- </h5>
- {/block:Submission}
- <!-- POST INFO -->
- {block:Date}
- <div class="pinfo">
- <div id="perma">
- <a href="{Permalink}">{TimeAgo}</a>, {NoteCountWithLabel}
- </div>
- <div id="tags">
- {block:Tags}<a href="{TagURL}">#{Tag}</a> {/block:Tags} <!-- needs at least one character -->
- </div>
- </div> <!-- end .pinfo -->
- {block:Date}
- </div> <!-- end .post -->
- <!---- NOTES (PERMALINK) ---->
- <div class="notes">
- {block:PostNotes}{PostNotes}{/block:PostNotes}
- </div>
- {/block:Posts}
- </div> <!-- end #container -->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment