Advertisement
EllenMaty

Elly's Base Code v2 (Fixed Sidebar)

Oct 15th, 2014
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.47 KB | None | 0 0
  1. <!-- BASE CODE BY ELLY-THEMES | elly-themes.tumblr.com | KEEP THIS CREDITS -->
  2.  
  3. <html lang="en">
  4.  
  5. <head>
  6.  
  7. <!-- Título -->
  8. <title>{Title}</title>
  9.  
  10. <!-- Favicon -->
  11. <link rel="shortcut icon" href="{Favicon}">
  12.  
  13. <!-- S-M-T Tooltip Script -->
  14. <link href="http://static.tumblr.com/3l2jcs4/NYMn4n79a/style-my-tooltips.css" rel="stylesheet" type="text/css" />
  15. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
  16. <script src="http://static.tumblr.com/3l2jcs4/209n1fe9k/jquery.style-my-tooltips.js"></script>
  17. <script>
  18. (function($){
  19. $(document).ready(function(){
  20. $("[title]").style_my_tooltips({
  21. tip_follows_cursor:true,
  22. tip_delay_time:100,
  23. tip_fade_speed:100,
  24. attribute:"title"
  25. });
  26. });
  27. })(jQuery);
  28. </script>
  29.  
  30. <!-- BASE CODE BY ELLY-THEMES | elly-themes.tumblr.com | KEEP THIS CREDITS -->
  31.  
  32. <style type="text/css">
  33.  
  34. body { /* Estilo geral */ background-color: #eee; background-attachment: fixed; font-family: arial; font-size: 13px; color: #757575; background-image: url('http://40.media.tumblr.com/5085c1a54a7a1224dd3b293b78cf944e/tumblr_n7gg1ehJbh1rmzx9io3_250.png'); }
  35.  
  36. a { /* Links */ color: #888; text-decoration: underline; }
  37.  
  38. a:hover { /* Links Hover */ color: #ccc; }
  39.  
  40. #all_content { /* Caixa que abriga a sidebar e os posts */ margin: auto; width: 1004px; }
  41.  
  42. #posts_content { /* Caixa que abriga os posts */ {block:indexpage} width: 704px; {/block:indexpage} {block:permalinkpage} width: 602px; {/block:permalinkpage} margin-left: 300px; }
  43.  
  44. .entry { /* Post em si */ float: left; text-align: left; {block:indexpage} width: 250px; {/block:indexpage} {block:permalinkpage} width: 500px; {/block:permalinkpage} background-color: #fff; box-shadow: 5px 5px 0px #aaa; border: 1px solid #aaa; padding: 20px; margin: 30px; }
  45.  
  46. .entry img { /* Estilo da imagem do post */ max-width: 100%; }
  47.  
  48. .entry li { margin-left: -15px; list-style-type: square; }
  49.  
  50. .pagination { /* Paginaзгo */ display: none; }
  51.  
  52. blockquote { /* Estilo da blockquote */ margin: 0px; border-left: 1px solid #ccc; padding-left: 10px; margin-left: 10px; }
  53.  
  54. .posts_title { /* Tнtulo do Post */ text-align: center; font-size: 15px; color: #fff; background-color: #aaa; border: 1px solid #888; padding: 20px; font-weight: bold; }
  55.  
  56. .posts_title_link a { /* Tнtulo do Post */ text-align: center; font-size: 15px; color: #fff; background-color: #aaa; border: 1px solid #888; padding: 20px; font-weight: bold; display: block; }
  57.  
  58. .posts_title_link a:hover { color: #ddd; }
  59.  
  60. .permalink_box { /* Caixa que abriga os links das notas e do reblog */ text-align: center; border-top: 1px solid #aaa; margin-top: 10px; padding-top: 10px; color: #ccc; }
  61.  
  62. #sidebar_content { /* Caixa que abriga a sidebar */ width: 1004px; z-index: 99; margin: auto; }
  63.  
  64. #sidebar { /* Sidebar em si */ width: 260px; margin-top: 200px; line-height: normal; margin-bottom: 40px; position: fixed; text-align: center; }
  65.  
  66. #sidebar img { /* Estilo da imagem da sidebar */ width: 80px; }
  67.  
  68. .sidebar_title { /* Tнtulo a sidebar */ font-size: 40px; text-transform: uppercase; color: #fff; text-shadow: 1px 1px 0px #888, -1px -1px 0px #888; }
  69.  
  70. #sidebar_links { /* Caixa que abriga os links da sidebar */ position: relative;
  71. margin-left: -10px; }
  72.  
  73. #sidebar_links a { /* Estilo dos links da sidebar */ color: #fff; background-color: #aaa; border: 1px solid #888; padding: 5px 10px; margin-left: 10px; text-decoration: none; }
  74.  
  75. #sidebar_links a:hover { /* Links da sidebar em hover */ background-color: #fff; color: #888; border-color: #ccc; }
  76.  
  77. .sidebar_description { /* Descriзгo da sidebar */ margin-top: 10px; margin-bottom: 25px; }
  78.  
  79. ol.notes li.note { /* Linha da lista de notas de um post */ padding-bottom: 3px; list-style-type: none; }
  80.  
  81. ol.notes blockquote { margin-top: 5px; margin-bottom: 2px; }
  82.  
  83. ol.notes { /* Caixa que abriga as notas de um post */ float: left; padding-top: 10px; margin-left: -25px; list-style-type: none; text-align: left; position: relative; }
  84.  
  85. ol.notes li.note img.avatar { /* Avatar que aparece nas notas de um post */ vertical-align: -4px; margin-right: 10px; width: 16px; height: 16px; }
  86.  
  87. ::-moz-selection { /* Seleзгo colorida para Mozilla Firefox */ background:#888; color:#fff; }
  88.  
  89. ::selection { /* Seleзгo colorida para os demais navegadores */ background:#ccc; color: #fff; }
  90.  
  91. #s-m-t-tooltip { /* Tooltip */ font-family: arial; margin-top: 23px; margin-left: 15px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  92. background-color: #fff; color: #aaa; padding: 5px; border: 1px solid #aaa; }
  93.  
  94. ::-webkit-scrollbar-thumb:vertical { /* Barra de rolagem vertical */ background: #888; }
  95.  
  96. ::-webkit-scrollbar-thumb:horizontal { /* Barra de rolagem horizontal */ background-color: #888; }
  97.  
  98. ::-webkit-scrollbar-corner { /* Encontro das barras de rolagem */ background-color: #aaa; }
  99.  
  100. ::-webkit-scrollbar { /* Barra de rolagem em si */ border: 1px solid #aaa; width:10px; height: 10px; background: #fff; }
  101.  
  102. #asker_box { /* Caixa que abriga as asks */ color: #fff; background-color: #aaa; border: 1px solid #888; padding: 20px; display: block; text-align: left; }
  103.  
  104. #asker_box a { /* Links da caida da ask */ color: #fff; }
  105.  
  106. #asker_box a:hover { /* Links da caixa da ask em hover */ color: #eee; }
  107.  
  108. .quote { /* Estilo da Quote */ font-size: 15px; font-style: italic;}
  109.  
  110. </style>
  111.  
  112. <!-- BASE CODE BY ELLY-THEMES | elly-themes.tumblr.com | KEEP THIS CREDITS -->
  113.  
  114. <!-- Theme em grade por Manatopia.org -->
  115.  
  116. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
  117. <script src="http://static.tumblr.com/6hsqxdt/vmwm2rb4g/infinitescrolling.js"></script><script src="http://static.tumblr.com/6hsqxdt/QBym35odk/jquery.masonry.js"></script>
  118.  
  119. <script>
  120. $(function(){
  121. var $container = $('#posts_content');
  122. $container.imagesLoaded(function(){
  123. $container.masonry({
  124. itemSelector: '.entry',
  125. });
  126. });
  127. $container.infinitescroll({
  128. itemSelector : ".entry",
  129. navSelector : "div.pagination",
  130. nextSelector : ".pagination a#next",
  131. loadingImg : "",
  132. loadingText : "<em></em>",
  133. bufferPx : 10000,
  134. extraScrollPx: 12000,
  135. },
  136. // trigger Masonry as a callback
  137. function( newElements ) {
  138. var $newElems = $( newElements ).css({ opacity: 0 });
  139. // ensure that images load before adding to masonry layout
  140. $newElems.imagesLoaded(function(){
  141. $newElems.animate({ opacity: 1 });
  142. $container.masonry( 'appended', $newElems, true );
  143. });
  144. }
  145. );
  146. });
  147. </script>
  148.  
  149. </head>
  150.  
  151. <body>
  152.  
  153. <div class="pagination">
  154. {block:Pagination}{block:PreviousPage}<a href="{PreviousPage}">previous</a> &middot;{/block:PreviousPage} {block:NextPage}<a href="{NextPage}" id="next">next</a>{/block:NextPage}{/block:Pagination}
  155. </div>
  156.  
  157. <div id="sidebar_content">
  158.  
  159. <div id="sidebar">
  160.  
  161. <div class="sidebar_title">{Title}</div>
  162.  
  163. <div class="sidebar_description">{block:Description}{Description}{/block:Description}</div>
  164.  
  165. <div id="sidebar_links">
  166. <a href="#" title="Link Tooltip">Home</a>
  167. <a href="#" title="Link Tooltip 2">Message</a>
  168. <a href="#" title="Link Tooltip 3">Archive</a>
  169. </div>
  170.  
  171. </div>
  172.  
  173. </div>
  174.  
  175. <div id="all_content">
  176.  
  177. <center>
  178.  
  179. <div id="posts_content">
  180.  
  181. {block:Posts}
  182.  
  183. <!-- BASE CODE BY ELLY-THEMES | elly-themes.tumblr.com | KEEP THIS CREDITS -->
  184.  
  185. {block:ContentSource}
  186. <!-- {SourceURL}{block:SourceLogo}<img src="{BlackLogoURL}"
  187. width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />
  188. {/block:SourceLogo}
  189. {block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo} -->
  190. {/block:ContentSource}
  191.  
  192. <div class="entry">
  193.  
  194. {block:Text} {block:Title}<div style="border-bottom: 15px solid transparent"><div class="posts_title">{Title}</div></div>{/block:Title}
  195. <div style="margin-top: -15px;">{Body}</div> {/block:Text}
  196.  
  197. {block:Quote}<div class="quote">"{Quote}"</div> </p> <div style="text-align:right">- {Source}</div> {/block:Quote}
  198.  
  199. {block:Link} <div class="posts_title_link"><a href="{URL}">{Name}</a></div> {block:description}{description}{/block:description} {/block:Link}
  200.  
  201. {block:Chat} {block:Lines}{block:Label}<b>{Label}</b> {/block:Label}{Line}<br>{/block:Lines} {/block:Chat}
  202.  
  203. {block:Answer} <div id="asker_box"><b>{Asker} asked:</b> {Question}</div> {Answer} {/block:Answer}
  204.  
  205. {block:Audio} <center>{AudioPlayerGrey}</center> <br>
  206. <b>Track Name:</b> {block:TrackName}{TrackName}{/block:TrackName}<br>
  207. <b>Artist:</b> {block:artist}{Artist}{/block:artist}<br>
  208. <b>Album:</b> {block:Album}{Album}{/block:Album}<br>
  209. <b>Player Count:</b> {FormattedPlayCount} plays<br>{/block:Audio}
  210.  
  211. {block:Video} {block:indexpage}{Video-250}{/block:indexpage} {block:permalinkpage}{Video-500}{/block:permalinkpage} {/block:Video}
  212.  
  213. {block:Photo} {block:indexpage}<img src="{PhotoURL-250}"/>{/block:indexpage} {block:permalinkpage}<img src="{PhotoURL-500}"/>{/block:permalinkpage} {/block:Photo}
  214.  
  215. {block:Photoset} {block:indexpage}{Photoset-250}{/block:indexpage} {block:permalinkpage}{Photoset-500}{/block:permalinkpage} {/block:Photoset}
  216.  
  217. {block:caption}{Caption}{/block:caption}
  218.  
  219. {block:IndexPage} <div class="permalink_box"><a href="{ReblogURL}" target="_blank">Reblog</a> / <a href="{Permalink}">{NoteCount}</a>{block:HasTags}<br>{block:Tags}<i><a href="{TagURL}">#{Tag}</a></i>{/block:Tags}{/block:HasTags}</div>{/block:IndexPage}
  220.  
  221. {block:PermalinkPage} {block:PostNotes}{PostNotes}{/block:PostNotes} {/block:PermalinkPage}
  222.  
  223. </div>
  224.  
  225. <!-- BASE CODE BY ELLY-THEMES | elly-themes.tumblr.com | KEEP THIS CREDITS -->
  226.  
  227. {/block:Posts}
  228.  
  229. </div>
  230.  
  231. </center>
  232.  
  233. </body>
  234.  
  235. </html>
  236.  
  237. <!-- BASE CODE BY ELLY-THEMES | elly-themes.tumblr.com | KEEP THIS CREDITS -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement