altraviolence

page 10 - visage

Jan 31st, 2018
778
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 6.03 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <!--
  4.  
  5. VISAGE page (10) by PEACHTHMS | peachthms.tumblr.com
  6. V1.0
  7.  
  8. - do not claim this page or any of the code as your own
  9. - do not redistribute this page or any of the code as your own
  10. - do not mix my code with another theme maker's code
  11. - do not remove or edit the credit in anyway; it must remain visible in the code and on the page
  12.  
  13. saturnthms - icon font
  14.  
  15. TO EDIT FILTERS
  16.  
  17. 1. Find <ul class="filters">
  18.  
  19.    <li="filter" data-filter="filtername">filter name</li>
  20.  
  21.    Change the data-filter value between the quotation marks, " " to a single word you wish to use for your filter.
  22.  
  23.    E.G.
  24.    <li class="filter" data-filter="pink">pink</li>
  25.  
  26.  
  27. 2. Find the corresponding img with
  28.  
  29.    <img class="icon" src="#">
  30.  
  31.    Add your matching filter after icon between the quotation marks, " ". Make sure that you do not delete icon.
  32.  
  33.    E.G.
  34.    <img class="icon pink" src="#">
  35.  
  36. -->
  37.  
  38. <head>
  39.  
  40. <title>icons</title>
  41.  
  42. <meta charset="UTF-8">
  43. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  44.  
  45. <link rel="shortcut icon" href="{Favicon}">
  46.  
  47. <link href="https://fonts.googleapis.com/css?family=Lato|Lora|Karla" rel="stylesheet">
  48. <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
  49. <link href="https://dl.dropbox.com/s/50g6fbds3rh4m0j/saturnicons.css" rel="stylesheet">
  50.  
  51. <style type="text/css">
  52.  
  53. * {
  54.     margin: 0;
  55.     padding: 0;
  56. }
  57.  
  58. ::-moz-selection {
  59.     background-color: #649587;
  60.     color: #ffffff;
  61. }
  62.  
  63. ::selection {
  64.     background-color: #649587;
  65.     color: #ffffff;
  66. }
  67.  
  68. ::-webkit-scrollbar {
  69.     width: 5px;
  70.     height: 5px;
  71. }
  72.  
  73. ::-webkit-scrollbar-thumb {
  74.     background: #9bc4b8;
  75. }
  76.  
  77. ::-webkit-scrollbar-track {
  78.     background: #ffffff;
  79. }
  80.  
  81. .tmblr-iframe-compact .tmblr-iframe--unified-controls {
  82.     z-index: 99999999999;
  83.     transform: scale(0.7,0.7);
  84.     filter: invert(50%);
  85. }
  86.  
  87. a {
  88.     color: #9bc4b8;
  89.     text-decoration: none;
  90.     transition: 0.4s ease-in-out;
  91. }
  92.  
  93. a:hover {
  94.     color: #649587;
  95. }
  96.  
  97. body {
  98.     background: #ffffff;
  99.     color: #686868;
  100.     font-family: 'Karla', sans-serif;
  101.     font-size: 12px;
  102.     line-height: 1.8em;
  103. }
  104.  
  105. #container {
  106.     width: 100%;
  107.     height: 100%;
  108. }
  109.  
  110. #wrapper {
  111.     margin: 100px auto;
  112.     display: flex;
  113.     justify-content: space-between;
  114.     width: 80%;
  115.     max-width: 800px;
  116. }
  117.  
  118. aside {
  119.     margin-right: 20px;
  120.     width: 185px;
  121.     position: fixed;
  122.     border-left: 2px solid #9bc4b8;
  123. }
  124.  
  125. aside h1, aside p, aside li {
  126.     padding-left: 15px;
  127. }
  128.  
  129. aside h1 {
  130.     text-transform: uppercase;
  131. }
  132.  
  133. aside p {
  134.     width: 70%;
  135.     margin: 10px 0;
  136. }
  137.  
  138. aside li {
  139.     list-style: none;
  140.     margin: 4px 0;
  141.     cursor: help;
  142. }
  143.  
  144. .colours li::before {
  145.     content: '';
  146.     display: inline-block;
  147.     margin-right: 5px;
  148.     vertical-align: middle;
  149.     width: 5px;
  150.     height: 5px;
  151.     border-radius: 50%;
  152. }
  153.  
  154. /**
  155. to add another colour before the filter copy and paste
  156. make sure the div name matches the id name in the filters section
  157.  
  158. #colourname::before {
  159.     background: colour;
  160. }
  161.  
  162. **/
  163.  
  164. #white::before {
  165.     background: #f1f1f1;
  166. }
  167.  
  168. #pink::before {
  169.     background: #febfca;
  170. }
  171.  
  172. #blue::before {
  173.     background: #bfe0eb;
  174. }
  175.  
  176. #green::before {
  177.     background: #a8f1ab;
  178. }
  179.  
  180. #purple::before {
  181.     background: #dba7f0;
  182. }
  183.  
  184. .active {
  185.     font-weight: bold;
  186. }
  187.  
  188. .divider {
  189.     margin: 5px 0;
  190.     width: 80%;
  191.     height: 2px;
  192.     background: #9bc4b8;
  193. }
  194.  
  195. #grid {
  196.     margin: 0 auto 0 200px;
  197.     padding-right: 30px;
  198. }
  199.  
  200. #grid img {
  201.    
  202.     display: inline-block;
  203. }
  204.  
  205. #grid img {
  206.     margin: 0 15px 15px 0;
  207.     width: 60px;
  208.     border-radius: 4px;
  209.     transition: 0.4s ease-in-out;
  210. }
  211.  
  212. #grid img:hover {
  213.     filter: grayscale(0.7);
  214. }
  215.  
  216. .credit {
  217.     position: fixed;
  218.     bottom: 10px;
  219.     left: 17px;
  220.     font-size: 14px;
  221. }
  222.  
  223. .credit a {
  224.     font-weight: normal;
  225. }
  226.  
  227. .credit span {
  228.     padding: 6px 9px;
  229.     font-size: 10px;
  230.     background: #9bc4b8;
  231.     color: #ffffff;
  232.     border-radius: 6px;
  233.     opacity: 0;
  234.     transition-duration: 0.5s;
  235. }
  236.  
  237. .credit:hover span {
  238.     margin-left: 15px;
  239.     opacity: 1;
  240. }
  241.  
  242. .credit:before {
  243.     content: '\e2b0';
  244.     font-family: 'saturnicons';
  245. }
  246.  
  247. .credit:hover:before {
  248.     color: #9bc4b8;
  249. }
  250.  
  251. </style>
  252.  
  253. </head>
  254.  
  255. <body>
  256.  
  257. <section id="container">
  258.  
  259. <div id="wrapper">
  260.  
  261.     <aside>
  262.         <h1>icon page</h1>
  263.  
  264.         <p>all icons were made by <a href="http://peachthms.tumblr.com">@peachthms</a>.</p>
  265.  
  266.         <div class="divider"></div>
  267.  
  268.         <ul class="filters">
  269.             <li class="active" data-filter="icon">all icons</li>
  270.             <li data-filter="femme">femme</li>
  271.             <li data-filter="homme">homme</li>
  272.             <li data-filter="faceless">faceless</li>
  273.             <li data-filter="flora">flora</li>
  274.         </ul>
  275.  
  276.         <div class="divider"></div>
  277.  
  278.         <ul class="filters colours">
  279.             <li id="white" data-filter="white">white</li>
  280.             <li id="pink" data-filter="pink">pink</li>
  281.             <li id="blue" data-filter="blue">blue</li>
  282.             <li id="green" data-filter="green">green</li>
  283.             <li id="purple" data-filter="purple">purple</li>
  284.             <!-- to add another colour copy and paste
  285.            <li id="colourname" data-filter="filtername">filter name</li>
  286.            -->
  287.         </ul>
  288.     </aside>
  289.  
  290.     <div id="grid">
  291.  
  292.         <!-- to add another icon copy and paste
  293.        <img class="icon" src="#"></div>
  294.        change # to your icon url and add in your filters after "icon
  295.        -->
  296.  
  297.         <img class="icon filter1 filter2" src="https://placehold.it/100x100">
  298.  
  299.     </div>
  300.  
  301. </div>
  302. </section>
  303.  
  304. <div class="credit"><a href="http://peachthms.tumblr.com"><span>page by peachthms</span></a></div>
  305.  
  306. <script>
  307. var $item = $("#grid img");
  308. var $filter = $(".filters li").on("click", function() {
  309.     var active =
  310.         $filter.removeClass("active").filter(this).addClass("active").data("filter");
  311.         $item.hide().filter( "." + active ).fadeIn(500);
  312. });
  313. </script>
  314.  
  315. </body>
  316.  
  317. </html>
Add Comment
Please, Sign In to add comment