pegasusthemes

revamp 02 // electra

Apr 6th, 2020 (edited)
1,663
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.10 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <head>
  3.  
  4. <!-- ELECTRA by @venusthms / @leejordan
  5.  
  6. -------------------------------------------------------------------------
  7.  
  8. - do no redistribute any part of this theme or remove the credit
  9. - terms of use: venusthms.tumblr.com/terms
  10.  
  11. - masonry & filter tutorial @cyantists
  12. - more credits https://venusthms.tumblr.com/credits
  13.  
  14. ------------------------------------------------------------------------>
  15.  
  16. <title>members</title><link rel="shortcut icon" href="{Favicon}"><!--tab title-->
  17.  
  18. <!---- Scripts: no need to edit ---->
  19. <link href="https://fonts.googleapis.com/css?family=Karla" rel="stylesheet"><link href="//dl.dropbox.com/s/7donh9k4jonbmw5/venus.css" rel="stylesheet"><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script><script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script><script src="//dl.dropbox.com/s/qxwy3ik34kqna5q/venus.js"></script><script src="//dl.dropbox.com/s/ykrvbtp0cbz250a/button.js"></script>
  20.  
  21. <link href="http://static.tumblr.com/4gatuv1/X8Poxwvz8/style-my-tooltips.css" rel="stylesheet" type="text/css" /><script src="http://static.tumblr.com/4gatuv1/Aneoxwvz8/jquery.style-my-tooltips.js"></script><script>!function(t){t(document).ready(function(){t("a[title]").style_my_tooltips({tip_follows_cursor:!0,tip_delay_time:200,tip_fade_speed:300})})}(jQuery);</script>
  22.  
  23. <script src="https://static.tumblr.com/xd6ujov/9Rpouml9f/imagesloaded.pkgd.min.js"></script><script src="//venusthms.github.io/pages/masonry.js"></script>
  24.  
  25. <script>$(document).ready(function(){
  26. var $grid = $(".grid"); $grid.imagesLoaded(function() {
  27. $grid.masonry({
  28. itemSelector: ".item",
  29. columnWidth: 270, /* needs to be 20 more than item width */
  30. horizontalOrder: true,
  31. fitWidth: true
  32. })
  33. });
  34. $(".button").click(function(){
  35. $(this).addClass("selected");
  36. $(".button").not($(this)).removeClass("selected");
  37. var ssf = $(this).attr("filter");
  38. $(".item." + ssf).show();
  39. $(".item").not("." + ssf).hide();
  40. $grid.masonry();
  41. });
  42. });</script>
  43.  
  44.  
  45. <style type="text/css">
  46.  
  47. /* adjustments */
  48. :root {
  49. --background: #fff;
  50. --text: #333!important;
  51. --accent-bg: #fafafa;
  52. --borders: #f6f6f6;
  53. --accent: #e6bbc3;
  54.  
  55. --font: 'Karla';
  56. --font-size: 12px!important;
  57.  
  58. --sidebar-width: 20vw; /*use vw, not px*/
  59. --item-icon-size: 50px;
  60. }
  61.  
  62. /* tumblr controls */
  63. iframe.tmblr-iframe {
  64. z-index:99999999999999!important;
  65. top:0!important;
  66. right:0!important;
  67. opacity:0.4;
  68. /* delete invert(1) from here */
  69. filter:invert(1) contrast(150%);
  70. -webkit-filter:invert(1) contrast(150%);
  71. -o-filter:invert(1) contrast(150%);
  72. -moz-filter:invert(1) contrast(150%);
  73. -ms-filter:invert(1) contrast(150%);
  74. /* to here if your blog has a dark background */
  75. transform:scale(0.65);
  76. transform-origin:100% 0;
  77. -webkit-transform:scale(0.65);
  78. -webkit-transform-origin:100% 0;
  79. -o-transform:scale(0.65);
  80. -o-transform-origin:100% 0;
  81. -moz-transform:scale(0.65);
  82. -moz-transform-origin:100% 0;
  83. -ms-transform:scale(0.65);
  84. -ms-transform-origin:100% 0;}
  85.  
  86. iframe.tmblr-iframe:hover {
  87. opacity:0.6!important;}
  88.  
  89. /* borders */
  90. aside {border-right: 1px solid var(--borders)}
  91. .item {border: 1px solid var(--borders)}
  92.  
  93. /* border radius */
  94. .item,.icon img, .left img {border-radius:5px}
  95.  
  96. /* titles */
  97. aside h1 {font-size:1.25em}
  98. .title h1 {font-size:1.1em}
  99.  
  100. /* filters */
  101. .button.selected {box-shadow:0 -5px 0 var(--accent) inset} /* selected filter */
  102. .button:hover {box-shadow:0 -5px 0 var(--accent) inset} /* filter on hover */
  103.  
  104. /* items */
  105.  
  106. /* if you want to change the width of the item, you need to adjust the width in the script at the top (search for columnwidth and see note there) */
  107. .item {width: 250px;height:auto;padding:10px}
  108.  
  109. .item a, .right a {color: var(--accent)} /* in text links */
  110. .item a:hover, .right a:hover {color: var(--text)} /* in text links on hover */
  111.  
  112. </style>
  113. <link href="//dl.dropbox.com/s/y9x0ka1bc6838ky/style.css" rel="stylesheet">
  114. </head>
  115.  
  116. <body>
  117.  
  118. <!----- sidebar starts ----->
  119. <aside>
  120.  
  121. <!--- title --->
  122. <h1>Title</h1>
  123.  
  124. <!--- icon --->
  125. <!--- if you don't want your icon, change {PortraitURL-96} to an image URL --->
  126. <!--- if you don't want an image: delete from here --->
  127. <div class="sb-content">
  128. <div class="left">
  129. <img src="{PortraitURL-96}" />
  130. </div>
  131. <!--- to here --->
  132.  
  133. <!--- description --->
  134. <!--- put between <span> and </span> --->
  135. <div class="right">
  136.  
  137. <span>Description here. Looks better if it's at least two lines.</span>
  138.  
  139. </div>
  140. </div>
  141.  
  142. <!--- links --->
  143. <div class="links">
  144. <a href="/">Index</a>
  145. <a href="/ask">Contact</a>
  146. <a href="/">Link</a>
  147. <a href="/">Link</a>
  148. <a href="#" class="filter-button">Filter</a>
  149. </div>
  150.  
  151. <!--- filter --->
  152. <!--- <div class="button" filter="FILTERNAME">name that will be seen</div> --->
  153. <div class="filters">
  154. <div class="button selected" filter="item">Everything</div>
  155. <div class="button" filter="filter1">Filter one</div>
  156. <div class="button" filter="filter2">Filter two</div>
  157. <div class="button" filter="filter3">Filter three</div>
  158. </div>
  159.  
  160. </aside>
  161. <!----- sidebar ends ----->
  162.  
  163. <!----- grid starts ----->
  164. <div class="content">
  165. <div class="grid">
  166.  
  167. <!--- item starts --->
  168. <!--- put filter name (from above) after item --->
  169. <!--- <div class="button" filter="FILTERNAME">Filter....</div> --->
  170. <div class="item filternamehere">
  171.  
  172. <!--- icon --->
  173. <div class="icon">
  174. <img src="https://i.imgur.com/qz8ZVzN.png" />
  175. </div>
  176.  
  177. <div class="title">
  178. <h1>Title</h1> <!--- title --->
  179. <span>subtitle <a href="/">(can be a link)</a></span> <!--- subtitle --->
  180. </div>
  181.  
  182. <!--- description --->
  183. <div class="text">
  184. Description here.
  185. </div>
  186.  
  187. </div>
  188. <!--- item ends --->
  189. <!--- copy & paste as needed --->
  190.  
  191.  
  192.  
  193. <!----- grid ends ----->
  194. <!----- don't edit after this line ----->
  195. </div>
  196. </div>
  197.  
  198. <!----- credit: do not edit or remove ----->
  199. <a href="https://venusthms.tumblr.com/" title="venusthms">
  200. <div class="venus-icon"></div>
  201. </a>
  202. </body>
  203. </html>
Add Comment
Please, Sign In to add comment