Advertisement
alydae

update tab ii - tab version

Dec 15th, 2019 (edited)
1,723
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. <!--
  2.  
  3. UPDATE TAB II - TAB VERSION
  4. by alydae
  5.  
  6. released: december 15, 2019
  7.  
  8. - do not steal any part of this code
  9. - do not even TOUCH the credit
  10. - direct questions to enchantedthemes.tumblr.com
  11.  
  12. thank you for using!!!
  13.  
  14. -->
  15.  
  16. <script>
  17. $(document).ready(function(){
  18. $(".updclick").click(function(){
  19. $(".updcontent").fadeToggle(1000);
  20. });
  21. });
  22. </script>
  23.  
  24. <style type="text/css">
  25.  
  26. .updbox h1, .updbox h1:hover, .updinfo:before, .updinfo:hover:before {
  27. -webkit-transition: all 0.6s ease-in-out;
  28. -moz-transition: all 0.6s ease-in-out;
  29. -o-transition: all 0.6s ease-in-out;
  30. }
  31.  
  32. .updbox {
  33. position:fixed;
  34. width:160px;
  35. line-height:150%;
  36. padding:10px;
  37. top:10px;
  38. /* to position right: change left to right for this*/
  39. left:10px;
  40. }
  41.  
  42. .updbox h1 {
  43. margin-left:5px;
  44. margin-bottom:13px;
  45. /* to position right: change left to right for these three */
  46. text-align:left!important;
  47. /* if you don't want the border, remove the following. */
  48. padding-left:10px;
  49. border-left:2px solid #eee; /* border colour */
  50. }
  51.  
  52. .updbox h1:hover {
  53. cursor:pointer;
  54. color:#bad1e7; /* title colour on hover */
  55. }
  56.  
  57. .updcontent { display:none; }
  58.  
  59. table { border-collapse:collapse; }
  60. td { padding:5px; vertical-align:top; }
  61. td.updinfo { border-left:1px solid #eee; /* colour of vertical line */ }
  62.  
  63. .upddate {
  64. padding-right:10px;
  65. width:50px;
  66. color:#222; /* left text colour */
  67. font-style:italic;
  68. font-weight:600;
  69. text-transform:uppercase;
  70. letter-spacing:0.5px;
  71. }
  72.  
  73. .updinfo {
  74. width:100px;
  75. padding-left:10px;
  76. }
  77.  
  78. .updinfo:before {
  79. position:absolute;
  80. content:'';
  81. height:9px;
  82. width:9px;
  83. border-radius:50%;
  84. margin-left:-15px;
  85. margin-top:3px;
  86. background:#eee; /* colour of circle */
  87. }
  88.  
  89. .updinfo:hover:before {
  90. background:#aaa; /* colour of circle on hover */
  91. }
  92.  
  93. </style>
  94.  
  95. <!-- update tabs begin -->
  96. <!-- template for new update:
  97. <tr>
  98. <td class="upddate">date</td>
  99. <td class="updinfo">what</td>
  100. </tr>
  101. -->
  102.  
  103. <div class="updbox">
  104. <h1 class="updclick">updates</h1> <!-- should match the title style of your theme. you can have anything here eg. fontawesome icon etc. -->
  105. <div class="updcontent">
  106. <table>
  107. <tr>
  108. <td class="upddate">date</td>
  109. <td class="updinfo">content</td>
  110. </tr>
  111. <tr>
  112. <td class="upddate">date</td>
  113. <td class="updinfo">content</td>
  114. </tr>
  115. <tr>
  116. <td class="upddate">date</td>
  117. <td class="updinfo">content</td>
  118. </tr>
  119. </table>
  120. <!--please don't remove this. if your tabs are positioned on the right, add float:right behind font-weight:700 -->
  121. <p><a style="margin-left:5px; font-weight:700;" href="http://enchantedthemes.tumblr.com" title="alydae">©</a>
  122. </div>
  123. </div>
  124.  
  125. <!-- end update tabs -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement