Mobile first social buttons with no iframe
How do I make an mobile first social buttons with no iframe?
Based on the popularity of the tweet and follow buttons (Cheers to whoever made it an editors pick! ). What is a mobile first social buttons with no iframe? How do you make a mobile first social buttons with no iframe? This script and codes were developed by Ali on 07 August 2022, Sunday.
Mobile first social buttons with no iframe - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Mobile first social buttons with no iframe</title> <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <h1>Mobile first social buttons with no iframe</h1> <div class="column"> <h3>Twitter</h3>
<a class="twitter-sharelink" href="http://twitter.com/intent/tweet?url=http://codepen.io/alistairtweedie/pen/AfGnd&text=Mobile first social buttons- down with the iframe!! by @alistairtweedie&via=codepen" target="_blank"><i class="icon"></i><span class="text">Tweet</span></a> </div> <div class="column"> <h3>Facebook</h3>
<a class="facebook-sharelink" href="http://www.facebook.com/sharer/sharer.php?s=100&p%5Btitle%5D=Mobile first social buttons&p%5Burl%5D=http%3A%2F%2Fhttp://codepen.io/alistairtweedie/pen/AfGnd&m&p%5Bsummary%5D=If mobile first is about mobile performance then this is how we should be implementing social buttons.The good old-fashioned simple way. Down with the iframe!&p%5Bimages%5D%5B0%5D=https://fbcdn-profile-a.akamaihd.net/hprofile-ak-prn1/c41.41.518.518/s160x160/644143_294275857367278_514280000_n.png" target="_blank"><i class="icon"></i><span class="text">Send</span></a> </div> <div class="column"> <h3>Google+</h3>
<a class="googlep-sharelink" href="https://plus.google.com/share?url=http://codepen.io/alistairtweedie/pen/AfGnd" target="_blank"><i class="icon"></i><span class="text">Share</span></a> </div> <p>If mobile first is all about performance then this is how we should be implementing social buttons</p> <p>The good old-fashioned simple way</p> <p>Down with the iframe!</p>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Mobile first social buttons with no iframe - Script Codes CSS Codes
body { background: #f2f2f2; color: #555;
}
p { line-height: 1.6;
}
.container { max-width: 450px; margin: 1em auto; text-align: center;
}
.column { width: 33.33333%; min-height: 120px; float: left;
}
.twitter-sharelink { position: relative; display: inline-block; height: 16px; padding: 2px; border: 1px solid #ccc; font-size: 11px; color: #333; text-decoration: none; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); font-weight: bold; background-color: #F8F8F8; background-image: -webkit-gradient(linear,left top,left bottom,from(#FFF),to(#DEDEDE)); background-image: -moz-linear-gradient(top,#FFF,#DEDEDE); background-image: -o-linear-gradient(top,#FFF,#DEDEDE); background-image: -ms-linear-gradient(top,#FFF,#DEDEDE); border: #CCC solid 1px; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; cursor: pointer; overflow: hidden;
}
.twitter-sharelink:hover { border-color: #BBB; background-color: #F8F8F8; background-image: -webkit-gradient(linear,left top,left bottom,from(#F8F8F8),to(#D9D9D9)); background-image: -moz-linear-gradient(top,#F8F8F8,#D9D9D9); background-image: -o-linear-gradient(top,#F8F8F8,#D9D9D9); background-image: -ms-linear-gradient(top,#F8F8F8,#D9D9D9); background-image: linear-gradient(top,#F8F8F8,#D9D9D9); -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none;
}
.twitter-sharelink .icon { position: absolute; width: 16px; height: 13px; top: 50%; left: 3px; margin-top: -6px; background: url('https://twitter.com/favicons/favicon.ico') 1px center no-repeat; background-size: 13px;
}
.twitter-sharelink .text { display: inline-block; padding: 1px 3px 0 20px;
}
.facebook-sharelink { position: relative; background: #ECEEF5; -webkit-border-radius: 3px; border: 1px solid #CAD4E7; cursor: pointer; padding: 3px 6px; white-space: nowrap; color: #3B5998; font-size: 11px; text-decoration: none;
}
.facebook-sharelink:hover { border-color: #9DACCE;
}
.facebook-sharelink .icon { position: absolute; background:url(https://fbstatic-a.akamaihd.net/rsrc.php/v2/y3/r/Q8FTZ0iJJF2.png); background-repeat: no-repeat; display: inline-block; height: 14px; width: 14px; background-position: 0px 0px; top: 3px;
}
.facebook-sharelink .text { display: inline-block; padding: 2px 1px 0 18px;
}
.googlep-sharelink { background-color: #E4E4E4; background-image: -webkit-linear-gradient(top,#F4F4F4,#E4E4E4); background-image: linear-gradient(top,#F4F4F4,#E4E4E4); border: 1px solid #BABABA; border-top: 1px solid #CACACA; border-bottom: 1px solid #ACACAC; color: #DA573B; text-shadow: 0 1px 3px rgba(255, 255, 255, .7); padding: 3px 6px 3px 6px; text-decoration: none; font-size: 11px; -webkit-border-radius: 3px; border-radius: 3px; font-weight: bold; position: relative;
}
.googlep-sharelink:hover { -webkit-box-shadow: inset 0 1px 3px rgba(255, 255, 255, .2);
box-shadow: inset 0 1px 3px rgba(255, 255, 255, .2);
background-color: #F4F4F4;
background-image: -webkit-linear-gradient(top,#FFF,#F4F4F4);
background-image: linear-gradient(top,#FFF,#F4F4F4);
}
.googlep-sharelink .icon { background: no-repeat url(//ssl.gstatic.com/s2/oz/images/sprites/plus-button-8acb339f3635cb33d1a6ec86ea74e7a2.png) -157px -36px; height: 14px; width: 14px; position: absolute; display: inline-block; left:0; top: 6px;
}
.googlep-sharelink .text { display: inline-block; padding: 2px 1px 0 13px;
}
Developer | Ali |
Username | alistairtweedie |
Uploaded | August 07, 2022 |
Rating | 3.5 |
Size | 3,158 Kb |
Views | 52,624 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Ccs thunder cloud | 3,189 Kb |
Off canvas slider concept | 2,696 Kb |
The pursuit of tidy code | 2,437 Kb |
Animated svg - Pintsize logo | 3,985 Kb |
Cookie Fun | 2,869 Kb |
Responsive gallery | 2,010 Kb |
Social buttons | 1,870 Kb |
Sweet Ass Buttons | 2,154 Kb |
A Pen by Ali | 4,821 Kb |
Colors | 4,459 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Board Site | IndianaLuft | 10,542 Kb |
Amazing CSS Menu with Notification Badges | Faizanasad | 2,549 Kb |
Fluid Responsive Typography | Jonmilner | 4,205 Kb |
Side Sliding Menu CSS | EduardL | 4,388 Kb |
A Pen by Alex Bergin | Abergin | 3,347 Kb |
Experiments with Vertical Centering | KatieK2 | 3,924 Kb |
Masonry | Uriuriuriu | 5,005 Kb |
Cartoon Bomb | Tcmulder | 4,929 Kb |
Midterm dry run | Jds317 | 1,649 Kb |
Calculator - codevember 08 - 2016 | Caiocares | 3,260 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!