unbrokenlys

Blogroll #01

Sep 3rd, 2014
1,024
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.14 KB | None | 0 0
  1. <html>
  2. <head>
  3.  
  4. <!--
  5. Blogroll #01 by ownmylight.tumblr.com
  6. -->
  7.  
  8. <title>{title}'s blogroll</title> <!-- Change browser title -->
  9. <link rel="shortcut icon" href="{Favicon}"/>
  10. <link rel="alternate" type="application/rss+xml" href="{RSS}"/>
  11. {block:Description}
  12. <meta name="description" content="{MetaDescription}"/>
  13. {/block:Description}
  14.  
  15. <style type="text/css">
  16.  
  17. body {
  18. color: #999; /* Change the blogs description color */
  19. font-family: calibri;
  20. font-size: 8px;
  21. letter-spacing: 0.1em;
  22. text-align: justify;
  23. background-color: #f5f5f5; /* Change the background color */
  24. }
  25.  
  26. .container {
  27. margin: 115px auto;
  28. width: 723px;
  29. }
  30.  
  31. /* ---------------- NAVIGATION/HEADER ---------------- */
  32. .navigation {
  33. margin: 0px 0px 21px -53px;
  34. }
  35.  
  36. .navigation img {
  37. float: left;
  38. border: 5px solid #fff;
  39. border-radius: 100px;
  40. margin-right: -2px;
  41. }
  42.  
  43. .navigation ul {
  44. list-style-type: none;
  45. }
  46.  
  47. .navigation ul li {
  48. display: inline;
  49. }
  50.  
  51. .navigation ul li a {
  52. color: #989898; /* Change the links font color */
  53. font-size: 8px;
  54. font-family: cambria;
  55. font-style: italic;
  56. text-decoration: none;
  57. text-align: center;
  58. text-transform: lowercase;
  59. background-color: #ffffff; /* Change the links background color */
  60. padding: 4px 8px 4px 9px;
  61. }
  62.  
  63. .navigation ul li a:hover {
  64. color: #46BAE2; /* Change the links hover font color */
  65. }
  66. /* ---------------- NAVIGATION/HEADER END ---------------- */
  67.  
  68. /* ---------------- BLOGROLL ---------------- */
  69. .blogrollcontainer {
  70. overflow: hidden;
  71. text-align: center;
  72. border-radius: 10px;
  73. background-color: #fff; /* Change the content (blogroll) background color */
  74. margin-left: 0px;
  75. padding: 9px 3px 9px 0;
  76. height: 314px;
  77. width: 724px;
  78. }
  79.  
  80. .blogroll {
  81. float: left;
  82. margin-bottom: 11px;
  83. margin-left: 11px;
  84. height: 55px;
  85. width: 167px;
  86. }
  87.  
  88. .blogroll img {
  89. float: left;
  90. border: 5px solid #f1f1f1; /* Change if blog icon has border */
  91. border-radius: 100px; /* Change border radius (rounded corners) */
  92. height: 40px;
  93. width: 40px;
  94. }
  95.  
  96. .blogroll a, a:active, a:visited {
  97. color: #A6CBE5; /* Change the blogs title font color (blogurl) */
  98. font-family: calibri; /* Change the font family */
  99. font-weight: bold; /* Change if bold/strong or not */
  100. font-style: normal; /* Change if italic or not */
  101. text-decoration: none;
  102. text-transform: uppercase;
  103. padding: 1px 3px;
  104. }
  105.  
  106. .blogroll a:hover {
  107. color: #46BAE2; /* Change the blogs title hover font color */
  108. text-decoration: none;
  109. }
  110.  
  111. .blogdetails {
  112. float: right;
  113. overflow: hidden;
  114. font-family: cambria; /* Change blogs info font family */
  115. font-style: italic;
  116. text-align: left;
  117. text-transform: none;
  118. border-radius: 5px; /* Change border radius (rounded corners) */
  119. background-color: #f6f6f6; /* Change blogs info background color */
  120. padding: 5px;
  121. height: auto;
  122. width: 100px;
  123. }
  124. /* ---------------- BLOGROLL END ---------------- */
  125.  
  126. /* ---------------- TOOLTIP ---------------- */
  127. #tt {
  128. position: absolute;
  129. display: block;
  130. color: #fff;
  131. letter-spacing: 1px;
  132. text-transform: uppercase;
  133. background: #46BAE2;
  134. padding: 2px 8px;
  135. z-index: 2;
  136. }
  137. /* ---------------- TOOLTIP END ---------------- */
  138. </style>
  139. <!-- Tooltip -->
  140. <script type="text/javascript" src="http://static.tumblr.com/7a6twe2/JMOmqlsdc/tooltip.js"></script>
  141.  
  142. <!-- Scrollbar -->
  143. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
  144. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js"></script>
  145.  
  146. <script type="text/javascript">
  147. /*! Copyright (c) 2011 Piotr Rochala (http://rocha.la)
  148. * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
  149. * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
  150. *
  151. * Version: 0.5.0
  152. *
  153. */
  154. (function(d){jQuery.fn.extend({slimScroll:function(o){var a=ops=d.extend({wheelStep:20,width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:0.4,alwaysVisible:!1,railVisible:!1,railColor:"#333",railOpacity:"0.2",railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,scroll:0},o);this.each(function(){function h(a,d,e){var f=a;d&&(f=parseInt(c.css("top"))+a*B/100*c.outerHeight(),d=b.outerHeight()-c.outerHeight(),
  155. f=Math.min(Math.max(f,0),d),c.css({top:f+"px"}));k=parseInt(c.css("top"))/(b.outerHeight()-c.outerHeight());f=k*(b[0].scrollHeight-b.outerHeight());e&&(f=a,a=f/b[0].scrollHeight*b.outerHeight(),c.css({top:a+"px"}));b.scrollTop(f);p();i()}function w(){q=Math.max(b.outerHeight()/b[0].scrollHeight*b.outerHeight(),o);c.css({height:q+"px"})}function p(){w();clearTimeout(x);l=C&&k==~~k;q>=b.outerHeight()?l=!0:(c.stop(!0,!0).fadeIn("fast"),y&&g.stop(!0,!0).fadeIn("fast"))}function i(){m||(x=setTimeout(function(){!r&&
  156. !s&&(c.fadeOut("slow"),g.fadeOut("slow"))},1E3))}var t,r,s,x,q,k,o=30,l=!1,B=parseInt(a.wheelStep),j=a.width,z=a.height,e=a.size,D=a.color,E=a.position,A=a.distance,u=a.start,F=a.opacity,m=a.alwaysVisible,y=a.railVisible,G=a.railColor,H=a.railOpacity,C=a.allowPageScroll,n=a.scroll,b=d(this);if(b.parent().hasClass("slimScrollDiv"))n&&(c=b.parent().find(".slimScrollBar"),g=b.parent().find(".slimScrollRail"),h(b.scrollTop()+parseInt(n),!1,!0));else{n=d("<div></div>").addClass(a.wrapperClass).css({position:"relative",
  157. overflow:"hidden",width:j,height:z});b.css({overflow:"hidden",width:j,height:z});var g=d("<div></div>").addClass(a.railClass).css({width:e,height:"100%",position:"absolute",top:0,display:m&&y?"block":"none","border-radius":e,background:G,opacity:H,zIndex:90}),c=d("<div></div>").addClass(a.barClass).css({background:D,width:e,position:"absolute",top:0,opacity:F,display:m?"block":"none","border-radius":e,BorderRadius:e,MozBorderRadius:e,WebkitBorderRadius:e,zIndex:99}),j="right"==E?{right:A}:{left:A};
  158. g.css(j);c.css(j);b.wrap(n);b.parent().append(c);b.parent().append(g);c.draggable({axis:"y",containment:"parent",start:function(){s=!0},stop:function(){s=!1;i()},drag:function(){h(0,d(this).position().top,!1)}});g.hover(function(){p()},function(){i()});c.hover(function(){r=!0},function(){r=!1});b.hover(function(){t=!0;p();i()},function(){t=!1;i()});var v=function(a){if(t){var a=a||window.event,b=0;a.wheelDelta&&(b=-a.wheelDelta/120);a.detail&&(b=a.detail/3);h(b,!0);a.preventDefault&&!l&&a.preventDefault();
  159. l||(a.returnValue=!1)}};(function(){window.addEventListener?(this.addEventListener("DOMMouseScroll",v,!1),this.addEventListener("mousewheel",v,!1)):document.attachEvent("onmousewheel",v)})();w();"bottom"==u?(c.css({top:b.outerHeight()-c.outerHeight()}),h(0,!0)):"object"==typeof u&&(h(d(u).position().top,null,!0),m||c.hide())}});return this}});jQuery.fn.extend({slimscroll:jQuery.fn.slimScroll})})(jQuery);
  160. </script>
  161.  
  162. <script type="text/javascript">
  163. $(function(){
  164. $('#slimtest1').slimScroll({
  165. height: '100%',
  166. color: '#A6CBE5',
  167. size: '5px',
  168. alwaysVisible: true
  169. });
  170. });
  171. </script>
  172. <!-- Scrollbar end -->
  173. </head>
  174.  
  175.  
  176. <body>
  177. <div class="container">
  178.  
  179. <div class="navigation">
  180. <a href="/" onmouseover="tooltip.show('back to blog');" onmouseout="tooltip.hide();"><img src="{PortraitURL-40}" border="0" alt=""></a><br>
  181.  
  182. <ul>
  183. <li><a href="/ask">message</a></li>
  184. <li><a href="http://tumblr.com/dashboard">dashboard</a></li>
  185. <li><a href="http://ownmylight.tumblr.com">credit</a></li>
  186. </ul>
  187. </div>
  188.  
  189. <div class="blogrollcontainer"><div id="slimtest1">
  190. {block:Following}{block:Followed}
  191. <div class="blogroll">
  192. <img src="{FollowedPortraitURL-40}"/>
  193. <div class="blogdetails">
  194. <a href="{FollowedURL}" target="_blank" onmouseover="tooltip.show('visit {FollowedName}');" onmouseout="tooltip.hide();">{FollowedName}</a><br>{FollowedTitle}
  195. </div>
  196. </div>
  197. {/block:Followed}{/block:Following}
  198. </div></div>
  199.  
  200. </div>
  201. </body>
  202. </html>
Advertisement
Add Comment
Please, Sign In to add comment