Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <head>
- <!--
- peppermint
- @odeysseus
- -->
- <link rel="shortcut icon" href="{Favicon}">
- <link rel="alternate" type="application/rss+xml" href="{RSS}">
- <title>bookshelf</title> <!--title-->
- <link href='https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,700,700italic' rel='stylesheet' type='text/css'>
- <style type="text/css">
- /* to hide tumblr controls */
- iframe#tumblr_controls, iframe.tmblr-iframe.tmblr-iframe--desktop-loggedin-controls.iframe-controls--desktop,iframe.tmblr-iframe.tmblr-iframe--desktop-logged-in-controls.iframe-controls--desktop { display:none!important; }
- ::-webkit-scrollbar{ height:3px;width:1px;background:inherit;}
- ::-webkit-scrollbar-thumb {background:#eee;}
- ::-webkit-scrollbar-track {background:transparent;}
- body {
- background:#f7f7f7; /* main background */
- color:#767676; /* text color */
- font-family:'Open Sans', sans-serif;
- font-size:9.5px; /* font size */
- font-weight:300;
- -moz-osx-font-smoothing:grayscale;
- -webkit-font-smoothing:antialiased;
- font-smoothing:antialiased;
- }
- a, nav a:after,.sort a:after,.book {
- transition:all .4s ease;
- -webkit-transition:all .4s ease;
- -moz-transition:all .4s ease;
- -o-transition:all .4s ease;
- }
- a {
- color:#999; /* link color */
- text-decoration:none;
- }
- a:hover { text-decoration:none; color:#222; }
- aside { top:0;left:0;width:120px;height:100%;position:fixed;background:#fff;text-align:right;padding-right:30px;padding-left:30px; }
- aside img { margin-top:150px;margin-bottom:10px;width:40px;height:40px;border-radius:5px; }
- h8 { color:#444;font-size:13px;letter-spacing:.5px;display:block;margin-bottom:10px;font-style:italic;font-weight:400; }
- nav a { display:block;margin-top:3px; }
- nav a:after,.sort a:after { content:'··';color:#666;margin-left:5px;font-weight:bold;} nav a:hover:after,.sort a:hover:after { margin-left:13px; }
- .sort li { list-style:none;margin-top:3px;}
- .sort ul { margin-left:0px;padding-top:10px;border-top:1px solid #eee; }
- .sort li a.selected { color:#222;font-weight:400; } .sort li a.selected:after { margin-left:13px; }
- section { margin:60px;left:180px;width:calc(270px * 3); }
- .book { width:200px;background:#fff;padding:15px;float:left;line-height:180%;margin:20px;} .book h1 { width:185px;font-weight:400;font-style:italic;margin:0 0 10px 0;padding:0 0 10px 0;color:#444;font-size:11px;border-bottom:1px solid #eee; }
- .book h1 b { display:block;font-size:8.5px;text-transform:uppercase;letter-spacing:1px;font-weight:300;font-style:normal;margin-top:3px;}
- .link { margin-top:10px;text-align:center;padding-top:10px;border-top:1px solid #eee; } .link a { border-right:1px solid #eee;margin-right:10px;padding-right:10px; font-size:9px;text-transform:uppercase;letter-spacing:.5px;margin-left:-10px;}
- .fave:after {
- top:5px;right:5px;content:' ♥ ';position:absolute;padding:2px 6px;background:#fafafa;color:#D490B0;border:1px solid #eee;border-radius:3px;
- }
- .d { max-height:140px;overflow-y:auto;padding-right:5px; }
- .nice { bottom:20px;right:20px;position:fixed; }
- </style>
- </head>
- <body>
- <aside>
- <img src="{PortraitURL-64}"/>
- <h8>bookshelf</h8> <!--main title-->
- <nav> <!--sidebar links: add or delete as you wish-->
- <a href="/">return</a>
- <a href="http://tumblr.com/dashboard">dashboard</a>
- <a href="http://odeysseus.tumblr.com">theme</a>
- </nav>
- <div class="sort">
- <ul id="filters" class="option-set clearfix" data-option-key="filter">
- <!--these are your filters. an example:
- <li><a href="#filter" data-option-filter=".FILTER">filter name</a></li>
- -->
- <li><a href="#filter" data-option-filter=".book">everything</a></li>
- <li><a href="#filter" data-option-filter=".fave">favorites</a></li>
- <li><a href="#filter" data-option-filter=".series">series</a></li>
- <li><a href="#filter" data-option-filter=".standalone">standalone</a></li>
- <li><a href="#filter" data-option-filter=".ya">young adult</a></li>
- </ul>
- </div>
- </aside>
- <section>
- <!-- start books
- for filters: where it says <div class="book">, you can add filters corresponding to the filters above. for example, for a favorite ya series, you would tag it <div class="book fave ya series"> and it would show up under all those filters. the "book" needs to be there for all of them. you can add new filters above by copying and pasting the example above, then adding the filter class to your book. for example, if i wanted to add a category for classics, i would add the filter like this:
- <li><a href="#filter" data-option-filter=".classic">classics</a></li>
- then tag the book like this: <div class="book classic"> for it to work.
- -->
- <!----- START EXAMPLE BOOK ----->
- <div class="book"> <h1>book name <b>book author</b></h1>
- <div class="d"> book description goes here </div>
- <div class="link"> <a href="GOODREADS LINK">goodreads</a>
- ★★★★★ <!--star rating-->
- </div>
- </div>
- <!----- END EXAMPLE BOOK ----->
- <!--end books - do not edit beyond this point-->
- </section>
- <div class="nice"><a href="http://odeysseus.tumblr.com">O</a></div>
- </body>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script src="http://static.tumblr.com/twte3d7/H8Glm663z/masonry.js"></script> <script src="http://static.tumblr.com/fuu6t9w/kh8ml0pl9/jquery-1.7.1.min.js"></script> <script src="http://static.tumblr.com/fuu6t9w/eubml0pm0/jquery.isotope.min.js"></script>
- <script>
- $(window).load(function () {
- $('section').masonry({
- itemSelector : ".book", },
- function() { $('section').masonry({ appendedContent: $(this) }); } ); });
- $(function(){ var $container = $('section');
- $container.isotope({
- itemSelector : '.book' });
- var $optionSets = $('.sort .option-set'),
- $optionLinks = $optionSets.find('a');
- $optionLinks.click(function(){
- var $this = $(this); if ( $this.hasClass('selected') ) { return false; }
- var $optionSet = $this.parents('.option-set');
- $optionSet.find('.selected').removeClass('selected');
- $this.addClass('selected');
- var options = {},
- key = $optionSet.attr('data-option-key'),
- value = $this.attr('data-option-filter');
- value = value === 'false' ? false : value;
- options[ key ] = value;
- if ( key === 'layoutMode' && typeof changeLayoutMode === 'function' ) {
- changeLayoutMode( $this, options )
- } else { $container.isotope( options ); }
- return false; });
- });
- </script>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment