themesbyces

adding tumblr controls on wandering

Apr 6th, 2024
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. /** head part of the code. please do not include this comment. **/
  2.  
  3. <!-- Tumblr Controls Script --->
  4.  
  5. <script>
  6. $(document).ready(function(){
  7. $('.controls-button').click(function(){
  8. $('body').toggleClass('controls-click');
  9. });
  10. });
  11. </script>
  12.  
  13. /** css part of the code. look for the original .subtitle class. delete it. and replace it with this new one. please do not include this comment. **/
  14.  
  15. .controls-button {
  16. background: {color:Post Background};
  17. border: 1px solid {color:Border};
  18. border-radius: 100px;
  19. color: {color:Link};
  20. font-size: 0.9rem;
  21. font-variant: normal;
  22. height: 0.9rem;
  23. line-height: 1;
  24. padding: 10px;
  25. position: fixed;
  26. right: 20px;
  27. text-rendering: auto;
  28. top: 10.305px;
  29. width: 0.9rem;
  30. z-index: 2;
  31. -webkit-transition: all 0.5s ease;
  32. -moz-transition: all 0.5s ease;
  33. -o-transition: all 0.5s ease;
  34. }
  35.  
  36. .controls-button:hover {
  37. color: {color:Link Hover};
  38. }
  39.  
  40. .tmblr-iframe-compact .tmblr-iframe {
  41. right: 10px;
  42. top: 59px;
  43. opacity: 0;
  44. visibility: hidden;
  45. -webkit-transition: all 0.5s;
  46. -moz-transition: all 0.5s;
  47. -ms-transition: all 0.5s;
  48. -o-transition: all 0.5s;
  49. transition: all 0.5s;
  50. }
  51.  
  52. .controls-click .tmblr-iframe {
  53. opacity: 1.0;
  54. visibility: visible;
  55. -webkit-transition: all 0.5s;
  56. -moz-transition: all 0.5s;
  57. -ms-transition: all 0.5s;
  58. -o-transition: all 0.5s;
  59. transition: all 0.5s;
  60. }
  61.  
  62. /** in this part: @media only screen and (max-width: 1000px) { of the code, add the line below. this is to make sure that the tumblr controls won't appear on mobile. please do not include this comment. **/
  63.  
  64. .controls-button {
  65. display: none;
  66. }
  67.  
  68. /** html part of the code. look for <div class="subtitle">...</div> and replace it with this one. please do not include this comment. **/
  69.  
  70. <a class="controls-button" title="Tumblr Controls"><i class="fas fa-cog"></i></a>
Advertisement
Add Comment
Please, Sign In to add comment