Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!------------------------------------------------------------------------
- plume
- by @atlasthemes
- pls do not remove credit thanks!<3
- - masonry basecode via @cyantists
- - pop up tutorial via @octomoosey
- all credits available at
- atlasthemes.tumblr.com/credits
- ------------------------------------------------------------------------->
- <html>
- <head>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <link rel="shortcut icon" href="{Favicon}">
- <!-- text for browser tab -->
- <title>projects</title>
- <!-- google fonts -->
- <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700" rel="stylesheet">
- <!-- scripts -->
- <script type="text/javascript"
- src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
- <script src="https://static.tumblr.com/xd6ujov/9Rpouml9f/imagesloaded.pkgd.min.js"></script>
- <script src="https://static.tumblr.com/f6blkfc/3khouzw5b/masonry.pkgd.min.js"></script>
- <script>
- $(document).ready(function(){
- var $grid = $(".container"); $grid.imagesLoaded(function() {
- $grid.masonry({
- itemSelector: ".project",
- columnWidth: 50
- });
- });
- });
- </script>
- <script>
- $(document).ready(function() {
- //
- $('a.poplight[href^=#]').click(function() {
- var popID = $(this).attr('rel'); //Get Popup Name
- var popURL = $(this).attr('href'); //Get Popup href to define size
- var query= popURL.split('?');
- var dim= query[1].split('&');
- var popWidth = dim[0].split('=')[1]; //Gets the first query string value
- $('#' + popID).fadeIn().css({ 'width': Number( popWidth ) }).prepend('<a href="#" class="close"></a>');
- var popMargTop = ($('#' + popID).height() + 80) / 2;
- var popMargLeft = ($('#' + popID).width() + 80) / 2;
- //Apply Margin to Popup
- $('#' + popID).css({
- 'margin-top' : -popMargTop,
- 'margin-left' : -popMargLeft
- });
- $('body').append('<div id="fade"></div>');
- $('#fade').css({'filter' : 'alpha(opacity=80)'}).fadeIn(); //Fade in the fade layer - .css({'filter' : 'alpha(opacity=80)'})
- return false;
- });
- $('a.close, #fade').live('click', function() {
- $('#fade , .popup_block').fadeOut(function() {
- $('#fade, a.close').remove(); //fade them both out
- });
- return false;
- });
- });
- </script>
- </head><style type="text/css">
- @-webkit-keyframes fadein {
- 0% {opacity: 0;}
- 100% { opacity: 1; }}
- @-moz-keyframes fadein {
- 0% { opacity: 0; }
- 100% { opacity: 1; }}
- @keyframes fadein {
- 0% { opacity: 0; }
- 100% { opacity: 1; }}
- ::-webkit-scrollbar {width:9px;height:9px;}
- ::-webkit-scrollbar {background-color:transparent;}
- ::-webkit-scrollbar-track {border:4px solid #fff;background-color:#ddd;}
- ::-webkit-scrollbar-thumb {border:4px solid #fff;background-color:#aaa;min-height:24px;min-width:24px;}
- body {
- background-color:#ffffff;
- font-family:'Open Sans'; /* main font */
- color:#444; /* text color */
- font-size:10px; /* main font size */
- letter-spacing:0px; /* letter spacing */
- line-height:18px;
- text-align:justify;
- -moz-osx-font-smoothing:grayscale;
- -webkit-font-smoothing:antialiased;
- font-smoothing:antialiased;
- -webkit-animation: fadein 1s;
- -moz-animation:fadein 1s;
- animation:fadein 1s;
- }
- a {
- color:#888888; /* link color */
- text-decoration:none;
- -webkit-transition: all .3s ease-in-out;
- -moz-transition: all .3s ease-in-out;
- -o-transition: all .3s ease-in-out;
- -ms-transition: all .3s ease-in-out;
- transition: all .3s ease-in-out;
- }
- a:hover {
- color:#222; /* link hover color */
- -webkit-transition: all .3s ease-in-out;
- -moz-transition: all .3s ease-in-out;
- -o-transition: all .3s ease-in-out;
- -ms-transition: all .3s ease-in-out;
- transition: all .3s ease-in-out;
- }
- h1 {font-family:Times New Roman;font-size:14px;margin:5px 0px;padding:0px;font-weight:400;}
- .container {position:relative;right:0;left:0;margin:100px auto;width:1000px;}
- .header {display:block;width:925px;margin: 100px auto 50px auto;font-family:Times New Roman;font-size:20px;font-style:italic;}
- .header span {font-size:9.5px;float:right;text-transform:uppercase;letter-spacing:1px;font-style:normal;}
- .header span a {margin-left:10px;}
- .project {width:400px;height:auto;padding:15px;margin:34px;border:1px solid #f1f1f1;border-radius:2px;-webkit-transition: all .3s ease-in-out;-moz-transition: all .3s ease-in-out;-o-transition: all .3s ease-in-out;-ms-transition: all .3s ease-in-out;transition: all .3s ease-in-out;}
- .project:hover {border:1px solid #ccc;-webkit-transition: all .3s ease-in-out;-moz-transition: all .3s ease-in-out;-o-transition: all .3s ease-in-out;-ms-transition: all .3s ease-in-out;transition: all .3s ease-in-out;}
- .title {
- min-width:100px;
- max-width:200px; /* width of project title - adjust for longer titles */
- font-family:Times New Roman;
- text-transform:uppercase;
- letter-spacing:1px;
- font-size:11px;
- margin: -25px auto 15px auto;
- text-align:center;
- background-color:#fff;
- z-index:1;
- }
- .stats {display:grid;grid-template-columns:auto auto auto auto;margin-bottom:10px;text-align:center;}
- .stats span {display:block;}
- .stats span b {font-weight:400;font-family:Times New Roman;font-size:9.5px;letter-spacing:1px;text-transform:uppercase;}
- .syn {margin:5px 0px;}
- /* progress bars */
- .meter {
- display:inline-block;
- height: 4px;
- width: 70%;
- position: relative;
- background:#f7f7f7; /* progress bar background color */
- -moz-border-radius: 25px;
- -webkit-border-radius: 25px;
- border-radius: 25px;
- padding: 2px;
- margin:20px 0px 10px 0px;
- }
- .meter > span {
- display: block;
- height: 100%;
- border-top-right-radius: 8px;
- border-bottom-right-radius: 8px;
- border-top-left-radius: 20px;
- border-bottom-left-radius: 20px;
- background-color:#ddd; /* progress bar fill color */
- position: relative;
- overflow: hidden;
- }
- .more {display:block;float:right;text-align:right;height:20px;width:80px;margin-top:14px;}
- .more a {font-size:9.5px;text-transform:uppercase;font-family:Times New Roman;letter-spacing:1px;}
- .tags {font-family:Times New Roman;font-size:9px;letter-spacing:1px;text-transform:uppercase;margin:5px 0px;}
- .tags a {display:inline-block;padding:1px 6px;background-color:#fafafa;border-radius:2px;margin-right:8px;margin-bottom:8px;}
- .tags a:hover {background-color:#f1f1f1;}
- .links {display:grid;grid-template-columns:33% 33% 33%;margin:5px 0px;}
- .links a {display:block;}
- iframe.tmblr-iframe {z-index:99999999999999!important;top:0!important;right:0!important;opacity:0.4;filter:invert(1) contrast(150%);-webkit-filter:invert(1) contrast(150%);-o-filter:invert(1) contrast(150%);-moz-filter:invert(1) contrast(150%);-ms-filter:invert(1) contrast(150%);transform:scale(0.65);transform-origin:100% 0;-webkit-transform:scale(0.65);-webkit-transform-origin:100% 0;-o-transform:scale(0.65);-o-transform-origin:100% 0;-moz-transform:scale(0.65);-moz-transform-origin:100% 0;-ms-transform:scale(0.65);-ms-transform-origin:100% 0;-moz-transition-duration: 0.3s;-o-transition-duration: 0.3s;-webkit-transition-duration: 0.3s;transition-duration: 0.3s;}
- iframe.tmblr-iframe:hover {opacity:0.6!important;-moz-transition-duration: 0.3s;-o-transition-duration: 0.3s;-webkit-transition-duration: 0.3s;transition-duration: 0.3s;}
- /*-- pop ups --*/
- .popup_block {
- display:none;
- background:#fff; /* pop up background color */
- padding:20px;
- border:1px solid #f1f1f1; /* border width & color */
- border-radius:3px;
- float:left;
- text-align:justify;
- position:fixed;
- top:50%;left:50%;
- z-index: 99999;
- -webkit-box-shadow: 2px 2px 5px #eee;
- -moz-box-shadow: 2px 2px 5px #eee;
- box-shadow: 2px 2px 5px #eee;
- }
- *html #fade {position: absolute;}
- *html .popup_block {position: absolute;}
- #fade {
- display:none;
- position:fixed;
- left:0px;
- top:0px;
- width:100%;
- height:100%;
- z-index:9999;
- background:#fff;
- opacity:0.8; /* opacity of the screen behind the pop up */
- }
- </style><body>
- <!------------------------------------------------------------------------->
- <!-- editing starts here -->
- <!------------------------------------------------------------------------->
- <div class="header">
- <!-- page title -->
- works in progress
- <span>
- <a href="/">return</a>
- <a href="/ask">contact</a>
- <a href="http://www.tumblr.com/dashboard">dash</a>
- <!-- theme credit - pls don't remove thanks ily!! <33 -->
- <a href="http://www.atlasthemes.tumblr.com">theme</a>
- </span>
- </div>
- <div class="container">
- <!--- project one --------------------------------------------------------->
- <div class="project">
- <!-- title -->
- <div class="title">title one</div>
- <!-- stats - change to whatever you want -->
- <div class="stats">
- <span><b>item:</b> content</span>
- <span><b>item:</b> content</span>
- <span><b>item:</b> content</span>
- <span><b>item:</b> content</span>
- </div>
- <!-- description -->
- <div class="syn">
- project one content goes here.
- </div>
- <!-- progress bar - change percentage -->
- <div class="meter">
- <span style="width: 30%"></span>
- </div>
- <!-- more info link (you can delete this on any project if you don't want to use a pop up for that project.) the 400 is the width of the pop up. box1 needs to match the number of the corresponding pop up box at the bottom of this code. you only need to edit this part if you want to change the width of the pop up. -->
- <div class="more">
- <a href="#?w=400" rel="box1" class="poplight">[ more info ]</a>
- </div>
- </div><!--- end project one ----------------------------------------------->
- <!--- project two --------------------------------------------------------->
- <div class="project">
- <div class="title">title two</div>
- <div class="stats">
- <span><b>item:</b> content</span>
- <span><b>item:</b> content</span>
- <span><b>item:</b> content</span>
- <span><b>item:</b> content</span>
- </div>
- <div class="syn">
- project two content goes here.
- </div>
- <div class="meter">
- <span style="width: 75%"></span>
- </div>
- <div class="more">
- <a href="#?w=400" rel="box2" class="poplight">[ more info ]</a>
- </div>
- </div><!--- end project two ----------------------------------------------->
- <!--- project three ------------------------------------------------------->
- <div class="project">
- <div class="title">title three</div>
- <div class="stats">
- <span><b>item:</b> content</span>
- <span><b>item:</b> content</span>
- <span><b>item:</b> content</span>
- <span><b>item:</b> content</span>
- </div>
- <div class="syn">
- project three content goes here.
- </div>
- <div class="meter">
- <span style="width: 90%"></span>
- </div>
- <div class="more">
- <a href="#?w=400" rel="box3" class="poplight">[ more info ]</a>
- </div>
- </div><!--- end project three --------------------------------------------->
- </div>
- </body>
- <!-------------------------------- POP UPS --------------------------------
- below are the pop up boxes. to create more pop ups, just copy and paste one of the boxes as many times as you need to. just make sure to update "box1" so that it matches the project number and corresponding "more info" link.
- --------------------------------------------------------------------------->
- <!-- pop up one -->
- <div id="box1" class="popup_block">
- <h1>this is a heading</h1>
- <p>pop up content goes here. this is <b>bold</b>. this is <i>italic</i>. this is a <a href="/">link</a>. you don't have to use a pop up for every project if you don't want to.
- </div></div></div></div></div></div></div></div></div></div></div>
- <!-- end pop up one -->
- <!-- pop up two -->
- <div id="box2" class="popup_block">
- <h1>pop up two</h1>
- <div class="tags">
- <a href="/">you can do</a>
- <a href="/">links like this</a>
- <a href="/">if you want</a>
- <a href="/">to include</a>
- <a href="/">some more links</a>
- <a href="/">for your project</a>
- </div>
- </div></div></div></div></div></div></div></div></div></div></div>
- <!-- end pop up two -->
- <!-- pop up three -->
- <div id="box3" class="popup_block">
- <h1>another heading</h1>
- <div class="links">
- <a href="/">orrr you can do</a>
- <a href="/">links like this</a>
- <a href="/">if you want</a>
- <a href="/">something</a>
- <a href="/">a little more</a>
- <a href="/">organized</a>
- </div>
- </div></div></div></div></div></div></div></div></div></div></div>
- <!-- end pop up three -->
- <!-- END OF POP UPS ---------------------------------------------------------->
- </html>
Advertisement
Add Comment
Please, Sign In to add comment