Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource
via CSS Lint

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource
via JS Hint

Code Indentation


Save Automatically?

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

Want a Run Button?

If active, the preview will update automatically when you change code.


              <div class='container'>
  <div class="button-container">
    <div class='button -dark center'>Dark / blue</div>
    <div class='button -green center'>Green / Dark</div>
    <div class='button -blue center'>Blue Dark</div>
    <div class='button -border center'>Blue Dark</div>


              @import url(,700);

$dark:  #171717;
$blue:  #0167F6;
$green: #3AB54A;
$white: #FFFFFF;

$font-face: 'Open Sans', sans-serif;

body {
  background: white;
  font-family: $font-face;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  line-height: 1;

h1 {
  text-align: center;
  font-family: $font-face;
  font-size: 22px;
  color: $dark;
  font-weight: 700;
  span {
    font-weight: 400;

.container {
  min-width: 640px;
  display: flex;
  flex-direction: column;

.button-container {
    display: flex;
    justify-content: space-between;
    margin: 60px auto;

// Copy button styles
.button {
  border: 0 none;
  border-radius: 36px;
  padding: 12px 55px;
  margin: 0 10px;
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
  color: #fff;
  text-transform: none;
  transition: all 80ms ease-in-out;

  &:hover {
      opacity: .7;

.button.-dark {
  background: $dark;
  color: $white;
.button.-green {
  background: $green;
  color: $white;

.button.-blue {
  background: $blue;
  color: $white;

.button.-border {
  background: transparent;
  border: 2px solid $blue;
  color: $blue;
  &:hover {
    border-color: $dark;
    color: $dark;
    opacity: 1;


Loading ..................