Big Orange

In this example below you will see how to do a Big Orange with some HTML / CSS and Javascript

Made for minima-labs.com old site

Thumbnail
This awesome code was written by james2doyle, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright james2doyle ©

Technologies

  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>Big Orange</title>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js" type="text/javascript"></script>


    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">

  
      <style>
      /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */
      button {
    margin: 20px;
    width: 200px;
    height: 45px;
}
.button {
   cursor: pointer;
   border: 1px solid #ed6400;
   border-radius: 3px;
   font: bold 11px Sans-Serif;
   padding: 6px 10px;
   white-space: nowrap;
   vertical-align: middle;
   color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.2);
   background: -webkit-linear-gradient(top, #ed8a00, #ed6400);
   background:    -moz-linear-gradient(top, #ed8a00, #ed6400);
   background:     -ms-linear-gradient(top, #ed8a00, #ed6400);
   background:      -o-linear-gradient(top, #ed8a00, #ed6400);
   -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff;
   -moz-box-shadow:    0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff;
   box-shadow:         0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff;
}
.button:hover, .button:focus {
   color: #fff;
   border-color: #ed6400;
   background: -webkit-linear-gradient(top, #FFA21F, #FF7C1F);
   background:    -moz-linear-gradient(top, #FFA21F, #FF7C1F);
   background:     -ms-linear-gradient(top, #FFA21F, #FF7C1F);
   background:      -o-linear-gradient(top, #FFA21F, #FF7C1F);
   -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff;
   -moz-box-shadow:    0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff;
   box-shadow:         0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff;
}
.button:active {
   border-bottom-color: #ff990a;
   border-top-color: #dd5d00;
   -webkit-box-shadow: inset 0 1px 2px #e18300;
   -moz-box-shadow:    inset 0 1px 2px #e18300;
   box-shadow:         inset 0 1px 2px #e18300;
   background: -webkit-linear-gradient(top, #ed6400, #ed8a00);
   background:    -moz-linear-gradient(top, #ed6400, #ed8a00);
   background:     -ms-linear-gradient(top, #ed6400, #ed8a00);
   background:      -o-linear-gradient(top, #ed6400, #ed8a00);
}​
    </style>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>

</head>

<body>

  <button class="button" role="button">
   Minima Labs
</button>​
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/james2doyle/big-orange-pHsLJ */
button {
    margin: 20px;
    width: 200px;
    height: 45px;
}
.button {
   cursor: pointer;
   border: 1px solid #ed6400;
   border-radius: 3px;
   font: bold 11px Sans-Serif;
   padding: 6px 10px;
   white-space: nowrap;
   vertical-align: middle;
   color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.2);
   background: -webkit-linear-gradient(top, #ed8a00, #ed6400);
   background:    -moz-linear-gradient(top, #ed8a00, #ed6400);
   background:     -ms-linear-gradient(top, #ed8a00, #ed6400);
   background:      -o-linear-gradient(top, #ed8a00, #ed6400);
   -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff;
   -moz-box-shadow:    0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff;
   box-shadow:         0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff;
}
.button:hover, .button:focus {
   color: #fff;
   border-color: #ed6400;
   background: -webkit-linear-gradient(top, #FFA21F, #FF7C1F);
   background:    -moz-linear-gradient(top, #FFA21F, #FF7C1F);
   background:     -ms-linear-gradient(top, #FFA21F, #FF7C1F);
   background:      -o-linear-gradient(top, #FFA21F, #FF7C1F);
   -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff;
   -moz-box-shadow:    0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff;
   box-shadow:         0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff;
}
.button:active {
   border-bottom-color: #ff990a;
   border-top-color: #dd5d00;
   -webkit-box-shadow: inset 0 1px 2px #e18300;
   -moz-box-shadow:    inset 0 1px 2px #e18300;
   box-shadow:         inset 0 1px 2px #e18300;
   background: -webkit-linear-gradient(top, #ed6400, #ed8a00);
   background:    -moz-linear-gradient(top, #ed6400, #ed8a00);
   background:     -ms-linear-gradient(top, #ed6400, #ed8a00);
   background:      -o-linear-gradient(top, #ed6400, #ed8a00);
}​

Comments