Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.69 KB | None | 0 0
  1. <!--
  2.  
  3.  
  4. SUNRAYS
  5.  
  6. by farkosten | index47
  7.  
  8.  
  9. stock images: unsplash.com
  10. isotope combination filtering: magnusthemes
  11.  
  12.  
  13.  
  14. -->
  15.  
  16. <!DOCTYPE html>
  17. <html>
  18. <head>
  19.  
  20. <!--- change title here --->
  21.  
  22. <title>{Title}</title>
  23.  
  24. <link rel="shortcut icon" href="{Favicon}">
  25. <link rel="altertnate" type="application/rss+xml" href="{RSS}">
  26.  
  27.  
  28.  
  29. <!--- custom fonts: google webfonts --->
  30.  
  31. <link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700|Rubik:400,500,700" rel="stylesheet">
  32.  
  33.  
  34.  
  35.  
  36. </head>
  37. <style type="text/css">
  38.  
  39. * { box-sizing: border-box; margin: 0; }
  40.  
  41. html { margin: 0; overflow-x: hidden; }
  42.  
  43.  
  44. ::-webkit-scrollbar {
  45. width: 10px; }
  46.  
  47. ::-webkit-scrollbar-track {
  48. background-color: #bbb;
  49. border-left:4px solid #eee;
  50. border-right:5px solid #eee;
  51. border-top:0; }
  52.  
  53. ::-webkit-scrollbar-thumb {
  54. background-color: #000;
  55. border-left:4px solid #eee;
  56. border-right:5px solid #eee;
  57. border-top:0; border-bottom: 0; }
  58.  
  59.  
  60.  
  61. .tmblr-iframe.tmblr-iframe--desktop-logged-in-controls.iframe-controls--desktop,
  62. #tumblr_controls{
  63. position:fixed!important;
  64. top:8px!important;
  65. transform:scale(.9);
  66. -webkit-transform:scale(.9);
  67. -moz-transform:scale(.9);
  68. z-index:9999!important;
  69. filter:invert(100%);
  70. -webkit-filter:invert(100%);
  71. -moz-filter:invert(100%);
  72. -ms-filter:invert(100%);
  73. -o-filter:invert(100%);
  74. }
  75.  
  76.  
  77. body {
  78. background-color:#eee;
  79. font-size:12px;
  80. font-family: 'Rubik', sans-serif;
  81. font-weight:400;
  82. -webkit-font-smoothing: antialiased;
  83. -moz-osx-font-smoothing: grayscale;
  84. }
  85.  
  86.  
  87. a {
  88. text-decoration: none;
  89. color:#000;
  90. -webkit-transition:all .2s linear;
  91. transition:all .2s linear; }
  92.  
  93. a:hover {
  94. color:#666;
  95. -webkit-transition:all .2s linear;
  96. transition:all .2s linear; }
  97.  
  98.  
  99.  
  100. /* content */
  101.  
  102.  
  103.  
  104. #wrap {
  105. width:100%; }
  106.  
  107.  
  108.  
  109.  
  110.  
  111. /* filtering */
  112.  
  113. #side {
  114. position: fixed;
  115. top:0;
  116. left: 0;
  117. margin: 45px 0 0 45px;
  118. width:100px; }
  119.  
  120.  
  121. #side h3 {
  122. display: block;
  123. font-weight: 700;
  124. font-size:24px;
  125. color:#222;
  126. font-family: 'Playfair Display', serif;
  127. }
  128.  
  129.  
  130.  
  131. #side nav {
  132. display: block;
  133. margin: 10px 0 0 0; }
  134.  
  135.  
  136. #side nav a {
  137. color: #999;
  138. text-transform: lowercase;
  139. font-size:12px; }
  140.  
  141.  
  142.  
  143.  
  144. #filters {
  145. margin:35px 0;
  146. padding-top:45px;
  147. border-top: 5px solid #d9c300; }
  148.  
  149.  
  150. #filters h1 {
  151. display: inline-block;
  152. font-family: 'Rubik', sans-serif;
  153. font-size: 13px;
  154. letter-spacing: .5px;
  155. text-transform: uppercase;
  156. border-bottom: 2px solid white;
  157. padding: 0 0 5px 0;
  158. margin: 30px 0 20px 0;
  159. }
  160.  
  161. *:focus {outline:0 !important;}
  162.  
  163. .button {
  164. display:block;
  165. font-family: 'Rubik', sans-serif;
  166. border:none;
  167. cursor: crosshair;
  168. padding: 0px 0;
  169. border-bottom: 3px solid transparent;
  170. margin: 5px 0;
  171. background-color: transparent;
  172. -webkit-transition:all .2s linear;
  173. transition:all .2s linear; }
  174.  
  175. .button:hover {
  176. -webkit-transition:all .2s linear;
  177. transition:all .2s linear; }
  178.  
  179. .button.active, .button.is-checked {
  180. font-weight: 700;
  181. border-bottom: 3px solid #d9c300;
  182. }
  183.  
  184. .button-group {
  185. display:block;
  186. vertical-align:top; }
  187.  
  188.  
  189.  
  190. /* masterlist */
  191.  
  192.  
  193. #ml {
  194. width:calc(100% - 170px);
  195. margin: 135px 0 10vh 170px;
  196. }
  197.  
  198.  
  199.  
  200. .box {
  201. display: inline-block;
  202. float: left;
  203. width:360px;
  204. height: 400px;
  205. cursor: crosshair;
  206. overflow: hidden;
  207. }
  208.  
  209. .ph {
  210. display: block;
  211. float: right;
  212. width:250px;
  213. height: 350px;
  214. background-color: #666;
  215. overflow: hidden;
  216. }
  217.  
  218.  
  219. .ph img {
  220. width:100%;
  221. }
  222.  
  223.  
  224.  
  225. .nm {
  226. position: absolute;
  227. height: 350px;
  228. z-index: 6;
  229. }
  230.  
  231. .nm h2 {
  232. position: absolute;
  233. text-align: left;
  234. width:250px;
  235. padding: 0 0 50px 50px;
  236. bottom: 0;
  237. color: #d9c300;
  238. font-family: 'Playfair Display', serif;
  239. font-weight: 400;
  240. font-size:45px;
  241. text-decoration: underline;
  242. text-decoration-color:#fff;
  243. z-index: 6;
  244. -webkit-transition:all .2s linear;
  245. transition:all .2s linear;
  246. transition-delay: .1s;
  247. }
  248.  
  249.  
  250. .box.show .nm h2 {
  251. margin-bottom:160px;
  252. -webkit-transition:all .2s linear;
  253. transition:all .2s linear;
  254. }
  255.  
  256.  
  257. .txt {
  258. opacity: 0;
  259. position: absolute;
  260. bottom: 0;
  261. width:230px;
  262. height: 155px;
  263. overflow: auto;
  264. margin: 0 0 40px 70px;
  265. font-size:13px;
  266. padding: 25px;
  267. line-height: 150%;
  268. background-color: #d9c300;
  269. color:white;
  270. z-index: 5;
  271. -webkit-transition:all .1s linear;
  272. transition:all .1s linear; }
  273.  
  274. .box.show .txt {
  275. opacity: 1;
  276. -webkit-transition:all .1s linear;
  277. transition:all .1s linear;
  278. transition-delay: .1s;
  279. }
  280.  
  281.  
  282. .txt::-webkit-scrollbar {
  283. width: 3px;
  284. }
  285.  
  286. .txt::-webkit-scrollbar-track {
  287. background-color: #d9c300;
  288. border-left:4px solid #e0d3de;
  289. border-top:0;
  290. }
  291.  
  292. .txt::-webkit-scrollbar-thumb {
  293. background-color: #000;
  294. border-left:1px solid #d9c300;
  295. border-right:1px solid #d9c300;
  296. border-top:0; border-bottom: 0;
  297. }
  298.  
  299.  
  300. .lnx {
  301. display: block;
  302. font-size:9px;
  303. margin: 10px 0 0 0;
  304. color: #fff;
  305. }
  306.  
  307. .lnx a { color: #000; font-weight: 500; padding:0 5px; font-size:10px; }
  308.  
  309.  
  310. #cre a {
  311. position: fixed;
  312. bottom: 0;
  313. right: 0;
  314. margin: 20px;
  315. color:black;
  316. font-weight: 700;
  317. padding:5px;
  318. border:1px solid #d9c300;
  319. border-radius: 100%;
  320. font-size:10px; }
  321.  
  322.  
  323.  
  324.  
  325.  
  326. /* HOW TO CHANGE COLORS
  327. ---------------------
  328.  
  329. to change the yellow accent,
  330. search for "#d9c300" and change the hex code.
  331.  
  332.  
  333. /* HOW TO CHANGE CATEGORY COLORS
  334. ---------------------
  335.  
  336. the second group of filters can be given colors
  337. each class (ie. .one, .two) has the default yellow
  338.  
  339. using the same method as above,
  340. find #d9c300 below and change accordingly.
  341.  
  342. */
  343.  
  344. /* changes every character (unless you assign specific colors) */
  345.  
  346. .nm h2 {
  347. color: #d9c300;
  348. text-decoration: underline;
  349. text-decoration-color:#fff;
  350. }
  351.  
  352.  
  353. /* changes the characters of class .one */
  354.  
  355. .one .nm h2 {
  356. color: #d9c300;
  357. text-decoration: underline;
  358. text-decoration-color:#fff;
  359. }
  360.  
  361. /* changes the characters of class .two */
  362.  
  363. .two .nm h2 {
  364. color: #d9c300;
  365. text-decoration: underline;
  366. text-decoration-color:#fff;
  367. }
  368.  
  369. /* changes the characters of class .three */
  370.  
  371. .three .nm h2 {
  372. color: #d9c300;
  373. text-decoration: underline;
  374. text-decoration-color:#fff;
  375. }
  376.  
  377. /* changes the characters of class .four */
  378.  
  379. .four .nm h2 {
  380. color: #d9c300;
  381. text-decoration: underline;
  382. text-decoration-color:#fff;
  383. }
  384.  
  385. /*
  386.  
  387. you can create other classes, like this:
  388.  
  389. .five .nm h2 {
  390. color: #d9c300;
  391. text-decoration: underline;
  392. text-decoration-color:#fff; }
  393.  
  394. */
  395.  
  396.  
  397. </style>
  398. <body>
  399.  
  400.  
  401. <section id="wrap">
  402.  
  403.  
  404. <article id="side">
  405.  
  406.  
  407. <!-- page title -->
  408. <h3>characters</h3>
  409.  
  410.  
  411. <!-- return button -->
  412. <nav> <a href="/">return</a> </nav>
  413.  
  414.  
  415.  
  416. <div id="filters">
  417.  
  418.  
  419. <!-- group 1 -->
  420. <div class="button-group" data-filter-group="group1">
  421.  
  422. <!-- group 1 title -->
  423. <h1>status</h1>
  424.  
  425. <!-- group 1 categories -->
  426.  
  427. <button class="button active" data-filter="">all</button>
  428. <button class="button" data-filter=".red">open</button>
  429. <button class="button" data-filter=".green">closed</button>
  430. <button class="button" data-filter=".blue">npc</button>
  431.  
  432. </div>
  433.  
  434.  
  435. <!-- group 2 -->
  436. <div class="button-group" data-filter-group="group2">
  437.  
  438. <!-- group 2 title -->
  439. <h1>group</h1>
  440.  
  441. <!-- group 1 categories -->
  442.  
  443. <button class="button active" data-filter="">all</button>
  444. <button class="button" data-filter=".one">one</button>
  445. <button class="button" data-filter=".two">two</button>
  446. <button class="button" data-filter=".three">three</button>
  447. <button class="button" data-filter=".four">four</button>
  448.  
  449. </div>
  450.  
  451.  
  452.  
  453. <!--- HOW TO ADD NEW CATEGORIES
  454.  
  455. 1. create a new button:
  456.  
  457. <button class="button" data-filter=".class">category</button>
  458.  
  459. 2. replace ".class" (ie. ".c", ".five")
  460. 3. rename the category
  461.  
  462. --------------------------------
  463.  
  464. HOW TO CREATE A NEW GROUP
  465.  
  466. 1. create a new group:
  467.  
  468. <div class="button-group" data-filter-group="group3">
  469.  
  470. <h1>GROUP NAME</h1>
  471.  
  472. <button class="button active" data-filter="">all</button>
  473. <button class="button" data-filter=".red">red</button>
  474. <button class="button" data-filter=".blue">blue</button>
  475. <button class="button" data-filter=".green">green</button>
  476. <button class="button" data-filter=".yellow">yellow</button>
  477.  
  478. </div>
  479.  
  480. 2. change "group3" as you add more (ie. group4, group5, etc.)
  481.  
  482.  
  483. IMPORTANT: DO NOT REPEAT CLASSES
  484.  
  485. -->
  486.  
  487. <!--- put your new groups between these borders --->
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496. <!--- put your new groups between these borders --->
  497.  
  498.  
  499.  
  500. </div>
  501.  
  502. </article>
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511. <article id="ml">
  512.  
  513.  
  514.  
  515.  
  516.  
  517. <!------ CHARACTER ------>
  518.  
  519. <!---
  520. change/add categories here // do not remove the "box" class
  521. --->
  522. <div class="box red one">
  523.  
  524. <!--- name --->
  525. <div class="nm">
  526.  
  527. <h2> aurora<br> borealis </h2>
  528.  
  529.  
  530. <!--- text --->
  531. <div class="txt">
  532.  
  533. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus quis pellentesque nulla. Vivamus ornare.
  534.  
  535.  
  536. <!--- links --->
  537. <div class="lnx">
  538.  
  539. <a href="/">BIO</a> / <a href="/">TAG</a>
  540.  
  541. </div>
  542.  
  543. </div>
  544. </div>
  545.  
  546.  
  547. <!--- image --->
  548. <div class="ph">
  549.  
  550. <img src="https://static.tumblr.com/hmcdpox/G7Gpwjnb8/untitled-2.png">
  551.  
  552. </div>
  553.  
  554.  
  555. </div>
  556. <!------ CHARACTER END ------>
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564. </article>
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572. </section>
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585. <div id="cre"><a href="https://index47.tumblr.com/">47</a></div>
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592. <!--- JAVASCRIPT - TRY NOT TO ALTER --->
  593.  
  594.  
  595. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
  596. <script src="https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.min.js"></script>
  597.  
  598. <script src="https://static.tumblr.com/p0knose/FpAp5c11c/magnusthemes.combofilters.js"></script>
  599.  
  600.  
  601. <script type="text/javascript">
  602.  
  603. $(document).ready( function() {
  604. // init Isotope
  605. var $grid = $('#ml').isotope({
  606. itemSelector: '.box'
  607. });
  608.  
  609. // store filter for each group
  610. var filters = {};
  611.  
  612. $('#filters').on( 'click', '.button', function() {
  613. var $this = $(this);
  614. // get group key
  615. var $buttonGroup = $this.parents('.button-group');
  616. var filterGroup = $buttonGroup.attr('data-filter-group');
  617. // set filter for group
  618. filters[ filterGroup ] = $this.attr('data-filter');
  619. // combine filters
  620. var filterValue = concatValues( filters );
  621. // set filter for Isotope
  622. $grid.isotope({ filter: filterValue });
  623. });
  624.  
  625. // change is-checked class on buttons
  626. $('.button-group').each( function( i, buttonGroup ) {
  627. var $buttonGroup = $( buttonGroup );
  628. $buttonGroup.on( 'click', 'button', function() {
  629. $buttonGroup.find('.active').removeClass('active');
  630. $( this ).addClass('active');
  631. });
  632. });
  633.  
  634. });
  635.  
  636. // layout Isotope after each image loads
  637. $grid.imagesLoaded().progress( function() {
  638. $grid.isotope('layout');
  639. });
  640.  
  641. // flatten object by concatting values
  642. function concatValues( obj ) {
  643. var value = '';
  644. for ( var prop in obj ) {
  645. value += obj[ prop ];
  646. }
  647. return value;
  648. }
  649.  
  650.  
  651. </script>
  652.  
  653. <script>
  654.  
  655. $(document).ready(function() {
  656. $(".box").click(function(){
  657. $('.box').not(this).removeClass('show');
  658. $(this).toggleClass('show');
  659. })
  660.  
  661. });
  662.  
  663.  
  664. </script>
  665.  
  666. </body>
  667. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement