gb-themes

.01 Updates Tab — Starfish Base Code

Jul 12th, 2020
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.88 KB | None | 0 0
  1. /* UPDATES TAB BASE CODE BY HTTPS://GOTH-BUTT.TUMBLR.COM/
  2.  
  3. PASTE THIS SECTION IN RIGHT BEFORE </ STYLE >
  4.  
  5. i tried to make this as new-to-coding-user-friendly as possible but feel free to contact me with any questions or problems that aren't addressed in the commentary. credit can be removed only after significant changes. thanks fam! */
  6.  
  7. .tab {left:10px;bottom:0;position:fixed;width:200px;height:auto;max-height:100%;line-height:120%;overflow:hidden;z-index:99999;}
  8. /* feel free to change the 'width', 'left', and 'line-height' but i wouldn't recommend changing anything else. */
  9.  
  10. /* updates tab image */
  11. .tabs img {cursor:pointer;width:100%;}
  12.  
  13. .tabs img:hover {filter:saturate(150%);-moz-transition-duration:.3s;-webkit-transition-duration:.3s;-o-transition-duration:.3s;}
  14. .tabs {-moz-transition-duration:.3s;-webkit-transition-duration:.3s;-o-transition-duration:.3s;}
  15. .tabs:hover {transform:rotate(17deg);-moz-transition-duration:.3s;-webkit-transition-duration:.3s;-o-transition-duration:.3s;}
  16. /* those three lines above are there if ya wanna get fancy with it (ie, the little rotate the starfish does and the increased saturation on hover). [feel free to delete '.tabs', '.tabs img:hover', and '.tabs:hover' if you don't tho]
  17. transformations website: http://leaverou.github.io/animatable/
  18. filter website: https://www.w3schools.com/CSSref/css3_pr_filter.asp */
  19.  
  20. /* box background and text */
  21. .tab_content {color:#111;display:none;padding:20px;cursor:default;font-size:12px;font-family:'Ubuntu';background:rgba(255,255,255,.50);}
  22. /* you don't have to use the rgba background, i use it to add transparency to the background [the .50 at the end]. you can replace it with 'background:#fff' to make it simpler. also 'Ubuntu' is a custom font i got from google: https://fonts.google.com/ */
  23.  
  24. /* title <h1> */
  25. .tab_content h1 {line-height:20px;font-size:19px;margin:0;}
  26. /* paragraph <p> */
  27. .tab_content p {text-align:justify;}
  28. /* bold <b> */
  29. .tab_content b {font-weight:900;font-size:10px;text-transform:uppercase;letter-spacing:.2px;}
  30. /* italic <i> */
  31. .tab_content i {font-style:italic;}
  32. /* big text <big> */
  33. .tab_content big {font-size:15px;}
  34. /* small text <small> */
  35. .tab_content small {font-size:9px;}
  36. /* underlined <u> */
  37. .tab_content u {border-bottom:1px solid gray;}
  38.  
  39. /* divider <hr> */
  40. .tab_content hr {opacity:.6;}
  41.  
  42. /* list <ul> <li> */
  43. .tab_content ul {list-style-type:circle;padding:5px 27px;margin:0;}
  44. .tab_content li {font-size:11px;}
  45.  
  46. /* links */
  47. .tab_content a {border-bottom:2px solid orange;text-decoration:none;color:#111;-moz-transition-duration:.3s;-webkit-transition-duration:.3s;-o-transition-duration:.3s;}
  48. .tab_content a:hover {border-bottom:3px solid purple;color:#000;-moz-transition-duration:.3s;-webkit-transition-duration:.3s;-o-transition-duration:.3s;}
  49.  
  50.  
  51. <!-- PASTE THIS SECTION IN RIGHT AFTER < BODY > -->
  52.  
  53. <!-- script for clickable updates tab (wouldn't recommend changing anything except "slow") -->
  54. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  55. <script>
  56. $(document).ready(function(){
  57. $(".tabs").click(function(){
  58. $(".tab_content").slideToggle("slow"); /* <- can be "slow" or "fast" */
  59. });
  60. });
  61. </script>
  62.  
  63. <!-- custom font 'Ubuntu' -->
  64. <link href="https://fonts.googleapis.com/css?family=Ubuntu&display=swap" rel="stylesheet">
  65.  
  66. <!-- do NOT change the order of 'tab', 'tabs', and 'tab_content' or it'll fuck up (unless you know what you're doing), but everything after 'tab_content' feel free to mess about with :) -->
  67.  
  68. <!-- first -->
  69. <div class="tab">
  70.  
  71. <!-- second -->
  72. <div class="tabs">
  73. <img src="https://www.goodfreephotos.com/albums/vector-images/orange-star-vector-clipart.png"> <!-- replace everything inside the "" to paste your own url for your image. [saving the picture you want as a draft on tumblr, then right click and select 'copy image address' and paste here between the ""] -->
  74. </div>
  75.  
  76. <!-- third -->
  77. <div class="tab_content">
  78.  
  79. <h1><center> Cute Lil Starfish </center></h1>
  80.  
  81. <p><a href="https://en.wikipedia.org/wiki/Pink">Pink</a> is a pale shade of red that is named after a flower of the same name. Also I suck <strike>donkey dick</strike> at competently <u>explaining</u> things.</p>
  82.  
  83. <hr>
  84.  
  85. <i>a list if you like:</i>
  86. <ul>
  87. <li>books</li>
  88. <li>music</li>
  89. <li>dogs</li>
  90. <li>cats</li>
  91. </ul>
  92.  
  93. <hr>
  94.  
  95. <center>
  96. <big> big boi text </big> <br>
  97. and <br>
  98. <small> smoll cute babey </small>
  99. </center>
  100.  
  101. <hr>
  102.  
  103. <b>reading:</b> the great gatsby <br>
  104. <b>listening to:</b> son lux <br>
  105. <b>watching:</b> avatar the last airbender
  106.  
  107. <!-- make sure you don't delete the '</ div >'! very important they stay intact and where they are, at the end of the updates tab! -->
  108. </div>
  109. </div>
Advertisement
Add Comment
Please, Sign In to add comment