123

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="image-container">
  <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/196308/coffee.jpg" />
</div>
<h1>
  Sweet Beans
</h1>
<p>
  <em>CSS Shapes work in Chrome and Safari, although the gradients are buggy in Safari. So what I'm saying is, this really only looks good in Chrome. :(</em> Dark, single shot black medium, macchiato single shot, et, froth, grounds carajillo, blue mountain irish medium affogato, cappuccino, crema qui brewed foam that. Aged, variety, et qui, cappuccino affogato café au lait siphon café au lait, extraction caramelization extra robusta acerbic robust percolator. Blue mountain single origin, single shot pumpkin spice cultivar cup turkish to go dark, organic affogato half and half aftertaste decaffeinated café au lait, medium, turkish, at robusta aromatic et variety.
</p>
<p>
Body, plunger pot robusta, in, decaffeinated cappuccino wings, turkish dripper, java decaffeinated beans, plunger pot, a, single origin coffee redeye, so filter siphon aged coffee. Frappuccino aroma, galão single origin single shot est single origin, fair trade, macchiato, pumpkin spice, rich ut breve, decaffeinated as sweet froth rich. Mazagran qui, black con panna aged, as sugar java, flavour, single shot, cup ristretto, mazagran affogato java percolator cappuccino. Cortado single origin id americano seasonal mocha steamed, id breve carajillo mazagran, organic, a doppio, black seasonal trifecta cup iced robusta flavour.
</p>
<p>
Half and half, sweet, beans cinnamon, french press, cortado, skinny frappuccino, aroma mazagran, and cup grounds flavour medium dripper, caramelization instant cup galão skinny java. Shop latte con panna at cinnamon black robusta in, coffee at bar turkish filter galão redeye. Trifecta crema foam est, foam, in espresso whipped crema mazagran, instant robust, irish acerbic beans spoon as at foam. Dripper, single shot robust arabica, shop, breve, aromatic, brewed mazagran spoon, turkish espresso mocha galão, organic percolator spoon seasonal affogato plunger pot cream dripper. Organic galão, kopi-luwak cortado cinnamon chicory, galão, ristretto cream dark mocha bar cortado. Aromatic, arabica blue mountain sugar turkish, cream barista turkish single shot redeye doppio that caramelization doppio seasonal. Flavour ut sweet cultivar sweet, irish, to go milk, skinny espresso carajillo froth macchiato.
</p>
<p>
Dark skinny doppio sit french press organic plunger pot est variety a, froth americano extraction a grinder. French press and, blue mountain eu and spoon cappuccino foam, et, beans, est galão extra french press, organic that sit body redeye doppio. Medium espresso eu saucer rich sit robust id, pumpkin spice cultivar viennese filter extra medium. Latte robust affogato frappuccino at roast ristretto whipped, qui percolator milk to go doppio, flavour dark mocha sweet aroma single origin mocha aromatic acerbic. Coffee sugar barista con panna cinnamon redeye blue mountain organic cup kopi-luwak body variety half and half extraction body aged. Aroma to go wings caffeine, ristretto sit, caffeine, black froth extraction to go beans iced ristretto. Arabica breve brewed seasonal, id galão con panna, medium, variety, dripper carajillo, shop et in french press aged.
</p>
<p>
Rich affogato strong turkish, black kopi-luwak decaffeinated, cup coffee cappuccino saucer macchiato java viennese. Body americano cappuccino, whipped cultivar caramelization aromatic, redeye robusta percolator crema white sit dark black. Con panna iced black, dripper java robusta organic, and, medium strong wings cortado shop. Acerbic, sweet to go redeye turkish macchiato, extra aromatic cream kopi-luwak aftertaste sugar lungo to go plunger pot grinder redeye spoon caramelization. Cinnamon foam, caffeine strong cream, rich wings in pumpkin spice eu sit irish galão macchiato extraction, robust, redeye single shot galão sit siphon. Et, blue mountain kopi-luwak steamed, to go beans, acerbic single shot eu mocha dripper, white, caramelization grounds white affogato rich. Black, robust con panna est foam café au lait cup steamed ristretto sugar et white breve extraction aged.
</p>
</div>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Playfair+Display:900italic|Lato:400,700italic);

$content-max-width: 600px;

body {
  background-color: white;  
}

.image-container {
  float: right;
  position: relative;
  shape-margin: 1rem;
  shape-outside: polygon(100% 44%, 85% 38%, 59% 34%, 40% 38%, 26% 46%, 19% 53%, 20% 62%, 22% 69%, 25% 76%, 40% 84%, 62% 88%, 87% 87%, 100% 82%);
  width: 60%;
  
  &::before {
    background-image: linear-gradient(to right, white, transparent);
    content: "";
    height: 100%;
    position: absolute;
    width: 50%;
  }
  
  &::after {
    background-image: linear-gradient(
      to bottom, transparent, white);
    bottom: 0;
    content: "";
    height: 30%;
    left: 0;
    position: absolute;
    width: 100%;
  }
}

img {
  height: auto;
  width: 100%;
}

h1 {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 5rem;
  margin: 0 auto 1rem;
  max-width: $content-max-width;
  padding: 1rem 2rem 0;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

p {
  font-family: "Lato", sans-serif;
  line-height: 1.7;
  margin: 0 auto 1rem;
  max-width: $content-max-width;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console