Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="text">
  <h1></h1>
  <p>some new icons from fontawesome.io 4.7 in android jellybean admin button form because maybe we need a button for a bath or perhaps a handshake. using css transitions and jquery for toggling.</p>
  <p>inspired by <a href="https://codepen.io/riogrande/pen/iFcvy">Mario Loncarek</a></p>
</div>
<div class="container">

  <ul class="button-table" target="_blank">
  <span><li><a class="button" href="#"><i class="fa fa-vcard-o"></i></a></li>
    <li><a class="button" href="#"><i class="fa fa-bath"></i></a></li>
    <li><a class="button" href="#"><i class="fa fa-meetup"></i></a></li></span>
    <span><li><a class="button" href="#"><i class="fa fa-superpowers"></i></a></li>
    <li><a class="button" href="#"><i class="fa fa-envelope-open"></i></a></li>
    <li><a class="button" href="#"><i class="fa fa-thermometer-2"></i></a></li></span>
    <span><li><a class="button" href="#"><i class="fa fa-microchip"></i></a></li>
    <li><a class="button" href="#"><i class="fa fa-handshake-o"></i></a></li>
    <li><a class="button" href="#"><i class="fa fa-imdb"></i></a></li></span>
    <span><li><a class="button" href="#"><i class="fa fa-podcast"></i></a></li>
    <li><a class="button" href="#"><i class="fa fa-snowflake-o"></i></a></li>
    <li><a class="button" href="#"><i class="fa fa-etsy"></i></a></li></span>
  </ul>
</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Poppins');

html {
  background: #6441a5;
  background: -webkit-linear-gradient(to right, #6441a5, #2a0845);
  background: linear-gradient(to right, #6441a5, #2a0845);
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

a {
  color: #999;
  text-decoration: none;
  transition: 0.5s ease-in-out;
}

a:hover {
  color: #E8BFEE;
  transition: color 0.5s ease-in-out;
}

h1 {
  color: #eee;
  font-size: 40px;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
}

p {
  color: #eee;
  font-family: 'Poppins', sans-serif;
  width: 70%;
  margin: auto;
  padding-bottom: 10px;
}

.text {
  text-align: center;
}

.container {
  display: flex;
  justify-content: center;
  align-content: center;
  width: 100%;
  position: absolute;
}

span {
  display: block;
}

.button-table {
  margin: auto;
  padding: 0 50px;
}

.button {
  padding: 50px 40px 40px 40px;
  margin: 0 1px 0 0;
  text-decoration: none;
  text-align: center;
  color: #7f8c8d;
  background: #fff;
  width: 50px;
  border-bottom: 10px solid #E1DFE3;
  transition-property: border-bottom .6s linear 0s;
  -moz-transition: border-bottom .6s linear 0s;
  -webkit-transition: border-bottom .6s linear 0s;
  -o-transition: border-bottom .6s linear 0s;
  /* transitions button color back to original state */
  transition-property: color .6s linear 0s;
  -moz-transition: color .6s linear 0s;
  -webkit-transition: color .6s linear 0s;
  -o-transition: color .6s linear 0s;
  font-size: 25px;
}

.button.active, i.active {
  border-bottom: 10px solid #C6ACEE;
  color: #D838CD;
  transition: 0.5s ease-in-out;
}

.button-table li {
  display: inline-block;
  list-style: none;
  padding: 0;
  background: #6441a5;
}

.button-table li .button {
  float: left;
  margin-left: -4px;
}

@media screen and (max-width: 882px) and (min-width: 736px) {
  .button {
    padding: 30px 20px 30px 20px;
    margin: 0 1px 0 0;
    text-decoration: none;
    text-align: center;
    color: #7f8c8d;
    background: #fff;
    width: 50px;
    border-bottom: 10px solid #E1DFE3;
    transition-property: border-bottom .6s linear 0s;
    -moz-transition: border-bottom .6s linear 0s;
    -webkit-transition: border-bottom .6s linear 0s;
    -o-transition: border-bottom .6s linear 0s;
    /* transitions icon color back to orginal state */
    transition-property: color .6s linear 0s;
    -moz-transition: color .6s linear 0s;
    -webkit-transition: color .6s linear 0s;
    -o-transition: color .6s linear 0s;
    font-size: 25px;
  }
}

@media screen and (max-width: 732px) and (min-width: 360px) {
  .button {
    padding: 30px 10px 30px 10px;
    margin: 0 1px 0 0;
    text-decoration: none;
    text-align: center;
    color: #7f8c8d;
    background: #fff;
    width: 50px;
    border-bottom: 10px solid #E1DFE3;
    transition-property: border-bottom .6s linear 0s;
    -moz-transition: border-bottom .6s linear 0s;
    -webkit-transition: border-bottom .6s linear 0s;
    -o-transition: border-bottom .6s linear 0s;
    /* transitions icon color back to orginal state */
   transition-property: color .6s linear 0s;
    -moz-transition: color .6s linear 0s;
    -webkit-transition: color .6s linear 0s;
    -o-transition: color .6s linear 0s;
    font-size:15px;
  }
  .button-table {
    margin: 0;
    padding: 0 70px;
  }
  p {
    font-size: 10px;
  }
}
              
            
!

JS

              
                 // need to make it more responsive
// pen by beatrize

$(window).load(function() {
  $('a').click(function() {
    $(this).toggleClass("active");
  });
});
              
            
!
999px

Console