Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

Save Automatically?

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

              
                <nav class="navbar navbar-light navbar-toggleable-sm mt-3">
  <div class="container"> 
    <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    <a class="navbar-brand" href="#">
      <span class="docker">Docker</span>&thinsp;<span class="weekly">Weekly</span>
    </a>
    <div class="collapse navbar-collapse" id="navbarCollapse">
      <ul class="navbar-nav navbar-right">
        <li class="nav-item">
          <a class="nav-link" href="#">Previous Issues</a>
        </li>
        <li class="nav-item">
          <a class="nav-link nav-cta" href="#">Sign Up</a>
        </li>
      </ul>
    </div>
  </div>
</nav>

    <div class="container">
      <div class="jumbotron text-center mt-3">
        <div class="row">
        <div class="col-sm-8 offset-sm-2">
          <h2>Docker Weekly is a roundup of the week's top Docker news, delivered straight to your inbox</h2>
          
          <form class="row justify-content-center mt-5">
            <div class="form-group col-md-7 mb-0">
              <div class="d-flex mb-3">
                <label for="email" class="form-control-prefix">
                  <i class="fa fa-envelope-o"></i>
                </label>
                <input type="email" class="form-control form-control-suffix"
                       id="email" placeholder="Email address">
              </div>
              
              <button class="btn btn-primary">
                Sign Up
              </button>
            </div>
          </form>
        </div>
      </div>
      </div>
      
      <div class="row">
        <div class="col-md-4">
          <div class="card">
            <div class="card-header">
              Latest Posts
            </div>
            <div class="card-block">
              Dummy text
            </div>
          </div>
        </div>
        
        <div class="col-md-4">
          <div class="card">
            <div class="card-header">
              Latest Posts
            </div>
            <div class="card-block">
              Dummy text
            </div>
          </div>
        </div>
        
        <div class="col-md-4">
          <div class="card">
            <div class="card-header">
              Latest Posts
            </div>
            <div class="card-block">
              Dummy text
            </div>
          </div>
        </div>

      </div>
    </div>

<footer id="footer" class="text-center">
  <div class="container">
    Made with <i class="fa fa-heart"></i> in Australia
  </div>
</footer>
              
            
!

CSS

              
                @mixin eased-gradient($color: #000000, $direction: to left, $alpha-from: 1, $alpha-to: 0) {
  $diff: $alpha-from - $alpha-to;
  background-image: linear-gradient(
    $direction,
    rgba($color, $alpha-from) 0%,
    rgba($color, $alpha-from - $diff*0.7) 50%,
    rgba($color, $alpha-from - $diff*0.85) 65%,
    rgba($color, $alpha-from - $diff*0.925) 75.5%,
    rgba($color, $alpha-from - $diff*0.963) 82.85%,
    rgba($color, $alpha-from - $diff*0.981) 88%,
    rgba($color, $alpha-to) 100%
  );
}

$docker-grey: #35464b;
$docker-blue: #297c96;
$docker-bright: #159dcc;
$docker-light: #c2dde1;

