Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- // Base code by espoirthemes //
- + feel free to edit this as much as you want! It's a base code for a reason
- + if you're heavily editing this feel free to remove the credit or replace it with your own!
- + you may release this as your own theme after!
- + you don't HAVE to give me credit for this base code, but it'd be really nice if you did! If you barely edited it, please leave credit.
- + show me what you made! I'd love to see how people transformed this base code into their own creations!!
- -->
- <!DOCTYPE html>
- <html>
- <head>
- <title>{Title}</title>
- <link rel="shortcut icon" href="{Favicon}">
- <link rel="alternate" type="application/rss+xml" href="{RSS}">
- {block:Description}
- <meta name="description" content="{MetaDescription}" />
- {/block:Description}
- <link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">
- <meta name="image:background" content="" />
- <meta name="color:background" content="#f7f7f7" />
- <meta name="color:posts" content="#fff" />
- <meta name="color:border" content="#eee" />
- <meta name="color:text" content="#222" />
- <meta name="color:links" content="{AccentColor}" />
- <meta name="color:link underline" content="#ddd" />
- <meta name="color:link hover" content="#eee" />
- <meta name="color:scrollbar" content="{AccentColor}" />
- <meta name="select:blockquote border style" content="solid" title="solid" />
- <meta name="select:blockquote border style" content="dotted" title="dotted" />
- <meta name="select:blockquote border style" content="dashed" title="dashed" />
- <meta name="if:full background" content="" />
- <meta name="if:hover tags" content="" />
- <meta name="text:post width" content="400" />
- <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
- <link rel="stylesheet" href="https://cdn.linearicons.com/free/1.0.0/icon-font.min.css">
- <script type="text/javascript" src="https://static.tumblr.com/3ikgvxs/0TGl4zgpu/jquery.min.js"></script>
- <!-- I wrote so that the video posts will always be the same size as the container!
- (shythemes has a fancier script for this and this one is very specific to this base)
- -->
- {block:indexpage}
- <script>
- $(document).ready(function(){
- $('.tumblr_video_iframe, .embed_iframe, .tumblr_video_container ').css('width', '{text:post width}px');
- });
- </script>
- {/block:indexpage}
- </head>
- <style type="text/css">
- /*scrollbar styling */
- ::-webkit-scrollbar {
- width: 12px;
- height:6px;
- }
- ::-webkit-scrollbar-button {
- width: 0px;
- height: 0px;
- }
- ::-webkit-scrollbar-thumb {
- background: {color:scrollbar};
- border:4px solid {color:background};
- border-top:4px solid {color:background};
- border-bottom:4px solid {color:background};
- cursor:pointer;
- border-radius: 8px;
- }
- ::-webkit-scrollbar-track {
- background:#aaa;
- border: 5px solid {color:background};
- border-top:12px solid {color:background};
- border-bottom:12px solid {color:background};
- }
- /*body*/
- body{
- margin: 0;
- font-family: Roboto, sans-serif;
- background: {color:background} url({image:background})
- {block:iffullbackground} no-repeat center center fixed;
- -webkit-background-size: cover;
- -moz-background-size: cover;
- -o-background-size: cover;
- background-size: cover; {/block:iffullbackground};
- background-attachment: fixed;
- word-wrap: break-word;
- font-size: 16px;
- color: {color:text};
- }
- /*Links */
- a{
- color: {color:links};
- text-decoration: none;
- border-bottom: 1px solid {color:link underline};
- transition: .6s;
- }
- a:hover {
- color: {color:link hover};
- transition: .6s;
- }
- /*Blockquotes */
- blockquote{
- border-left: 1px {select:blockquote border style} {color:border};
- padding-left: 4px;
- }
- /*prevents the blockquote images from going off of the post */
- blockquote img{
- max-width: 100%;}
- /* Header */
- header {
- position:relative;
- width:{text:post width}px;
- margin:100px auto;
- }
- .avatar-square img{ background:#ffffff; border-radius:4px; }
- .avatar-circle img{ background:#ffffff; border-radius: 100%; }
- .title {
- font-size:1.2em;
- border:none;
- margin-top:4px;
- font-family:{TitleFont};
- color:{TitleColor};
- }
- .description {
- padding:20px;
- margin-top:-22px;
- }
- .links a {
- border:none;
- margin:10px;
- }
- /* Sidebar */
- /* if you wanted a sidebar, here's a vERY simple sidebar (just the shape) to get you started
- #sidebar {
- width:240px;
- if you want a 100% tall sidebar, set the height to 100vh (will adjust for every screen to be 100% tall)
- height:auto;
- padding:10px;
- position:fixed;
- i made the color the same as the posts so it can match, but if you'd rather it have its own color, you can change it/set it in the meta tags
- background:{color:posts};
- border:1px solid {color:border};
- left:100px;
- top:100px;
- } */
- /*Container and Posts*/
- #container {
- width:500px;
- position:relative;
- margin:10px auto ;
- }
- .posts{
- position:relative;
- margin: /*this is the top*/ 100px /*right*/ auto /*bottom*/ 100px /*and left */auto;
- width: {text:post width}px;
- background-color:{color:posts};
- border:1px solid {color:border};
- font-size:1em;
- min-width:250px;
- {block:permalinkpage}
- width:500px;
- {/block:permalinkpage}
- }
- /* headings, with h1 being the biggest/first heading */
- h1{
- padding:20px;
- font-size:1.4em;
- text-align:center;
- border-bottom:1px solid {color:border};
- }
- h2 {
- font-size:1.3em;
- }
- .posts img {
- display:block;
- max-width:100%;
- }
- /* Post Captions */
- .caption {
- padding:10px;
- }
- /*Ask Posts */
- /*styling for the speech bubble */
- .speechbubble {
- width:calc({text:post width}px - 150px);
- position: relative;
- left:80px;
- margin: 0;
- padding:16px;
- height: auto;
- background: #fff;
- border: {color:border} solid 1px;
- {block:permalinkpage}
- width:360px;
- {/block:permalinkpage}
- }
- /* the before and after are the triangle part of the speech bubble */
- .speechbubble:after
- {
- content: '';
- position: absolute;
- border-style: solid;
- border-width: 12px 17px 12px 0;
- border-color: transparent #fff; /* keep same color as bubble */
- display: block;
- width: 0;
- z-index: 1;
- left: -16px;
- top: 10px;
- }
- .speechbubble:before
- {
- content: '';
- position: absolute;
- border-style: solid;
- border-width: 12px 17px 12px 0;
- border-color: transparent {color:border}; /*keep same color as border */
- display: block;
- width: 0;
- z-index: 0;
- left: -17px;
- top: 10px;
- }
- /* Chat Posts */
- .chat {
- padding:5px;
- line-height:150%;
- }
- .chat:nth-of-type(odd) {
- background:{color:text};
- color:{color:posts};
- -webkit-transition:.5s;
- transition:.5s; }
- .chat:nth-of-type(odd) b {
- color:{color:posts};
- -webkit-transition:.5s;
- transition:.5s; }
- .chat:nth-of-type(even) {
- background:{color:posts};
- color:{color:text};
- -webkit-transition:.5s;
- transition:.5s; }
- .chat:nth-of-type(even) b{
- color:{color:text};
- -webkit-transition:.5s;
- transition:.5s; }
- /* Audio Posts */
- #albumart{
- z-index:2;
- float:left;
- border-radius:100%;
- height:100px;
- border:1px solid {color:info border};
- width:100px;
- }
- /* circle inside the album art to make it look like a CD */
- .playerbox {
- float:left;
- padding:6px;
- }
- .posts #albumart img{
- float:left;
- border-radius:100%;
- width:100px;
- height:100px;
- border-width:0px; transition:.6s;
- }
- .playerbox:hover #albumart img{
- transition:0.6s;
- transform:rotate(300deg); }
- .player {
- width:20px;
- overflow:hidden;
- height:40px;
- transform:scale(1.2);
- border-radius:100%;
- top:8px;
- bottom:10px;
- left:4px;
- padding:8px;
- padding-top:6px;
- padding-left:10px;
- padding-bottom:0px;
- border-radius:100%;
- position:absolute;
- }
- .playercon {
- width:56px;
- height:56px;
- border-radius:100%;
- left:0px;
- background:white;
- top:22px;
- position:relative;
- border:1px solid {color:info border};
- -webkit-transition-duration:500ms;
- -moz-transition-duration:500ms;
- -o-transition-duration:500ms;
- -ms-transition-duration:500ms;
- }
- {/block:permalinkpage}
- .infobox {
- float:left top;
- margin-left:120px;
- background-color:transparent;
- padding:14px;
- padding-left:4px;
- max-height:140px;
- text-align:left;
- color:{color:text};
- }
- .trackname {
- letter-spacing:2px;
- padding:2px;
- font-size:1em;
- font-weight:300;
- color:#333;
- border-bottom:1px solid {color:border};
- }
- .artist {
- letter-spacing:2px;
- padding:2px;
- border-bottom:1px solid {color:border};
- }
- .album {
- padding:2px;
- border-bottom:1px solid {color:border};
- }
- #audiopost {
- width:{text:post width}px;
- {block:permalinkpage}
- width:500px;
- {/block:permalinkpage}
- }
- /* post info */
- .info {
- position:relative;
- border-top:1px solid {color:border};
- padding:10px;
- }
- .info a {
- border:none;
- }
- /* Tags */
- .tags {
- position:absolute;
- right:-250px;
- width:230px;
- {block:ifhovertags}
- opacity:0;
- transform:translate(100px /*x axis*/, 0px /* y axis */);
- transition:.6s;
- {/block:ifhovertags}
- }
- {block:ifhovertags}
- .posts:hover .tags{
- opacity:1;
- transform:translate(0,0); /* moves tags back to original spot */
- transition:.6s;
- }
- {/block:ifhovertags}
- .tags a {
- border:none;
- }
- /* PostNotes */
- ol.notes {
- margin:auto;
- position:relative;
- width:{text:post width}px;
- min-width:250px;
- list-style:none; /* removes bullet points */
- padding:none;
- }
- ol.notes li {
- list-style:none;
- padding:10px;
- border:1px solid {color:border};
- padding-left:none;
- width:calc({text:post width}px - 20px);
- background:{color:posts};
- margin:10px 0px;
- transform:translate(-20px, 0px);
- }
- ol.notes img {
- transform:translate(-4px,4px);
- border-radius:4px;
- float:left;
- }
- /* Pagination */
- #pagination a {color:{AccentColor}}
- #pagination { text-align:center; font-size:.9em; margin:100px auto; position:relative;}
- /* the next buttons */
- .jump_page {
- padding: 4px 6px;
- border:1px solid {color:info border};
- margin:2px;
- background:{color:posts};
- text-decoration:none;
- border-radius:4px;
- }
- .jump_page a {
- border:none;
- }
- /* current page */
- .current_page {
- padding: 4px 6px;
- border:1px solid {AccentColor};
- background:{AccentColor};
- opacity:.8;
- color:white;
- transition:.6s;
- border-radius:4px;
- margin:2px;
- text-decoration:none;
- }
- .current_page:hover {
- opacity:1;
- transition:.6s;
- }
- /* Credit */
- /* since this is a base code, I didn't include my usual css egg credit. You can style it however you want, but I'll keep the common recetangular shape */
- #credit {
- position:fixed;
- right: 10px;
- bottom: 10px;
- font-size:1.2em;
- background:white;
- border:1px solid {color:border};
- padding:4px;
- }
- {CustomCSS}
- </style>
- <body>
- <header>
- <center>
- {block:ShowAvatar} <div class="avatar-{AvatarShape}">
- <img src="{PortraitUrl-64}">
- </div>{/block:ShowAvatar}
- <a href="/"><h2 class="title">{Title}</h2></a>
- <div class="description">
- {Description}
- </div>
- <div class="links">
- <a href="/">{lang:Home}</a>
- {block:AskEnabled}
- <a href="/ask">{AskLabel}</a>
- {/block:AskEnabled}
- {block:SubmissionsEnabled}
- <a href="/submit">{SubmitLabel}</a>
- {/block:SubmissionsEnabled}
- <a href="/archive">{lang:Archive}</a>
- <div style="margin-top:6px">
- {block:HasPages} {block:Pages}<a href="{URL}">{label}</a> {/block:Pages} {/block:HasPages}
- </div>
- </div>
- </center>
- </header>
- <!-- here is the credit! if you're editing this base code for release, feel free to replace the url with your own! -->
- <div id="credit">
- <a href="http://espoirthemes.com" style="border:none;">
- <span class="fa fa-code"></span>
- </a></div>
- <!-- container start -->
- <div id="container">
- {block:Posts}<div class="posts">
- <!-- {block:NoRebloggedFrom}
- {block:RebloggedFrom}{ReblogParentName}{/block:RebloggedFrom}
- {/block:NoRebloggedFrom} -->
- {block:ContentSource}
- <!-- {SourceURL}{block:SourceLogo}<img src="{BlackLogoURL}"
- width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />
- {/block:SourceLogo}
- {block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo} -->
- {/block:ContentSource}
- <!-- text post start -->
- {block:Text}
- {block:Title}
- <h1><a href="{Permalink}">{Title}</a></h1>
- {/block:Title}
- <div class="caption">{Body}</div>
- {/block:Text} <!-- text post end -->
- <!-- photo posts -->
- {block:Photo}
- <img src="{PhotoURL-500}" alt="{PhotoAlt}"/>
- {block:Caption}
- <div class="caption">{Caption}</div>
- {/block:Caption}
- {/block:Photo}<!-- end photo posts -->
- {block:Panorama}
- {LinkOpenTag}
- <img src="{PhotoURL-Panorama}" alt="{PhotoAlt}"/>
- {LinkCloseTag}
- {block:Caption}
- <div class="caption">{Caption}</div>
- {/block:Caption}
- {/block:Panorama}
- <!-- photoset posts -->
- {block:Photoset}
- {Photoset}
- {block:Caption}
- <div class="caption">{Caption}</div>
- {/block:Caption}
- {/block:Photoset}<!-- end photoset -->
- <!-- quote posts -->
- {block:Quote}
- <div class="caption">
- "{Quote}"
- {block:Source}
- <br> -{Source}
- {/block:Source}
- </div>
- {/block:Quote} <!-- end quote posts -->
- <!-- link posts --> {block:Link}
- <h1> <a href="{URL}" style="border:none" class="link" {Target}>{Name}</a></h1>
- {block:Description}
- <div class="caption">{Description}</div>
- {/block:Description}
- {/block:Link}
- <!-- end link posts -->
- {block:Chat}
- <div class="caption">
- {block:Title}<a href="{Permalink}" style="background:transparent; padding:0;"><h1>{title}</h1></a>{/block:Title}
- {block:Lines} <div class="chat">{block:Label}<b>{Label}</b>{/block:Label} {Line}<br/></div>{/block:Lines}
- </div>
- {/block:Chat}{block:Video}
- {Video-500}{block:Caption}
- <div class="caption">{Caption}</div>
- {/block:Caption}
- {/block:Video}{block:Audio}
- <div id="audiopost">
- <div class="playerbox">
- <div id="albumart">{block:AlbumArt}<img src="{AlbumArtURL}">{/block:AlbumArt}</div>
- <center><div class="playercon"><div class="player">{AudioPlayerWhite}</div></div></center></div>
- <div class="infobox">
- <div class="trackname"> {block:TrackName}
- Track: {TrackName}
- {/block:TrackName} </div>
- <div class="artist">
- {block:Artist}
- Artist: {Artist}
- {/block:Artist} </div>
- <div class="album">
- {block:Album}
- Album: {Album}
- {/block:Album}
- </div>
- </div></div> <br> {block:Caption}
- <div class="caption">{Caption}</div>
- {/block:Caption}
- {/block:Audio}
- {block:Answer}
- <div class="caption">
- <br>
- <div class="askerportrait"><img style="position:absolute; margin-left:10px" src="{AskerPortraitURL-40}" align="left" /></div><div class="speechbubble">{Asker} said: {Question}</div> {answer}
- </div>
- {/block:Answer}
- {block:HasTags} <div class="tags"> {block:Tags}<a href="{TagURL}">#{Tag}</a>{/block:Tags}</div> {/block:HasTags}
- {block:Date}
- <div class="info">
- <a href="{permalink}" style="float:right;">{NoteCount}</a>
- <a href="/day/{year}/{monthnumberwithzero}/{dayofmonthwithzero}" title="at {12hour}:{minutes}{AmPM}" >{ShortMonth} {dayofmonth}, {Year}</a>
- {block:permalinkpage}
- {block:RebloggedFrom}<br> {lang:via} <a href="{ReblogParentURL}"> {ReblogParentName}</a> {lang:source} <a href="{ReblogRootURL}"> {ReblogRootName}</a>
- {/block:RebloggedFrom} {/block:permalinkpage}
- </div> <!-- end info -->
- {/block:Date}
- </div><!--posts end-->
- <div id="pagination"><!-- navigation for next post and previous post -->
- {block:PermalinkPagination}
- {block:PreviousPost}
- <a href="{PreviousPost}" class="jump_page">Previous Post</a>
- {/block:PreviousPost}
- {block:NextPost}
- <a href="{NextPost}" class="jump_page">Next Post</a>
- {/block:NextPost}
- {/block:PermalinkPagination}
- </div>
- {block:PostNotes} {PostNotes-16} {/block:PostNotes} {/block:Posts}
- <!-- pagination -->
- <div id="pagination">
- <!-- navigation for next day -->
- {block:DayPagination}{block:PreviousDayPage}
- <a href="{PreviousDayPage}" class="jump_page">
- « {ShortMonth} {DayOfMonth}
- </a>
- {/block:PreviousDayPage}{block:NextDayPage}
- <a href="{NextDayPage}" class="jump_page">
- {ShortMonth} {DayOfMonth} »
- </a>
- {/block:NextDayPage}{/block:DayPagination}
- {block:PreviousPage}
- <a href="{PreviousPage}" class="jump_page">« Previous</a>
- {/block:PreviousPage}{block:NextPage}
- <a href="{NextPage}" class="jump_page">Next »</a>
- {/block:NextPage}
- </div><!-- pagination end -->
- </div><!--container end-->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement