Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

HTML

              
                .announcement
  p.leadIn.tilt
    | Presenting the 1
    sup st
  h1.tilt Chicago
  h2.tilt CodePen 
    span Meetup
    
footer
  .info
    .hashtag
      a(href='https://twitter.com/search?q=%23CodePenChicago') #CodePenChicago
    
    .chicago
      .white
      .blue
      .stars
        .star
        .star
        .star
        .star
      .blue
      .white
      
    .details 
      p Grabba pop or a beer, and write a couple-two-tree lines a code!
      time(datetime='2015-04-13 18:30')
        | Monday, April 13
        sup th
        |  from 6:30
      |  to 
      time(datetime='2015-04-13 20:30') 8:30pm 
      p 
        a(href='http://workshopchicago.co') Workshop Chicago
        |  — 935 W Chestnut.
        a(href='https://nvite.com/CodePenChicago/abfd')   Seeya dare!


              
            
!

CSS

              
                type = {
  sans: "Roboto",
  slab: "Roboto Slab"
}

:root
  font-size 16px
  box-sizing border-box

*, 
*:before, 
*:after
  box-sizing inherit
  
*
  margin 0
  padding 0

body
  background url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/5530/chi-pattern.png') 0 0 repeat
  display flex
  align-items center
  justify-content center
  flex-direction column
  font-family: type.slab
  font-weight 100
  height 100vh
  width 100vw
  
.announcement
  height 50vh
  width 80vw
  text-align center

.tilt
  transform matrix(1, -0.20, 0, 1, 0, 0)
      
.leadIn
  font-family: type.slab
  font-weight 900
  font-size 35px
  margin 0
  position relative
  
  &:before
    margin 27px 0 0 -110px
  &:after
    margin 27px 0 0 10px

    
.leadIn:before, 
.leadIn:after
  content " "
  position absolute
  width 100px
  height 8px
  border-bottom 5px dashed #333

  
h1
  color #f00
  font-weight 900
  font-size 15vw
  margin 0
  -webkit-text-stroke 5px #333
  //-webkit-filter: drop-shadow(9px 11px 0 rgba(100, 100, 100, 0.5))
  text-shadow 9px 11px 0 red, 19px 21px 0 #eee 
  text-align center
  text-transform uppercase

  
h2
  color #333
  font-family: type.sans
  font-size 3rem
  margin 0
  -webkit-text-stroke 1px #fff
  -webkit-filter drop-shadow(3px 3px 0 #ddd)
  
  
footer  
  box-shadow -1px -1px 5px #ccc
  position fixed
  bottom 0
   
  .info
    background-color #ccc
    color #333
    display flex
    /*align-items center
    justify-content center*/
    font-size 300
    width 100vw

    a
      color red
      text-decoration none

    .hashtag
      background #333
      display flex
      align-items center
      justify-content center
      flex 1
      
      a
        color white
        display block
        font-size 4vw
      
    .details
      display inline-block
      font-family: type.sans
      font-size .8rem
      font-weight 300
      flex 1
      padding 1rem
      line-height 1.5
      letter-spacing 1px

.chicago
  display flex
  flex-direction column
  //height 12vh
  flex .5
  
  
.white
  background-color white
  //height 15vh
  flex 1
  
  
.blue
  background-color #54d4f4
  //height 15vh
  flex 1
  
.stars
  background-color white
  display flex
  justify-content space-around
  align-items center
  align-content center
  //height 40vh
  flex 2
  
.star
  width 1rem
  height 1rem
  background red
  transition .5s
  cursor pointer
  position relative
  transform rotate(-60deg) skewX(30deg) translate(0, -20px)
  opacity 0
  animation fade-in .4s forwards
  
  &:before
    transform skewX(-30deg) skewX(-30deg)
  &:after
    transform skewX(-30deg) rotate(-60deg) skewX(-30deg)

.star:before, 
.star:after
  position absolute
  width inherit
  height inherit
  background inherit
  content ''
  
.star:nth-child(1)
  animation-delay .2s
.star:nth-child(2)
  animation-delay .4s
.star:nth-child(3)
  animation-delay .6s
.star:nth-child(4)
  animation-delay .8s
.star:nth-child(5)
  animation-delay 1s
    
@keyframes fade-in
  100%
    opacity 1
    transform translate(0, 0)
  
/* --- RULES & INSTRUCTIONS --- 
  The only rule is that all of the information in
  the original markup has to be used — you can change
  the markup and move things around as you like as long
  as all of the info is still present.

  Fork this pen and add some CSS and/or JavaScript —
  any flavor, any library, any plugin you like — to 
  jazz dis baby up a bit. Further instructions on
  how to submit your pen will be given at the event,
  but feel free to leave a comment on the original
  pen linking to your fork for review — the submissions
  with the most hearts or something like that will win
  some killer CodePen gear!

  examples of others:
  https://codepen.io/chriscoyier/pen/oAcua
  https://codepen.io/sdras/pen/LEqWNM
  https://codepen.io/pixelass/pen/dPwaJv
  https://codepen.io/indyplanets/pen/XJGVoY/
  https://codepen.io/Hornebom/pen/iKsmj

  Happy forking!
*/


              
            
!

JS

              
                
              
            
!
999px

Console