$nav-shadow: 1px 1px 0 1px rgba(#000, 0.5);
$nav-shadow-text: 1px 1px 1px rgba(#000, 0.5);

body {
  font-family: Roboto, sans-serif;
}

.navbar {
  // background-color: darken($docker-grey, 12.5%);
  background-color: #fff;
}

.navbar-brand {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Roboto Condensed', sans-serif;

  .docker {
    color: $docker-blue;
  }
  
  .weekly {
    font-weight: 700;
    color: $docker-bright;
  }
}

.navbar-nav {
  width: 100%;
  justify-content: flex-end;
  
  .nav-item > .nav-link {
    color: #297c96;
    border-radius: 5px;
    border: 2px solid transparent;
    background: transparent;
  }

  .nav-link.nav-cta {
    border-color: currentColor;
    // box-shadow: inset $nav-shadow, $nav-shadow;
    // text-shadow: $nav-shadow-text;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.form-control-prefix,
.form-control-suffix {
  height: 38px;
}

.form-control-prefix {
  border-radius: 5px 0 0 5px;
  background: $docker-blue;
  color: #fff;
  flex-basis: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  
  .fa {
    margin-top: -5%;
  }
}

.form-control-suffix {
  border-radius: 0 5px 5px 0;
  border-left: 0;
}

.jumbotron {
  background-color: $docker-light;
}

.card, .card-header, .card-block {
  border-color: lighten($docker-grey, 50%);
}

.card-header {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Roboto Condensed', sans-serif;
  color: $docker-grey;
  background-color: lighten($docker-grey, 70%);
  border-bottom: 0;
}

.btn-primary {
  background-color: $docker-bright;
  border-color: $docker-bright;
  color: #fff;
}

footer {
  background: repeat-x url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 250 75" style="enable-background:new 0 0 250 75;" xml:space="preserve"><path fill="#fff" d="M248.9,0H1.1H0v8.9C0,45.4,56,75,125,75S250,45.4,250,8.9V0H248.9z"/></svg>') top center / 70px, 
              repeat-x url('data:image/svg+xml;utf8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 250 33.6" style="enable-background:new 0 0 250 33.6;" xml:space="preserve"><style type="text/css">.st0{fill:#895531;}.st1{fill:rgba(0,0,0,0.25);}</style><path class="st0" d="M252.7,33.6H-2.7V3c0,0,9.5,0,22.1,0s59.8-7.6,116.4,1.2C165.2,8.8,190.4,3,209.4,3s43.2,0,43.2,0V33.6z"/><g><circle class="st1" cx="31.7" cy="15.3" r="1.3"/><circle class="st1" cx="49.8" cy="6.7" r="0.8"/><circle class="st1" cx="60.5" cy="25.1" r="1.5"/><circle class="st1" cx="86.8" cy="12.1" r="1.8"/><circle class="st1" cx="133.3" cy="18.3" r="3"/><circle class="st1" cx="197.8" cy="16.8" r="1.5"/><circle class="st1" cx="222.1" cy="6.7" r="0.8"/><circle class="st1" cx="242.8" cy="25.1" r="1.5"/><circle class="st1" cx="218.8" cy="26.1" r="2.5"/><circle class="st1" cx="169.3" cy="21.9" r="0.7"/><circle class="st1" cx="234.2" cy="13" r="0.9"/><circle class="st1" cx="146.7" cy="24.6" r="2"/><circle class="st1" cx="150.1" cy="10.7" r="1.4"/><circle class="st1" cx="110" cy="8" r="1.3"/><circle class="st1" cx="99.2" cy="28" r="1.9"/><circle class="st1" cx="110.7" cy="25.8" r="0.8"/><circle class="st1" cx="77.2" cy="22.4" r="1.2"/><circle class="st1" cx="19.6" cy="24.2" r="1.6"/><circle class="st1" cx="34.1" cy="26.9" r="1.1"/><circle class="st1" cx="66.7" cy="10" r="0.7"/><circle class="st1" cx="124.6" cy="8.3" r="1.6"/><circle class="st1" cx="91.3" cy="3.6" r="1"/><circle class="st1" cx="188.6" cy="26" r="0.9"/><circle class="st1" cx="178.7" cy="11" r="1.1"/><circle class="st1" cx="15.3" cy="11.6" r="2.3"/><circle class="st1" cx="5.4" cy="18.2" r="1.4"/><circle class="st1" cx="2.4" cy="5.6" r="1"/><circle class="st1" cx="7.6" cy="27.8" r="0.8"/></g></svg>') bottom -8px center / 120px, 
              $docker-bright;
  margin-top: 5rem;
  padding: 4.5rem 3rem 3rem;

  .fa-heart {
    color: #fff;
    padding: 0.25rem;
    text-shadow: 1px 1px 1px $docker-grey;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console