Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* CSS PART */
- /* the main box wraping everything, you can change the width if it's too big */
- .update-container {
- width:180px;
- margin:55px 5px;
- padding:5px;
- position: fixed;
- text-align:right;
- top:0;
- right:0;
- background-color:#FCFCFC;
- border:1px solid #F3F3F3;
- z-index:99999999999;
- box-sizing: border-box;
- transition: 0.5s;
- }
- /* the width it's the size that's gonna increase in the hover */
- .update-container:hover {
- width:250px;
- transition: 0.5s;
- }
- /* the title that appears on each update, it will match the one in the theme, but you can custom here if you want */
- .update h1 {
- text-align:right;
- padding-bottom:5px;
- border-bottom:1px solid #F3F3F3;
- transition: 0.5s;
- }
- .update h1:hover {
- padding-bottom:5px;
- border-bottom:1px solid #F3F3F3;
- transition: 0.5s;
- }
- /* this is each update, the height is 35px only to show the title, but you can decrease or increase a little more depending on the title you use */
- .update {
- margin:10px;
- height:35px;
- overflow:hidden;
- transition: 0.5s;
- }
- .update:hover {
- transition: 0.5s;
- }
- /* this is how big each update will get when you hover, each one will have a different size, adjust according to the content inside them
- each new update 'section' you create, you need to add a new update hover here and adjust the size */
- .update1:hover {
- height:55px;
- }
- .update2:hover {
- height:200px;
- }
- .update3:hover {
- height:100px;
- }
- .update4:hover {
- height:100px;
- }
- .update5:hover {
- height:55px;
- }
- .item {
- padding:7px 0;
- }
- /* this is for the list, but the list itself will match the theme you're using */
- .item ul {
- margin:10px;
- }
- .item-box {
- margin:5px;
- }
- /* this is the inside title you can use inside the updates, i used h2 so it won't look like the h1 that already have. but you can add customizations here too */
- .item h2 {
- margin:10px 0 0 0;
- padding:2px 0;
- text-align:right;
- }
- /* the box with the description on the about part, you can delete or edit as you want */
- .item-box .item-description {
- padding:7px;
- border:1px solid #F3F3F3;
- }
- /* the links will match the theme too, size will be the same size of the theme body text, but you can customize here too */
- .item-links a {
- margin:10px;
- }
- <!-- HTML PART, this goes just after <body> -->
- <div class="update-container"> <!-- the main div that wraps everything -->
- <div class="update update1"> <!-- the one you need to copy to add more, change the update1 to a new number -->
- <h1>title here yay</h1>
- <div class="item item-text">
- <div class="item-description">
- description or anything, it's like a paragraph
- </div>
- </div>
- </div> <!-- and it ends here -->
- <div class="update update2"> <!-- the one you need to copy to add more, change the update2 to a new number -->
- <h1>more stuff</h1>
- <div class="item item-text">
- <div class="item-description">
- and more description
- </div>
- <h2>inside title</h2>
- <div class="item item-links">
- <a href="#">link 1</a> <a href="#">link 2</a> <a href="#">link 3</a>
- </div>
- <div class="item item-list">
- <h2>and list!</h2>
- <ul>
- <li>item</li>
- <li>item</li>
- <li>item</li>
- </ul>
- </div>
- </div>
- </div> <!-- and it ends here -->
- <div class="update update3"> <!-- the one you need to copy to add more, change the update3 to a new number -->
- <h1>about</h1>
- <div class="item item-box">
- <div class="item-description">
- at, nisi. aenean id massa ut lacus molestie porta. curabitur sit amet quam id libero suscipit venenatis. lorem ipsum dolor sit amet, consectetuer at, nisi. aenean id massa ut lacus</div>
- </div>
- </div> <!-- and it ends here -->
- <div class="update update4"> <!-- the one you need to copy to add more, change the update4 to a new number -->
- <h1>list for anything</h1>
- <div class="item item-list">
- <ul>
- <li>item</li>
- <li>item</li>
- <li>item</li>
- </ul>
- </div>
- </div> <!-- and it ends here -->
- <div class="update update5"> <!-- the one you need to copy to add more, change the update5 to a new number -->
- <h1>and links!</h1>
- <div class="item item-links">
- <a href="#">link 1</a> <a href="#">link 2</a> <a href="#">link 3</a>
- </div>
- </div>
- </div> <!-- and it ends here -->
- </div> <!-- the main div that wraps everything ends here -->
Advertisement
Add Comment
Please, Sign In to add comment