Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- - quotes page #1 '88' by sur 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/ask
- -->
- <!DOCTYPE html>
- <head>
- <title>{Title}</title>
- <link rel="shortcut icon" href="{favicon}">
- <link rel="alternate" type="application/rss+xml" href="{RSS}">
- <link href="https://fonts.googleapis.com/css?family=Kaushan+Script" rel="stylesheet">
- <script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js'></script>
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
- <script src='//npmcdn.com/isotope-layout@3/dist/isotope.pkgd.js'></script><script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.js"></script>
- <style type="text/css">
- ::-webkit-scrollbar-thumb:vertical {height:0px;border-left:1px solid #aaa;}
- ::-webkit-scrollbar {width:5px;height:0px;background:inherit;}
- .tmblr-iframe.iframe-controls--desktop {
- margin: 10px;
- opacity:.4;
- -moz-transition-duration: 0.2s;
- -o-transition-duration: 0.2s;
- -webkit-transition-duration: 0.2s;
- transition-duration: 0.2s;}
- .tmblr-iframe--desktop-logged-in-controls {
- -webkit-filter:invert(100%);
- -moz-filter:invert(100%);
- -o-filter:invert(100%);
- -ms-filter:invert(100%);
- filter:invert(100%);
- opacity:0.6;}
- #s-m-t-tooltip{
- max-width:300px;
- margin-top:25px;
- margin-left:15px;
- z-index:999999;
- letter-spacing:1.3px;
- text-transform:uppercase;
- font-size:10.5px;
- font-family:calibri;
- border: solid 1px #ddd;
- background-color:#fcfcfc;
- color:#777;
- padding:3px 5px 3px 5px;
- line-height:12px;}
- body {
- color:#444;
- font-size:13px;
- font-family: Times;
- background-color:#fff; /* background color */
- letter-spacing:1px;}
- a{
- word-break:break-word;
- color:#aaa; /* links color */
- text-decoration:none;
- -moz-transition-duration: 0.6s;
- -o-transition-duration: 0.6s;
- -webkit-transition-duration: 0.6s;
- transition-duration: 0.6s;}
- a:hover{
- color:#000; /* links color on hover*/
- -moz-transition-duration: 0.6s;
- -o-transition-duration: 0.6s;
- -webkit-transition-duration: 0.6s;
- transition-duration: 0.6s;
- }
- #content {margin:40px 0 20px 420px;}
- #sidebar {
- width:420px;
- text-align:center;
- position:fixed;
- top:0px;
- bottom:0px;
- left:0px;
- border-right:1px solid #eee;
- background:#fefefe; /* sidebar background color */
- }
- .btitle {
- font-family:'Kaushan Script', serif;
- font-style:italic;
- letter-spacing:.4px;
- font-size:49px;
- text-shadow: #ddd 3px 2px 0px;
- letter-spacing:4px;
- margin-top:50px;
- }
- .nav {margin-top:25px;font-size:13px;letter-spacing:1.4px;}
- .nav a{padding-right:10px;color:#888;}
- .nav a:last-child{padding-right:0px;}
- .desc {margin:50px 0 15px;font-size:15px;}
- .side {
- width:390px;
- margin:auto;
- text-transform:lowercase;
- font-size:14px;
- font-style:italic;
- line-height:58px;
- -webkit-column-count: 2; /* Chrome, Safari, Opera */
- -moz-column-count: 2; /* Firefox */
- column-count: 2;}
- .side a{border-bottom:1px dotted #ccc;padding-bottom:12px;}
- .side a:before {content:'∙ ';color:#444;}
- .scroll {margin-top:50px;max-height:40%;overflow:scroll;}
- .quote {
- width:360px;
- margin:40px 40px 65px 60px;
- font-size:16px;
- line-height:22px;
- letter-spacing:.8px;}
- .quote:first-letter {font-size:23px;text-transform:uppercase;}
- .source{
- margin-top:10px;
- text-align:right;
- font-style:italic;
- font-size:13px;
- letter-spacing:.7px;}
- </style>
- </head>
- <body>
- <div id="container">
- <div id="sidebar">
- <div class="btitle">
- quotes <!-- title -->
- </div>
- <div class="nav">
- <a href="/">index</a>
- <a href="/ask">askbox</a>
- <a href="http://tumblr.com">dashboard</a>
- </div>
- <div class="desc">
- a collection of my favourite quotes <!-- description -->
- </div>
- <!--
- INSTRUCTIONS:
- short version:
- 1) add this under <div class="side">:
- <a href="#" data-filter=".CUSTOM-FILTER">link on sidebar</a><br>
- 2) then go to <div id="content"> and add this underneath
- <div class="quote CUSTOM-FILTER">
- QUOTE HERE
- </div>
- - the data-filter has to have the same name as the class in the quote div, separated with a space
- ----------------------------
- long version:
- - CUSTOMIZING FILTERS:
- 1) go to the line that says: "<div class="side">" right under this
- - do not modify the first line, only change the 'all quotes' inside the link for whatever you want it to say. this filter is what shows all the quotes
- - heres the template for the filters, add it right underneath:
- <a href="#" data-filter=".CUSTOM">CUSTOM NAME/a><br>
- 2) change the CUSTOM in [ data-filter=".CUSTOM"> ] for whatever you want, then change the next CUSTOM NAME for the title of the link you want to show up on the left sidebar
- example:
- <a href="#" data-filter=".greenday">green day lyrics/a><br>
- - note that i wrote '.greenday' and not '.green day' these filters can't have spaces, only use - and _ if you need. so if you do that it'd look like this:
- <a href="#" data-filter=".green-day">green day lyrics/a><br>
- - ADDING QUOTES:
- 3) heres the template for the quote itself, paste this right under <div id="content">
- <div class="quote">
- QUOTE HERE
- </div>
- - dont delete the 'quote' inside the class=""
- 4) add the filter you want inside <div class="quote"> this time separating the filters with a space.
- example:
- <div class="quote greenday">
- QUOTE HERE
- </div>
- that's it! if you want to add multiple filters, repeat the steps
- -->
- <div class="scroll"><div class="side">
- <a href="#" data-filter="*" class="current">All quotes</a><br>
- <!-- dont forget to add <br> at the end of each link! -->
- <a href="#" data-filter=".FILTER1">filter 1</a><br>
- <a href="#" data-filter=".FILTER2">filter 2</a><br>
- <a href="#" data-filter=".FILTER3">filter 3</a><br>
- <a href="#" data-filter=".FILTER4">filter 4</a>
- </div></div>
- </div><!--sidebar-->
- <div id="content" data-masonry='{ "itemSelector": ".quote"}'>
- <!--quote start-->
- <div class="quote FILTER1">
- your quote goes here
- <div class="source">
- optional source
- </div>
- </div>
- <!--quote end-->
- <!--quote start-->
- <div class="quote FILTER2">
- your quote goes here
- </div>
- <!--quote end-->
- <!--quote start-->
- <div class="quote FILTER3">
- your quote goes here
- <div class="source">
- optional source
- </div>
- </div>
- <!--quote end-->
- <!--quote start-->
- <div class="quote FILTER4">
- your quote goes here
- </div>
- <!--quote end-->
- </div><!--content-->
- </div><!--container-->
- <script>
- $(window).load(function(){
- var $container = $('#content');
- $container.isotope({
- filter: '*',
- animationOptions: {
- duration: 750,
- easing: 'linear',
- queue: false
- }
- });
- $('.side a').click(function(){
- $('.side .current').removeClass('current');
- $(this).addClass('current');
- var selector = $(this).attr('data-filter');
- $container.isotope({
- filter: selector,
- animationOptions: {
- duration: 750,
- easing: 'linear',
- queue: false
- }
- });
- return false;
- });
- });
- </script>
- <script>
- $('#content').masonry({
- itemSelector: '.quote',
- });
- </script>
- <!-- tooltips -->
- <script src="http://static.tumblr.com/iuw14ew/VSQma1786/jquery.style-my-tooltips.js"></script>
- <script>
- (function($){
- $(document).ready(function(){
- $("a[title]").style_my_tooltips({
- tip_follows_cursor:true,
- tip_delay_time:30,
- tip_fade_speed:300,
- attribute:"title"
- });
- });
- })(jQuery);
- </script>
- <div style="position:fixed;bottom:18px;right:18px;font-family:calibri;font-size:14.5px;line-height:18px;height:20px;text-align:center;width:20px;color:#777;letter-spacing:.7px;background:white"><a style="color:#555" href="http://southcodes.tumblr.com" title="southcodes">sc</a></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement