Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                .hero
  .hero-wrapper
    .hero-block
      h1.hero-title
        span.hero-title-text
          strong
            = "Supersonic"
          = "Club, Paris"
      ul.gallery
        - var items = [
        -    {name: "Frankie and the Witch Finger", subtitle: "8pm, Free, w/ Birthday Girl + Sugarr. DJ Set: Anton Newcombe from Brian Jonestown Massacre - 11pm to 5am", date: ['29', 'May']},

        -    {name: "The Vacant Lots", subtitle: "20h, Free, w/ Black Doldrums + Acetate", date: ['08', 'Jun.']},
        -    {name: "Levitation Room", subtitle: "w/ Darta La + Telemac", date: ['24', 'Jun.']},
        - ]
        each item in items
          li.gallery-item
            div.card
              .card-block
                .card-element--date
                  .card-element-text--highlight
                    = item.date[0]
                  .card-element-text
                    = item.date[1]
              .card-block.card-block--primary
                h3.card-title
                  = item.name
                p.card-subtitle
                  = item.subtitle
              .card-block.card-block--secondary
                button.button.button--primary
                  = 'Get tickets'
              
            
!

CSS

              
                :root {
  --brand-primary: #44D688;
  --font-family-display: Monoton, Arial, sans-serif;
  --font-family-primary: 'Rubik', Arial, sans-serif;
  --neon-effect: 0 0 0 transparent,
    0 0 20px rgb(255, 0, 0),
    0 0 50px rgba(255, 0, 0,.5),
    0 0 200px rgba(255, 0, 0, .5),
    0 0 250px rgba(255, 0, 0, 1),
    0 0 300px rgba(255, 0, 0, 1),
    -250px -100px 100px rgba(255, 0, 0, 1)
  ; 
}

* {
  box-sizing: border-box;
}

html,
body {
  background-color: #000000;
  font-family: var(--font-family-primary);
  line-height: 1.42;
}

.hero {
  background-color: #000000;
  /*background: radial-gradient(ellipse at 33% 0%, #032756 0%, #110935 66%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  background: radial-gradient(ellipse at 33% 0%, #333 0%, #000 66%);
}

.hero-wrapper {
  display: flex;
  justify-content: center;
  margin: auto;
  width: 400px;
}

.hero-block {
  padding: 60px 0;
  text-align: center;
}

.hero-title {
  animation: neon-blink 5s infinite alternate;
  /*background-image: linear-gradient(transparent 0%, transparent 50%, #000 53%, transparent 56%, transparent 100%);
  background-repeat: repeat-y;
  background-position: 0 100%;
  background-size: 82% 50%;*/
  color: #FF8888;
  font-family: var(--font-family-display);
  font-size: 45px;
  font-weight: normal;
  margin: 0 auto;
  margin-bottom: 60px;
  margin-left: 2em;
  text-align: left;
  text-shadow: var(--neon-effect);
  text-transform: uppercase;
  transform: skew(0, -12deg) rotateZ(5deg);
  white-space: nowrap;
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 86px;
    margin-bottom: 100px;
    margin-left: 1.5em;
  }
}

.hero-title strong {
  display: block;
  font-weight: normal;
  text-indent: -1.66em;
}

.button--primary {
  background-color: var(--brand-primary);
  border-color: transparent;
  color: #000;
  font-family: var(--font-family-primary);
  font-weight: bold;
  padding: 20px 30px;
  transition: transform .2s;
}

.button--primary:active {
  outline: 0;
  transform: scale(.95);
}

.gallery {
  list-style: none;
  padding: 0;
  width: 100%;
}

.gallery-item {
  margin-bottom: 20px;
}

.card {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
}

.card-block {
  padding: 20px;
}

.card-block > *:last-child {
  margin-bottom: 0;
}

.card-block--primary,
.card-block--secondary {
  background-color: rgba(51, 51, 51, .4);
}

.card-block--primary {
  flex: 1;
}

.card-block--secondary {
  align-items: center;
  display: flex;
  min-width: 100%;
}

.card-block--secondary .button {
  min-width: 100%;
}

@media (min-width: 992px) {
  .card-block--secondary,
  .card-block--secondary .button {
    min-width: unset;
  }
}

.card-element--date {
  align-items: center;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  font-family: var(--font-family-primary);
  line-height: 1.3;
  min-width: 75px;
  text-align: center;
  text-transform: uppercase;
}

.card-element-text--highlight {
  font-size: 32px;
}

.card-element-text {
  font-size: 16px;
}

.card-title,
.card-subtitle {
  text-align: left;
}

.card-title {
  color: #ffffff;
  font-family: var(--font-family-primary);
  font-weight: bold;
  margin: 0;
  margin-bottom: 1.3em;
}

.card-subtitle {
  color: #aaa;
}

.card-title + .card-subtitle {
  margin-top: -.6em;
}

@keyframes neon-blink {
  44% {
    opacity: 1;
  }
  
  45% {
    opacity: .7;
  }
  
  46% {
    opacity: 1;
  }
  
  98% {
    opacity: 1;
  }
  
  99% {
    opacity: .5;
  }
  
  100% {
    opacity: 1;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console