hunterthemes

- Updates tab #1

Jun 8th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. /*-- U P D A T E S T A B #1 BY H U N T E R T H E M E S --*/
  2.  
  3. PASTE THIS UNDER <style type="text/css">
  4.  
  5. /*-- UPDATES TAB #1 BY @HUNTERTHEMES --*/
  6.  
  7. #updatestab{
  8. position:fixed; /* if you want it to move on scroll then replace “fixed” with “absolute” */
  9. /* change the top and left value, width, padding etc, leave height on “auto” */
  10. top:20px;
  11. left:60px;
  12. width:140px;
  13. height:auto;
  14. /* change the colors*/
  15. background:#fff;
  16. border:1px solid #eee;
  17. /* z-index value needs to be big so it will make sure the navigation tab doesn’t get hidden below other elements on the page*/
  18. z-index:10000;
  19. /* makes the tab hidden before you click on icon to open it*/
  20. display:none;
  21. }
  22.  
  23. #updatestabin{
  24. margin:5px;
  25. border:1px dashed #eee;
  26. }
  27.  
  28. /*– Styling of the updates tab headings (you can change the values yourself) –*/
  29. #utitle1, #utitle2, #utitle3, #utitle4 {
  30. margin:0px;
  31. padding:6px;
  32. color:#333;
  33. background:#fff;
  34. background:url("https://68.media.tumblr.com/fd25cf263f97e81a3b403a06dae0013e/tumblr_or8ckeAiyP1uo5urho1_250.png");
  35. border-top:1px solid #eee;
  36. border-bottom:1px solid #eee;
  37. font-size:14px;
  38. line-height:14px;
  39. font-family:Helvetica;
  40. font-weight:normal;
  41. text-align:center;
  42. }
  43.  
  44. #utitle1{
  45. border-top:1px solid transparent;
  46. }
  47.  
  48. /*– Styling of the updates tab content (you can change the values yourself) –*/
  49.  
  50. #ucontent1, #ucontent2, #ucontent3, #ucontent4 {
  51. padding:5px;
  52. font-size:12px;
  53. line-height:17px;
  54. color:#333;
  55. background:#fff;
  56. text-align:center;
  57. }
  58.  
  59. /*– Styling of the updates tab links (you can change the values yourself) –*/
  60.  
  61. #updatestab a {
  62. font-size:12px;
  63. padding:2px;
  64. font-family:Helvetica;
  65. color:#555;
  66. }
  67.  
  68. #updatestab a:hover {
  69. color:000;
  70. }
  71.  
  72. /*– Updates tab bolded and italic text (you can change the values yourself) –*/
  73.  
  74. #updatestab b {
  75. color:#000;
  76. }
  77.  
  78. #updatestab i {
  79. color:#ccc;
  80. }
  81.  
  82. /* END CSS */
  83.  
  84.  
  85. PASTE THIS UNDER <body>
  86.  
  87. <!-- UPDATES TAB #1 BY @HUNTERTHEMES -->
  88.  
  89. <div id="click"><i class="fa fa-bars"></i></div>
  90.  
  91. <div id="updatestab">
  92.  
  93. <div id="updatestabin">
  94.  
  95. <div id="utitle1"> Updates </div>
  96. <div id="ucontent1">
  97.  
  98. Put updates here
  99.  
  100. </div>
  101. <!--End content-->
  102.  
  103. <div id="utitle2"> Status </div>
  104. <div id="ucontent2">
  105.  
  106. <b>Ask box:</b> open <br>
  107. <b>Followers:</b> xxxxxx </br>
  108. <b>Visis:</b> xxxxxx </br>
  109. <b>Online</b> xxxxxx </br>
  110.  
  111. </div>
  112. <!--End content-->
  113.  
  114. <div id="utitle3"> Networks </div>
  115. <div id="ucontent3">
  116.  
  117. <b>01</b> <a href="http://"> network </a> <br>
  118. <b>02</b> <a href="http://"> network </a> <br>
  119. <b>03</b> <a href="http://"> network </a> <br>
  120.  
  121. </div>
  122. <!--End content-->
  123.  
  124. <div id="utitle4"> Other </div>
  125. <div id="ucontent4">
  126.  
  127. Put info here
  128.  
  129. </div>
  130. <!--End content-->
  131.  
  132. </div>
  133. <!--End updatestabin-->
  134.  
  135. </div>
  136. <!--End updatestab-->
  137.  
  138.  
  139. SCRIRPTS
  140.  
  141. <!-- Font awesome -->
  142.  
  143. <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
  144.  
  145. <!--Show/hide updates tab on click-->
  146.  
  147. <script>
  148. $(document).ready(function(){
  149. $("#click").click(function(){
  150. $("#updatestab").toggle(500);
  151. });
  152. });
  153. </script>
Add Comment
Please, Sign In to add comment