Advertisement
EllenMaty

Elly's Base Code

Mar 29th, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.04 KB | None | 0 0
  1.  
  2. <!--
  3. Base code por elly - http://thelittledanger.tumblr.com/
  4. Não redistribua sem minha autoria!
  5. -->
  6.  
  7. <html lang="en">
  8.  
  9. <head>
  10.  
  11. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
  12.  
  13. {block:IndexPage}
  14. <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/iBElrgjim/jquerymasonry.js"></script>
  15. <script type="text/javascript" src="http://static.tumblr.com/dbek3sy/Qyblrgjfn/jqueryinfintescroll.js"></script>
  16.  
  17. <script type="text/javascript">
  18. $(window).load(function(){
  19. var $wall = $('#entry');
  20. $wall.imagesLoaded(function(){
  21. $wall.masonry({
  22. itemSelector: '#post, #post_photo',
  23. isAnimated : false
  24. });
  25. });
  26.  
  27. $wall.infinitescroll({
  28. navSelector : '#pagination',
  29. nextSelector : '#pagination a',
  30. itemSelector : '#post, #post_photo',
  31. bufferPx : 2000,
  32. debug : false,
  33. errorCallback: function() {
  34. $('#scroll').fadeOut('normal');
  35. }},
  36. function( newElements ) {
  37. var $newElems = $( newElements );
  38. $newElems.hide();
  39. $newElems.imagesLoaded(function(){
  40. $wall.masonry( 'appended', $newElems,{isAnimated: false}, function(){$newElems.fadeIn('slow');} );
  41. });
  42. }); $('#entry').show(500);
  43. });
  44. </script>
  45. {/block:IndexPage}
  46.  
  47. <style type="text/css">
  48.  
  49. body {
  50. background-color: white;
  51. background-attachment: fixed;
  52. }
  53.  
  54. a {
  55. color: #FAA0BB;
  56. text-decoration: none;
  57. -webkit-transition: all 0.4s ease-in-out;
  58. -moz-transition: all 0.4s ease-in-out;
  59. -o-transition: all 0.4s ease-in-out;
  60. }
  61.  
  62. a:hover {
  63. color: #FFDEF0;
  64. -webkit-transition: all 0.4s ease-in-out;
  65. -moz-transition: all 0.4s ease-in-out;
  66. -o-transition: all 0.4s ease-in-out;
  67. }
  68.  
  69. #container {
  70. margin: auto;
  71. width: 510px;
  72. font-family: consolas;
  73. font-size: 11px;
  74. color: #757575;
  75. }
  76.  
  77. #entry {
  78. width: 270px;
  79. margin-left: 250px;
  80. margin-top: 20px;
  81. {block:PermalinkPage}
  82. width:500px;
  83. {/block:PermalinkPage}
  84. }
  85.  
  86. #post {
  87. width: 250px;
  88. padding: 10px;
  89. margin-bottom: 20px;
  90. {block:PermalinkPage}
  91. width:500px;
  92. {/block:PermalinkPage}
  93.  
  94. }
  95.  
  96. #post img {
  97. max-width: 100%;
  98. }
  99.  
  100. .posttitle {
  101. text-align: center;
  102. font-size: 15px;
  103. color: #FAA0BB;
  104. }
  105.  
  106. .permalink {
  107. text-align: center;
  108. border-top: 1px solid #FAA0BB;
  109. margin-top: 10px;
  110. padding-top: 5px;
  111. color: #FAA0BB;
  112. }
  113.  
  114. #sidebar {
  115. width: 150px;
  116. position: fixed;
  117. text-align: center;
  118. margin-top: 140px;
  119. margin-left: 20px;
  120. }
  121.  
  122. #sidebar img {
  123. max-width: 100%;
  124. }
  125.  
  126. .sidetitle {
  127. font-size: 15px;
  128. color: #FAA0BB;
  129. }
  130.  
  131. #links {
  132. position: relative;
  133. }
  134.  
  135. #links a {
  136. color: #fff;
  137. display: block;
  138. background-color: #FAA0BB;
  139. margin-bottom: 5px;
  140. padding: 1px;
  141. }
  142.  
  143. #links a:hover {
  144. background-color: #fff;
  145. color: #FAA0BB;
  146. }
  147.  
  148. .source {
  149. margin-top: 5px;
  150. text-align: right;
  151. }
  152.  
  153. #scroll{
  154. bottom:-20px;
  155. position: absolute;
  156. left: 50%;
  157. width:10px;
  158. height:5px;
  159. overflow:hidden;
  160. margin-bottom:80px;}
  161.  
  162. ol.notes li.note {
  163. padding-bottom: 3px;
  164. }
  165.  
  166. ol.notes {
  167. padding-top: 10px;
  168. margin-left: -40px;
  169. list-style-type: none;
  170. }
  171.  
  172. ol.notes li.note img.avatar {
  173. vertical-align: -4px;
  174. margin-right: 10px;
  175. width: 16px;
  176. height: 16px;
  177. }
  178.  
  179. ::-moz-selection {
  180. background:#FAA0BB; /*Cor do fundo*/
  181. color:#fff; /*Cor da fonte*/
  182. }
  183. ::selection {
  184. background:#FAA0BB;/*Cor do fundo*/
  185. color: #fff; /*Cor da fonte*/
  186. }
  187.  
  188.  
  189. </style>
  190.  
  191. </head>
  192.  
  193. <body>
  194. <div id="container">
  195.  
  196. <div id="sidebar">
  197.  
  198. <div class="sidetitle">{Title}</div></p>
  199.  
  200. <img src="http://media-cache-ak0.pinimg.com/236x/e4/f7/4d/e4f74d5313c0b2fea331132eaae5e9a1.jpg"></p>
  201.  
  202. It does not matter how slow you go so long as you do not stop.</p>
  203.  
  204. <div id="links">
  205. <a href="#">Home</a>
  206. <a href="#">Message</a>
  207. <a href="#">Archive</a>
  208. </div>
  209.  
  210. </div>
  211.  
  212. <div id="entry">
  213.  
  214. {block:Posts}
  215.  
  216. {block:ContentSource}
  217. <!-- {SourceURL}{block:SourceLogo}<img src="{BlackLogoURL}"
  218. width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />
  219. {/block:SourceLogo}
  220. {block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo} -->
  221. {/block:ContentSource}
  222.  
  223. <div id="post">
  224.  
  225. {block:Text}
  226. <div class="posttitle">{block:Title}{Title}{/block:Title}</div>
  227. {Body}
  228. {/block:Text}
  229.  
  230. {block:Quote}
  231. "{Quote}"<br>
  232. — {Source}
  233. {/block:Quote}
  234.  
  235. {block:Link}
  236. <div class="posttitle"><a href="{URL}">{Name}</a></div>
  237. {/block:Link}
  238.  
  239. {block:Chat}
  240. {block:Lines}{block:Label}{Label} {/block:Label}{Line}<br>{/block:Lines}
  241. {/block:Chat}
  242.  
  243. {block:Answer}
  244. {Asker} asked: {Question}<br>
  245. {Answer}
  246. {/block:Answer}
  247.  
  248. {block:Audio}
  249. {AudioPlayer}
  250. {/block:Audio}
  251.  
  252. {block:Video}
  253. {Video-400}
  254. {/block:Video}
  255.  
  256. {block:Photo}
  257. <img src="{PhotoURL-400}"/>
  258. {/block:Photo}
  259.  
  260. {block:Photoset}
  261. {Photoset-400}
  262. {/block:Photoset}
  263.  
  264. {block:caption}{Caption}{/block:caption}
  265.  
  266. {block:PermalinkPage}
  267. {block:Caption}{Caption}{/block:Caption}
  268. <p>{block:Date} {Month} {DayofMonthWithSuffix}, {Year}{/block:Date} {block:NoteCount}, {NoteCountWithLabel}{/block:NoteCount} {block:RebloggedFrom}, (via <a href="{ReblogParentURL}">{ReblogParentName}</a>){/block:RebloggedFrom}
  269. {block:PostNotes}{PostNotes}{/block:PostNotes}{/block:PermalinkPage}
  270.  
  271. {block:IndexPage}
  272. <div class="permalink"><a href="{ReblogURL}">Reblog</a> /
  273. <a href="{Permalink}">{NoteCount}</a></div>{/block:IndexPage}
  274.  
  275. </div>
  276. {/block:Posts}
  277. </div>
  278.  
  279. {block:IndexPage}
  280. {block:Pagination}
  281. <div id="pagination">
  282. {block:NextPage}
  283. <a id="nextPage" href="{NextPage}"></a>
  284. {/block:NextPage}
  285. {block:PreviousPage}
  286. <a href="{PreviousPage}"></a>
  287. {/block:PreviousPage}
  288. </div>
  289. {/block:Pagination}
  290. {/block:IndexPage}
  291.  
  292. </body>
  293.  
  294. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement