cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

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

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

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.

            
              
mixin condenced(str)
  each i in str
    span=i

.border
.text-wrap
  each i in new Array(3)
    .text: +condenced("吾輩は猫である")
    .text: +condenced("名前はまだない")
.border
            
          
!
            
              =condensed($font_size, $scale: 0.7)
  overflow: visible
  span
    display: block
    font-size: $font_size
    width: $font_size * $scale
    transform: scaleX($scale)
    transform-origin: left center

html,
body
  font-family: "游明朝体", YuMincho, serif

  
.border
  margin: 40px auto
  width: 100%
  max-width: 600px
  height: 2px
  background-color: #000

.text-wrap
  display: flex
  flex-direction: column
  justify-content: space-between
  align-items: center
  min-height: 100vh
  
.text
  $h: 40px
  display: flex
  justify-content: space-between
  align-items: center
  margin: 0 auto
  width: 100%
  max-width: 600px
  height: $h
  +condensed($h)

            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

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

Console