Pen Settings



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


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


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.


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.


          h1 READ
      h5.more Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus cumque natus delectus praesentium laudantium molestias.
      h2.card-title Foundation


                @import 'bourbon';
@import url(,300,200,100);
@import url(,300,600);

$blue: #B2DCE5;
$font: Work Sans;
$card-border-radius: .75em;
$background: #EDF7FA;

body {
  background: $background;

.card {
  position: relative;
  top: 20vh;
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  border-radius: $card-border-radius;
  padding: 0; // tight #nice bruh
  transition: all 0.2s ease-in-out;
  &:nth-child(even) {
    margin: 0 1em;

.card-top {
  background: $blue;
  padding: 3em;
  @include border-top-radius($card-border-radius);
  .card-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 12em;
    width: auto;
  .overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 17.75em;
    width: 100%;
    @include border-top-radius($card-border-radius);
    z-index: 10;
    background: rgba(0, 0, 0, 0.55);
    overflow: hidden;
    transition: all 700ms ease;
    opacity: 0;
    h1 {
      text-align: center;
      font-weight: 500;
      color: #fff;
      position: relative;
      top: 50%;
      transform: translateY(-50%);
    &:hover, &:focus {
      opacity: 1;

.triangle {
  position: relative;
  @include triangle(3em, $blue, down);
  margin: 0 auto -1.75em auto;
  top: -.25em;
  z-index: 20;

.card-middle {
  display: none;
  background: #efefef;
  padding: 2em 1em 1em 1em;
  .more {
    font-family: Open Sans;
    font-weight: 400;

.card-bottom {
  background: #f7f7f7;
  padding: 1.75em 1em 1em 1em;
  @include border-bottom-radius($card-border-radius);
  .card-title {
    font-weight: 100;

// testing
.circle-button {
  position: absolute;
  bottom: 0;
  right: 3.5em;
  width: 70px;
  height: 70px;
  font-size: 1.5em;
  color: #fff;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0,0,0,.275);
  outline: none;
  cursor: pointer;
  transition: all 300ms ease;
  .close {
    transition: transform 400ms ease;
  &:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,.275);

.closeRotate {
  transform: rotate(45deg);

// base
body, h1, h2, h3, h4, h5, h6, p {
  font-family: $font;