Linked buttons with social media
A Pen by Aleksander on CodePen.
| <head> | |
| <title>Media panel</title> | |
| <link rel="stylesheet" type="text/css" href="style.css"> | |
| <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet"> | |
| </head> | |
| <body> | |
| <div class="social"> | |
| <h2>Social Media</h2> | |
| <button class="icon-btn twitter"> | |
| <a class="link" href="https://twitter.com/" target="_blank"> | |
| <i class="fa fa-twitter"></i> | |
| </a> | |
| <button class="icon-btn facebook"> | |
| <a class="link" href="https://www.facebook.com/" target="_blank"> | |
| <i class="fa fa-facebook"></i> | |
| </a> | |
| <button class="icon-btn google-plus"> | |
| <a class="link" href="https://plus.google.com/" target="_blank"> | |
| <i class="fa fa-google-plus"></i> | |
| </a> | |
| <button class="icon-btn instagram"> | |
| <a class="link" href="https://www.instagram.com/" target="_blank"> | |
| <i class="fa fa-instagram"></i> | |
| </a> | |
| <button class="icon-btn github"> | |
| <a class="link" href="https://github.com/" target="_blank"> | |
| <i class="fa fa-github"></i> | |
| </a> | |
| </div> | |
| </body> |
| @import url('https://fonts.googleapis.com/css?family=PT+Sans'); | |
| body { | |
| background-color: #303f56; | |
| } | |
| .social { | |
| margin: 0 auto; | |
| width: 500px; | |
| text-align: center; | |
| padding: 50px; | |
| } | |
| .social h2 { | |
| color: #86a5d6; | |
| font-size: 40px; | |
| font-family: 'PT Sans', sans-serif; | |
| } | |
| [class^="icon-btn"] /*.icon-btn*/ { | |
| height: 75px; | |
| width: 75px; | |
| border: 0; | |
| color: #fff; | |
| cursor: pointer; | |
| font-size: 40px; | |
| line-height: 75px; | |
| transition: ease-in-out .3s; | |
| border-radius: 50px; | |
| margin-left: 10px; | |
| background-color: #fff; | |
| } | |
| .twitter { | |
| color: #4099FF; | |
| } | |
| .facebook { | |
| color: #3B5998; | |
| } | |
| .google-plus { | |
| color: #DB5A3C; | |
| } | |
| .instagram { | |
| color: #5C3D2E; | |
| } | |
| .github { | |
| color: #4183C4; | |
| } | |
| .icon-btn:hover { | |
| transform: scale(1.10); | |
| color: #FFFFFF; | |
| } | |
| .twitter:hover { | |
| background-color: #4099FF; | |
| } | |
| .facebook:hover { | |
| background-color: #3B5998; | |
| } | |
| .google-plus:hover { | |
| background-color: #DB5A3C; | |
| } | |
| .instagram:hover { | |
| background-color: #5C3D2E; | |
| } | |
| .github:hover { | |
| background-color: #4183C4; | |
| } | |
| a.link { | |
| color: inherit; | |
| } |