loranhale

updates tab

Jan 24th, 2018
750
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. CSS
  2. PASTE THIS BEFORE </style>
  3.  
  4. .update {
  5. position:fixed;
  6. top:45px;
  7. right:20px; /* if you want the tab on the left, change right to left */
  8. cursor:pointer;
  9. }
  10.  
  11. .update svg {
  12. border:1px solid {color:border};
  13. padding:6px;
  14. font-size:12px;
  15. width:15px;
  16. height:15px;
  17. text-align:center;
  18. background:{color:posts};
  19. fill:{color:link};
  20. transition:all .6s ease;
  21. -webkit-transition:all .6s ease;
  22. -moz-transition:all .6s ease;
  23. -o-transition:all .6s ease;
  24. }
  25.  
  26. .updates {
  27. opacity:0;
  28. border:1px solid {color:border};
  29. padding:10px;
  30. height:auto;
  31. width:140px; /* width of updates tab */
  32. background:{color:posts};
  33. float:left;
  34. /* if you want the tab on the left, change left to right */
  35. margin-right:10px;
  36. /* if you want the tab on the left, change margin-right to margin-left */
  37. display:inline-block;
  38. transition:all .6s ease;
  39. -webkit-transition:all .6s ease;
  40. -moz-transition:all .6s ease;
  41. -o-transition:all .6s ease;
  42. }
  43.  
  44. .update:hover .updates { opacity:1; cursor:pointer; }
  45. .update:hover svg { fill:{color:link hover}; }
  46.  
  47. .ut {
  48. color:{color:link};
  49. border-bottom:1px solid {color:border};
  50. padding-bottom:8px;
  51. margin-bottom:10px;
  52. font-weight:bold;
  53. font-size:calc({select:font size} + .5px);
  54. }
  55.  
  56. .border {
  57. background:{color:border};
  58. height:1px;
  59. width:100%;
  60. margin:10px 0;
  61. position:relative;
  62. }
  63.  
  64. HTML
  65. PASTE THIS AFTER <body>
  66.  
  67. <!-- updates tab -->
  68.  
  69. <div class="update">
  70. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 216 216" enable-background="new 0 0 216 216" xml:space="preserve"><path d="M163.8,36.4c-1-2.1-3.1-3.4-5.4-3.4H80.7c-2.5,0-4.7,1.5-5.6,3.9l-33.7,88c-0.7,1.8-0.5,3.9,0.7,5.5c1.1,1.6,3,2.6,4.9,2.6 h37.8l-1.7,53.7c-0.1,2.6,1.5,4.9,3.9,5.8c0.7,0.3,1.4,0.4,2.1,0.4c1.8,0,3.5-0.8,4.6-2.2l81.9-98.9c1.5-1.8,1.8-4.3,0.8-6.4 s-3.1-3.4-5.4-3.4h-38.7l30.8-39.3C164.5,40.9,164.8,38.4,163.8,36.4z M115.3,84.3c-1.4,1.8-1.7,4.3-0.7,6.3c1,2.1,3.1,3.4,5.4,3.4 h38.3l-62.6,75.6l1.3-42.4c0.1-1.6-0.6-3.2-1.7-4.4c-1.1-1.2-2.7-1.8-4.3-1.8H55.7l29.1-76h61.3L115.3,84.3z"/></svg>
  71.  
  72. <div class="updates">
  73.  
  74. <!-- start editing here -->
  75.  
  76. <div class="ut">your updates title</div>
  77.  
  78. <b>hello</b> what's up
  79. <br> add some text here or whatever you want
  80.  
  81. <div class="border"></div>
  82. <b>reading:</b> a book <br>
  83. <b>watching:</b> a show <br>
  84. <b>anticipating:</b> something
  85.  
  86. <!-- paste <div class="border"></div> for more dividers -->
  87.  
  88. </div>
  89. </div>
  90.  
  91. <!-- end updates tab -->
Add Comment
Please, Sign In to add comment