Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <!--
- Page "Friends" by Neo
- Find me on tumblr: @NEOTHM | @NEOVAK
- If you spotted a glitch, feel free to message me!
- Thank you for taking an interest in this page, enjoy! ♡
- -->
- <head>
- <meta charset="utf-8"><title>{Title}</title><meta name="description" content="{MetaDescription}"><link rel="stylesheet" href="http://static.tumblr.com/wgg6svp/jSmnqcghc/normalizer.css"> <link rel="shortcut icon" href="{Favicon}"> <!--Change "Roboto" to any font you would like to use (from google.com/fonts)--><link href='https://fonts.googleapis.com/css?family=Roboto:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
- <style>
- *{
- margin:0;
- padding:0;
- }
- html, body{
- height:100%;
- }
- body{
- word-break:break-word;
- color:#5B5B5B; /*Text colour*/
- background-color:#f6f6f6; /*Background colour*/
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- padding-top:1px;
- margin-top:-1px;
- /*IF YOU WANT A BACKGROUND IMAGE: */
- background-image:url('backgroundimage.png');
- background-attachment:fixed;
- /*for a full size background (delete this line if you want your bg to tile): */ background-size:cover;
- font:400 14px/130% 'Helvetica Neue', Arial, sans-serif; /*Change Helvetica Neue to any font you'd like to use (from google.com/fonts) */
- }
- #noscroll{
- overflow:hidden;
- }
- /*Text selection*/
- ::selection{
- background-color:#0680fd; /*accent colour*/
- color:#fff;
- }
- ::-moz-selection{
- background-color:#0680fd; /*accent colour*/
- color:#fff;
- }
- /*Tumblr controls*/
- .tmblr-iframe.iframe-controls--desktop{
- filter:invert(100%);
- -webkit-filter:invert(100%);
- -moz-filter:invert(100%);
- -ms-filter:invert(100%);
- -o-filter:invert(100%);
- transform:scale(.8, .8);
- -webkit-transform:scale(.8, .8);
- -moz-transform:scale(.8, .8);
- z-index:999999999999999999!important;
- }
- /*Tooltip (links hover title)*/
- #s-m-t-tooltip{
- line-height:100%;
- font-size:8px;
- text-transform:uppercase;
- text-align:center;
- letter-spacing:1px;
- max-width:100px;
- z-index:9999!important;
- padding:5px;
- margin:15px;
- background:rgba(0,0,0,.8); /*Background colour*/
- color:#eee; /*Text colour*/
- }
- main, #lightbox{
- border-radius:10px;
- background:#fff;
- position:fixed;
- overflow-y:auto;
- top:50%;
- left:50%;
- height:600px; /*Screen's height*/
- margin-top:-300px; /*Screen's height divided by 2*/
- width:375px; /*Screen's width*/
- margin-left:-187px; /*Screen's width divided by 2*/
- border:2px solid #aaa; /*Screen's borders*/
- }
- a, a:hover, .image span, .image:hover span,
- .user img, .user:hover img, #phone > a:hover span, #phone > a > span{
- transition-duration:.4s;
- }
- nav{
- text-align:center;
- z-index:3;
- background-color:#fefefe;
- border-bottom:1px solid #d4d4d4;
- line-height: 50px;
- height:50px;
- overflow:hidden;
- position:fixed;
- width:361px; /*Screen's width - padding (7 * 2) */
- padding:12.5px 7px 0;
- font-size:0;
- border-top-right-radius:13px;
- border-top-left-radius:13px;
- }
- nav a, nav span{
- font-size: 18px;
- display:block;
- float:left;
- }
- nav a, .y p a{
- color:#0680fd; /*accent colour*/
- }
- .m p a{
- color:#fff;
- }
- nav a{
- width:20%;
- font-weight:bold;
- text-decoration: none;
- }
- nav span{
- width:60%;
- }
- nav b{
- font-size:22px;
- display:inline-block;
- }
- section{
- /*background:yellow;*/
- position:relative;
- overflow:hidden;
- padding: 20px;
- margin-bottom:80px;
- }
- section:first-of-type{
- margin-top:64px;
- }
- .timestamp{
- text-align: center;
- font-size: 10px;
- margin: 30px 0;
- }
- .y p:before{
- left: -7px;
- background: url('http://static.tumblr.com/wgg6svp/MUmnzkmbd/msg1.png');
- }
- .m p:before{
- right:-7px;
- background: url('http://static.tumblr.com/wgg6svp/aHqnzkmbe/msg2.png');
- /*
- Little messages arrows
- blue:
- (#0680fd)
- http://static.tumblr.com/wgg6svp/aHqnzkmbe/msg2.png
- green:
- (#0BD318)
- http://static.tumblr.com/wgg6svp/MV8nzks76/msg2green.png
- if you change the accent colour, remember to edit this picture and
- change its colour too!
- */
- }
- article p:before {
- content: "";
- position: absolute;
- bottom: -2px;
- width: 20px;
- height: 15px;
- background-size: 100%!important;
- z-index: 0;
- }
- .y p, .image span{
- background-color: #e6e5eb;
- color: #000;
- }
- .m p{
- background-color: #0680fd; /*accent colour*/
- color: #fff;
- }
- /*chat holder*/
- article {
- max-width: 65%;
- display: table;
- clear: both;
- position:relative;
- padding-bottom:10px;
- margin-bottom:10px;
- }
- /*messages on the left (your friends)*/
- .y{
- padding-left:50px;
- }
- /*messages on the right (you)*/
- .m{
- padding-right:50px;
- float:right;
- }
- /*chat bubble*/
- article p{
- padding: 10px 20px;
- position: relative;
- border-radius: 20px;
- z-index: 1;
- }
- /*user avatars*/
- .user{
- position:absolute;
- bottom: -10px;
- width: 30px;
- }
- .y .user{
- left:0;
- }
- .m .user{
- right:0;
- }
- .user img{
- border-radius: 15px;
- width: 30px;
- height: 30px;
- }
- .user:hover img,
- .image:hover span{
- opacity:.7;
- cursor:pointer!important;
- }
- .image{
- padding:5px;
- max-width:none;
- border-radius:10px;
- }
- .image span{
- position:relative;
- display:block;
- overflow:hidden;
- width:90px;
- height:90px;
- border-radius:10px;
- }
- .image img{
- min-width:100%;
- min-height:100%;
- position:absolute;
- top:0;
- border-radius:10px;
- left:0;
- }
- /*POP UP*/
- #lightbox{
- z-index:2;
- background:rgba(0,0,0,.95);
- text-align:center;
- display:none;
- margin-top:-280px;
- height:580px;
- }
- #lightbox img{
- display:block;
- left:0;
- right:0;
- bottom:0;
- top:0;
- position:absolute;
- width:90%;
- margin:auto;
- max-height:90%;
- border-radius:5px;
- }
- #lightbox p{
- position:absolute;
- bottom:10px;
- left:0;
- font-size:10px;
- right:0;
- }
- article p a{
- font-style:italic;
- }
- article p a:hover{
- color:#000;
- }
- /*screen decorations*/
- .bg, #phone{
- position:fixed;
- top:50%;
- left:50%;
- width:442px;
- margin-left:-219px;
- }
- .bg{
- margin-top:-432px;
- height:872px;
- }
- #phone{
- background:#fff;
- border-radius:15px;
- margin-top:-350px;
- height:720px;
- box-shadow:0 0 20px rgba(100,100,100,.2);
- }
- #phone > a > span{
- display:block;
- width:20px;
- height:20px;
- margin:2px;
- border:10px solid #fff;
- transition-delay:.3s;
- }
- #phone > a, #phone > a > span{
- border-radius:100%;
- background:#0680fd; /*accent colour*/
- }
- #phone > a{
- border-radius:25px;
- bottom:10px;
- width:44px;
- height:44px;
- transition-delay:0s;
- }
- #phone > a:hover > span{
- background-color:#000;
- transition-delay:0s;
- }
- #phone > a:hover{
- background-color:#000;
- transition-delay:.3s;
- }
- #phone > a, #phone > span{
- position:absolute;
- left:0;
- right:0;
- margin:auto;
- }
- #phone > span{
- width:60px;
- height:8px;
- top:25px;
- border-radius:10px;
- background-color:#000;
- }
- #phone > span:after{
- content:"";
- position:absolute;
- left:-12px;
- width:8px;
- height:8px;
- background-color:#000;
- border-radius:5px;
- display:block;
- }
- .backtop{
- display:block;
- margin:10px 0 50px;
- color:#aaa;
- font-size:10px;
- text-align:center;
- }
- .backtop:hover{
- color:#000;
- }
- </style>
- </head>
- <body id="noscroll">
- <!--
- To show the iphone picture, add this BEFORE "<main>" :
- <img src="http://static.tumblr.com/wgg6svp/BkFnzks8l/phone.png" class="bg">
- And delete what follows:
- -->
- <!-- Phone holder, flat design: --><div id="phone"><span></span><a href="/" title="home"><span></span></a></div>
- <main><!-- !BEGINS content -->
- <nav><!-- !BEGINS navigation top bar -->
- <a href="/">‹ Index</a>
- <span> </span>
- <a href="/ask">Contact</a>
- </nav><!-- !ENDS navigation top bar -->
- <!-- !BEGINS popup --><div id="lightbox"> <img src=""> <p>click anywhere to close</p></div><!-- !ENDS popup -->
- <!-- !BEGINS conversation -->
- <section data-user="Bae">
- <!--
- Where "data-user" is the name/nickname of the person you're talking with
- It's what appears in the top bar
- -->
- <!-- !BEGINS timestamp
- this whole part is optional and can be deleted
- -->
- <div class="timestamp">
- <b>Sun, Feb 15</b> 0:24 AM
- </div>
- <!-- !ENDS timestamp -->
- <!-- !BEGINS chat bubble-->
- <article class="m"><!-- "m" for me == right bubble -->
- <!--
- href="" is the link, so your twitter profile / blog, as you wish
- title="" is the tooltip. precise your username again there
- -->
- <a href="https://twitter.com/username" title="@username" class="user">
- <img src="youricon.png">
- </a>
- <p>
- <!-- write stuffs with 140 characters or more -->
- What is this???? Omg, a chat bubble. Wild.
- </p>
- </article>
- <!-- !ENDS chat bubble-->
- <!-- !BEGINS chat bubble-->
- <article class="y"><!-- "y" for you == left bubble -->
- <!--
- href="" is the link to your friend's profile
- title="" is the username
- -->
- <a href="https://twitter.com/username" title="@username" class="user">
- <img src="friendsicon.png">
- </a>
- <p>
- <!-- write stuffs with 140 characters or more -->
- PLease chiLl
- </p>
- </article>
- <!-- !ENDS chat bubble-->
- <!--
- Each chat bubble can only contain ONE icon and ONE <p> ! If you
- want to show two messages in a row sent by the same person, select
- everything from <article to </article>
- Like this:
- -->
- <!-- !BEGINS chat bubble-->
- <article class="y">
- <a href="https://twitter.com/username" title="@username" class="user">
- <img src="friendsicon.png">
- </a>
- <p class="image">
- <!--
- your messages can contain images
- but it's either ONLY text or ONLY one image, do not mix!
- 1) Add: class="image" to <p>
- 2) Write <span> </span> in the paragraph
- 3) Include your image tag inside the <span>
- -->
- <span> <img src="meme.png"> </span>
- </p>
- </article>
- <!-- !ENDS chat bubble-->
- <!--
- * A conversation can have as many chat bubbles as you want
- * How to upload your icons: http://itsphotoshop.com/post/126587649181/how-to-add-pictures-to-themes-tumblr-update
- -->
- </section><!-- !ENDS conversation -->
- <!-- An example: -->
- <!-- !BEGINS conversation -->
- <section data-user="Side-bae">
- <div class="timestamp">
- <b>Sun, Jul 29</b> 11:34 AM
- </div>
- <article class="m">
- <a href="https://twitter.com/jaeIos" title="@jaeIos" class="user">
- <img src="http://static.tumblr.com/q8c0vxg/AHanzik6t/younglogifedit.gif">
- </a>
- <p>
- Merry christmas I'm your present
- </p>
- </article>
- <article class="y">
- <a href="https://twitter.com/yongnams" title="@yongnams" class="user">
- <img src="http://38.media.tumblr.com/avatar_8c3837934b8f_128.png">
- </a>
- <p>
- Hmm can I have the receipt
- </p>
- </article>
- <article class="m">
- <a href="https://twitter.com/jaeIos" title="@jaeIos" class="user">
- <img src="http://static.tumblr.com/q8c0vxg/AHanzik6t/younglogifedit.gif">
- </a>
- <p>
- WOW.
- </p>
- </article>
- </section><!-- !ENDS conversation -->
- <!-- Now do it yourself! :) -->
- <!-- Back to top link: --><a class="backtop" href="#">take me to the top.</a>
- </main><!-- !ENDS conteneur -->
- <!-- You shouldn't touch this --><script src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script><script src="http://static.tumblr.com/wgg6svp/sDinmsq3x/jquery.style-my-tooltips.js"></script><script src="http://static.tumblr.com/emvnqzg/NOVo0fisl/scripts.js"></script>
- <script>$(function(){ $('.backtop').click(function(e){e.preventDefault();$('main').animate({scrollTop:0}, 700); });$("[title]").style_my_tooltips({tip_follows_cursor:true,tip_delay_time:200,tip_fade_speed:500});$('nav span').text($('section:first').attr('data-user'));var i=0, scrolltop, src,sections=[], usernames=[]; $('section').each(function(){sections.push(parseInt($(this).height()) + parseInt($(this).offset().top)-50); usernames.push($(this).attr('data-user'));});$('main').scroll(function(){scrolltop=$('main').scrollTop();if(scrolltop > sections[i]){i++;}if(scrolltop < sections[i-1]){i--;}if(scrolltop < $('section:first').height()){i=0;}$('nav span').text(usernames[i]);}); $('.image').click(function(){src=$(this).find('img').attr('src'); $('#lightbox').fadeIn(500).find('img').attr({'src': src}); return false}); $('body').click(function(event){if($('#lightbox').css('display')=='block' && !$(event.target).closest('#lightbox img').length > 0){$('#lightbox').fadeOut(500).find('img').attr({'src': ''});}});});</script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment