Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- //Blogroll base
- by espoirthemes //
- +Obviously, edit it as much as you want! But this can still serve as blogroll on its own.
- +instructions are throughout the code. I made them as straightforward as possible, to cover if you're very new to html and css
- +the preview in the customization page might look kinda off, so you'll have to save and go to the page to make sure everything's working right
- +Feel free to replace the credit with your own! However, if you barely do anything, don't remove it.
- -->
- <!DOCTYPE html >
- <html>
- <head>
- <!-- you can change the title here -->
- <title>Blogroll</title>
- <link rel="shortcut icon" href="{Favicon}">
- <!-- tooltip script -->
- <script type="text/javascript"
- src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
- <script src="http://static.tumblr.com/rzl30kg/eAxm7a751/jquery.style-my-tooltips.js"></script>
- <script>
- (function($){
- $(document).ready(function(){
- $("[title]").style_my_tooltips({
- tip_follows_cursor:true,
- tip_delay_time:200,
- tip_fade_speed:300
- }
- );
- });
- })(jQuery);
- </script>
- <!-- this is so you can automatically add icons from font awesome -->
- <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
- </head>
- <style type="text/css">
- /*tool tips */
- #s-m-t-tooltip{
- max-width:300px;
- margin-top:20px;
- margin-left:20px;
- border:1px dotted #222;
- font-family:sans-serif;
- padding:5px 5px;
- background:#fff;
- color:#222;
- z-index:99999999;
- font-size:12px;
- letter-spacing:2px;
- }
- /*scrollbar that appears in chrome */
- ::-webkit-scrollbar {
- width:10px;
- height:10px;
- padding:2px;
- }
- /*a styling thing I do sometimes is make the scrollbar tracks border thicker, so that it looks like its smaller than the thumb */
- ::-webkit-scrollbar-thumb {
- background:#888;
- border:2px solid #fff;
- border-top:none;
- border-bottom:none;
- border-radius:8px;
- }
- ::-webkit-scrollbar-track {
- background:#eee;
- border:4px solid #fff;
- }
- body {
- margin:0;
- word-wrap:break-word;
- /*background color and image. image url goes between the '' */
- background:#fff url('');
- background-attachment:fixed;
- /*font size: please try not to make it too tiny */
- font-size:14px;
- font-family:sans-serif;
- line-height:100%;
- }
- /*links */
- a {
- text-decoration:none; /*erase this if you want links to be underlined */
- color:#444; /*color of links */
- transition:.6s; /*how fast the transition is when hovering */
- }
- a:hover {
- color:#eee; /*color of the links when hovering */
- transition:.6s;
- }
- /*blogroll container */
- #container {
- position:relative; /*this will make the container move when you scroll down. to change this, make it fixed. However, you'll need to edit the margins if you do this */
- /*margins go like this: top right bottom left */
- margin:50px auto auto auto ;
- width:600px; /*width of container */
- height:500px; /*you can remove this if you want it to scroll with the rest of the page */
- background:white; /*background color */
- padding:20px;
- border:1px solid #ddd; /*border around container */
- overflow:auto;
- }
- /* images of the people you're following */
- #container img {
- border-radius:100%; /*remove this if you want square images */
- padding:2px;
- border:1px solid #eee; /*border around images */
- /*size of images, in case you wanted something different than the default size of the images */
- width:64px;
- height:64px;
- /*how far apart the images are from each other. the bigger the number, the farther apart they are */
- margin:22px;
- /*the first 2 numbers are to make the shadow go to the bottom or right. the 3rd controls how blurry the shadow is, and the last makes the shadow wrap around the image */
- box-shadow:1px 1px 0px 0px #888;
- transition:.6s;
- }
- /*this is an example of a hover effect for the images. this one just makes it spin */
- #container img:hover {
- transform:rotate(100deg);
- transition:.6s;
- box-shadow:none; /*doing this makes the box shadow disappear on hover */
- }
- /*I've styled the credit to look like the images, but feel free to remove the borders and box shadows if you just want text, or completely rewrite it to look how you want it to */
- #credit {
- bottom:10px;
- right:10px;
- border-radius:100%;
- padding:2px;
- background:white;
- border:1px solid #ddd;
- box-shadow:1px 1px 0px #888;
- position:fixed;
- transition:.6s;
- font-size:16px;
- line-height:100%;
- width:14px;
- height:14px;
- text-align:center;
- }
- #credit:hover {
- box-shadow:none;
- transition:.6s;
- }
- </style>
- <body>
- <!--container -->
- <div id="container">
- <!--these 2 blocks are basically to check if you're following anyone, and also to tell who you're following -->
- {block:Following} {block:Followed}
- <!-- I've made it to where the image is a link to the blog, and when you hover over it, the tooltip shows the blog's name, and then the title of the blog -->
- <a href="{FollowedURL}" title="{FollowedName} | {FollowedTitle}">
- <!--you can change the 128 to any of these: 16, 24, 30, 40, 48, 64, 96, 128
- the numbers are the default heights and widths of the images. If you don't want any of those sizes, you can edit the sizes under the css for #container img
- -->
- <img src="{FollowedPortraitURL-128}">
- <!-- Make sure the number for the PortraitURL is either the same size or bigger, otherwise the image will appear blurry or stretched out
- like if you make the size 50px, keep the portrait url at 64, 96, or 128.
- because of this, you really shouldn't make the images larger than 128...plus that's super big anyway.
- -->
- </a>
- <!--closing blocks for if and who you're following -->
- {/block:Followed} {/block:Following}
- </div> <!--closing div for container -->
- <!-- and that's it for the html! This last part is the credit. the link is around the div so that the whole thing is a link, like with the images -->
- <a href="http://espoirthemes.tumblr.com" title="credit" style="color:#aaa">
- <div id="credit">©</div>
- </a>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement